Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Perl postinstall script #7841

Merged
merged 19 commits into from
Feb 12, 2024

Conversation

ocket8888
Copy link
Contributor

@ocket8888 ocket8888 commented Oct 18, 2023

This PR removes the Perl implementation of the Postinstall script and updates documentation accordingly. It also removes support for Python 2, including a code-level compatibility; this won't just not try to run with Python 2 by default, it is now syntactically incompatible with that dead language. Also, as Python3.6 is already end-of-life, the requirement is now Python 3.8+ (EOL November 2024, I believe).


Which Traffic Control components are affected by this PR?

  • Documentation
  • Postinstall

What is the best way to verify this PR?

Make sure the postinstall tests pass.

PR submission checklist

  • This PR has tests
  • This PR has documentation
  • This PR has a CHANGELOG.md entry
  • This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY

@ocket8888 ocket8888 added Traffic Ops related to Traffic Ops documentation related to documentation low impact affects only a small portion of a CDN, and cannot itself break one tech debt rework due to choosing easy/limited solution install related to the installation process python Pull requests that update Python or Python-related code medium impact impacts a significant portion of a CDN, or has the potential to do so and removed low impact affects only a small portion of a CDN, and cannot itself break one labels Oct 18, 2023
@ocket8888 ocket8888 force-pushed the tools/postinstall/remove-perl branch from b3cc7db to ffc3b68 Compare October 19, 2023 17:14
traffic_ops/install/bin/_postinstall.py Dismissed Show dismissed Hide dismissed
Copy link
Member

@zrhoffman zrhoffman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CDN in a Box fails to build trafficops because the python3 dependency is not installed in advance

 > [trafficops 4/5] RUN rpm -Uvh /traffic_ops.rpm && 	rm /traffic_ops.rpm:
Failed dependencies:
0.619 	python3 is needed by traffic_ops-8.1.0-9.03f1cf92.el8.x86_64

traffic_ops/build/traffic_ops.spec Outdated Show resolved Hide resolved
traffic_ops/install/bin/postinstall Outdated Show resolved Hide resolved
.github/workflows/postinstall.tests.yml Outdated Show resolved Hide resolved
Yes, you read that right. No, it's not a typo. Traffic Ops will refuse to load
a configuration file that gives the Traffic Ops Golang port as an integer
instead of a string.
@ocket8888 ocket8888 force-pushed the tools/postinstall/remove-perl branch from ca5955c to 9a08095 Compare January 11, 2024 22:42
Copy link
Member

@zrhoffman zrhoffman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@zrhoffman zrhoffman merged commit 57bae11 into apache:master Feb 12, 2024
21 checks passed
@ocket8888 ocket8888 deleted the tools/postinstall/remove-perl branch February 13, 2024 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation related to documentation install related to the installation process medium impact impacts a significant portion of a CDN, or has the potential to do so python Pull requests that update Python or Python-related code tech debt rework due to choosing easy/limited solution Traffic Ops related to Traffic Ops
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants