You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2023/01/06 19:01:03 UTC

[GitHub] [trafficcontrol] ericholguin opened a new pull request, #7271: Clean up unused code

ericholguin opened a new pull request, #7271:
URL: https://github.com/apache/trafficcontrol/pull/7271

   <!--
   Thank you for contributing! Please be sure to read our contribution guidelines: https://github.com/apache/trafficcontrol/blob/master/CONTRIBUTING.md
   If this closes or relates to an existing issue, please reference it using one of the following:
   
   Closes: #ISSUE
   Related: #ISSUE
   
   If this PR fixes a security vulnerability, DO NOT submit! Instead, contact
   the Apache Traffic Control Security Team at security@trafficcontrol.apache.org and follow the
   guidelines at https://apache.org/security regarding vulnerability disclosure.
   -->
   
   In the interest of reducing the amount of code we maintain this PR removes files that are not in use or no longer apply to the project.
   
   - Removed components in `infrastructre/docker/`, not in use, cdn-in-a-box performs the same functionality
   - Removed `misc/jira_github_issue_import.py`, the project does not use JIRA
   - Removed `traffic_ops/install/bin/_postinstall.pl` and `traffic_ops/install/lib/`, _postinstall.py is the recommended script to use for install
   - Removed `traffic_ops/install/bin/convert_profile/`, this script is outdated and is for use on an EOL ATS version
   - Removed `traffic_ops/install/bin/install_go.sh`, `traffic_ops/install/bin/todb_bootstrap.sh` and `traffic_ops/install/bin/install_goose.sh` are no longer in use
   
   
   <!-- **^ Add meaningful description above** --><hr/>
   
   ## Which Traffic Control components are affected by this PR?
   <!-- Please delete all components from this list that are NOT affected by this PR.
   Feel free to add the name of a tool or script that is affected but not on the list.
   -->
   
   
   
   ## What is the best way to verify this PR?
   <!-- Please include here ALL the steps necessary to test your PR.
   If your PR has tests (and most should), provide the steps needed to run the tests.
   If not, please provide step-by-step instructions to test the PR manually and explain why your PR does not need tests. -->
   
   
   ## PR submission checklist
   - [ ] This PR has tests <!-- If not, please delete this text and explain why this PR does not need tests. -->
   - [ ] This PR has documentation <!-- If not, please delete this text and explain why this PR does not need documentation. -->
   - [x] This PR has a CHANGELOG.md entry <!-- A fix for a bug from an ATC release, an improvement, or a new feature should have a changelog entry. -->
   - [x] This PR **DOES NOT FIX A SERIOUS SECURITY VULNERABILITY** (see [the Apache Software Foundation's security guidelines](https://apache.org/security) for details)
   
   <!--
   Licensed to the Apache Software Foundation (ASF) under one
   or more contributor license agreements.  See the NOTICE file
   distributed with this work for additional information
   regarding copyright ownership.  The ASF licenses this file
   to you under the Apache License, Version 2.0 (the
   "License"); you may not use this file except in compliance
   with the License.  You may obtain a copy of the License at
   
       http://www.apache.org/licenses/LICENSE-2.0
   
   Unless required by applicable law or agreed to in writing,
   software distributed under the License is distributed on an
   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   KIND, either express or implied.  See the License for the
   specific language governing permissions and limitations
   under the License.
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficcontrol] ericholguin commented on pull request #7271: Clean up unused code

Posted by GitBox <gi...@apache.org>.
ericholguin commented on PR #7271:
URL: https://github.com/apache/trafficcontrol/pull/7271#issuecomment-1374181140

   > Did you consult with Evan Zelkowitz about the removal of `convert_profile`?
   
   Yes, he said we have not been using it, however maybe @smalenfant may have a different opinion on its removal?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficcontrol] ericholguin commented on pull request #7271: Clean up unused code

Posted by "ericholguin (via GitHub)" <gi...@apache.org>.
ericholguin commented on PR #7271:
URL: https://github.com/apache/trafficcontrol/pull/7271#issuecomment-1497831337

   > Building the TO RPM fails:
   > 
   > ```shell
   > + sed -i.bak s/__GO_VERSION__/1.19.8/g install/bin/install_go.sh
   > sed: can't read install/bin/install_go.sh: No such file or directory
   > ```
   
   traffic_ops.spec uses a variable from that script: `GO_TARBALL_VERSION=__GO_VERSION__`
   Should this file be brought back or should that command be replaced?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficcontrol] smalenfant commented on pull request #7271: Clean up unused code

Posted by GitBox <gi...@apache.org>.
smalenfant commented on PR #7271:
URL: https://github.com/apache/trafficcontrol/pull/7271#issuecomment-1379120238

   > > Did you consult with Evan Zelkowitz about the removal of `convert_profile`?
   > 
   > Yes, he said we have not been using it, however maybe @smalenfant may have a different opinion on its removal?
   
   I do use this convert_profile when I upgrade ATS. I have those rules still in use on our local repository.
   Can we expand on "outdated" ?
   
   ```
   convert_ats7_to_ats8.yaml
   convert_ats8_to_ats9.yaml
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficcontrol] zrhoffman merged pull request #7271: Clean up unused code

Posted by "zrhoffman (via GitHub)" <gi...@apache.org>.
zrhoffman merged PR #7271:
URL: https://github.com/apache/trafficcontrol/pull/7271


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficcontrol] zrhoffman commented on a diff in pull request #7271: Clean up unused code

Posted by GitBox <gi...@apache.org>.
zrhoffman commented on code in PR #7271:
URL: https://github.com/apache/trafficcontrol/pull/7271#discussion_r1063716740


##########
traffic_ops/install/bin/_postinstall.pl:
##########
@@ -1,919 +0,0 @@
-#!/usr/bin/perl

Review Comment:
   While it's true that the `master` branch does not use `_postinstall.pl`, that does not mean that `_postinstall.pl` itself is unused. In ATC 6, it was deprecated, pending removal. So it should be removed in its own PR, rather than in a PR of things that are totally unused.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficcontrol] zrhoffman commented on pull request #7271: Clean up unused code

Posted by "zrhoffman (via GitHub)" <gi...@apache.org>.
zrhoffman commented on PR #7271:
URL: https://github.com/apache/trafficcontrol/pull/7271#issuecomment-1497836612

   > > Building the TO RPM fails:
   > > ```shell
   > > + sed -i.bak s/__GO_VERSION__/1.19.8/g install/bin/install_go.sh
   > > sed: can't read install/bin/install_go.sh: No such file or directory
   > > ```
   > 
   > traffic_ops.spec uses a variable from that script: `GO_TARBALL_VERSION=__GO_VERSION__` Should this file be brought back or should that command be replaced?
   
   That isn't needed anymore because Go is no longer installed because we no longer use Goose, which is why install/bin/install_go.sh was removed


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficcontrol] ocket8888 commented on a diff in pull request #7271: Clean up unused code

Posted by GitBox <gi...@apache.org>.
ocket8888 commented on code in PR #7271:
URL: https://github.com/apache/trafficcontrol/pull/7271#discussion_r1063705249


##########
CHANGELOG.md:
##########
@@ -66,6 +66,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
 - [#7182](https://github.com/apache/trafficcontrol/pull/7182) *Traffic Control Cache Config (t3c)* Sort peers used in strategy.yaml to prevent false positive for reload.
 - [#7204](https://github.com/apache/trafficcontrol/pull/7204) *Traffic Control Cache Config (t3c)* strategies.yaml hash_key only for consistent_hash
 
+### Removed
+- Remove components in `infrastructre/docker/`, not in use, cdn-in-a-box performs the same functionality
+- Remove `misc/jira_github_issue_import.py`, the project does not use JIRA
+- Remove `traffic_ops/install/bin/_postinstall.pl` and `traffic_ops/install/lib/`, _postinstall.py is the recommended script to use for install
+- Remove `traffic_ops/install/bin/convert_profile/`, this script is outdated and is for use on an EOL ATS version
+- Remove `traffic_ops/install/bin/install_go.sh`, `traffic_ops/install/bin/todb_bootstrap.sh` and `traffic_ops/install/bin/install_goose.sh` are no longer in use
+- 
+

Review Comment:
   These need a PR or issue link, and you've got an extra blank list item at the end.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficcontrol] smalenfant commented on pull request #7271: Clean up unused code

Posted by GitBox <gi...@apache.org>.
smalenfant commented on PR #7271:
URL: https://github.com/apache/trafficcontrol/pull/7271#issuecomment-1379143961

   I use the following in out "upgrade_ats.yml" Ansible playbook. I don't think it needs to be part of Traffic Ops build. I would vote to move this into the "tools" folder.
   
   ``` 
     - name: Build the profile converter
       shell: go get -u github.com/apache/trafficcontrol/traffic_ops/install/bin/convert_profile
       args:
         creates: "~/go/bin/convert_profile"
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficcontrol] ericholguin commented on pull request #7271: Clean up unused code

Posted by GitBox <gi...@apache.org>.
ericholguin commented on PR #7271:
URL: https://github.com/apache/trafficcontrol/pull/7271#issuecomment-1379431918

   > I do use this convert_profile when I upgrade ATS. I have those rules still in use on our local repository. Can we expand on "outdated" ?
   > 
   > ```
   > convert_ats7_to_ats8.yaml
   > convert_ats8_to_ats9.yaml
   > ```
   
   The files removed from the `convert_profile` directory were:
   - convert622to713.json
   - convert622to713.yaml 
   - convert_profile.go 
   - convert_profile_test.go
   
   Outdated here being the ATS versions those scripts reference: 6.2.2 and 7.1.3. If these are still in use I can re-add them to this PR.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org