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 PYTHON_VERSION from Docker image building #31483

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

alopezz
Copy link
Contributor

@alopezz alopezz commented Nov 26, 2024

What does this PR do?

Clean up references to PYTHON_VERSION when building Agent images.

Motivation

Cleanup, as it's no longer needed now that we don't have Agent 6 on main.

Describe how to test/QA your changes

Done with:

  • Diffing the files in the container before and after the change (only the python-config link was dropped, see below).
  • Ran e2e tests via integrations-core's tooling (ddev env run -a registry.ddbuild.io/ci/datadog-agent/agent:v49956016-d72dbc8d-7-amd64, etc.)

Possible Drawbacks / Trade-offs

Additional Notes

The only difference in the files included in the image is that we lose the link of python-config -> python3-config. This should generally not be needed (more so given that a default python install won't attempt to create it).

As it's no longer needed now that we don't have Agent 6 on main
@alopezz alopezz requested review from a team as code owners November 26, 2024 13:11
@alopezz alopezz requested a review from Kaderinho November 26, 2024 13:11
@github-actions github-actions bot added the short review PR is simple enough to be reviewed quickly label Nov 26, 2024
@alopezz alopezz added changelog/no-changelog qa/done QA done before merge and regressions are covered by tests team/agent-delivery labels Nov 26, 2024
Comment on lines -90 to -96
&& if [ "$PYTHON_VERSION" = "3" ]; then \
rm -rf \
opt/datadog-agent/embedded/bin/pip2* \
opt/datadog-agent/embedded/bin/python2* \
opt/datadog-agent/embedded/include/python2* \
opt/datadog-agent/embedded/lib/*python2* || true ;\
fi \
Copy link
Member

Choose a reason for hiding this comment

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

I assume we no longer need to run this command because we no longer install Python, right?

Copy link
Member

@GustavoCaso GustavoCaso left a comment

Choose a reason for hiding this comment

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

LGTM!

@github-actions github-actions bot added medium review PR review might take time and removed short review PR is simple enough to be reviewed quickly labels Nov 26, 2024
@alopezz
Copy link
Contributor Author

alopezz commented Nov 27, 2024

/merge

@dd-devflow
Copy link

dd-devflow bot commented Nov 27, 2024

Devflow running: /merge

View all feedbacks in Devflow UI.


2024-11-27 07:51:29 UTC ℹ️ MergeQueue: pull request added to the queue

The median merge time in main is 23m.

@dd-mergequeue dd-mergequeue bot merged commit fb2da08 into main Nov 27, 2024
234 of 236 checks passed
@dd-mergequeue dd-mergequeue bot deleted the alopez/remove-python-version-docker branch November 27, 2024 08:10
@github-actions github-actions bot added this to the 7.61.0 milestone Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog medium review PR review might take time qa/done QA done before merge and regressions are covered by tests team/agent-delivery
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants