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

Upgrade the Agent build to embed Python 3.8.1 #4464

Merged
merged 45 commits into from
Feb 3, 2020
Merged

Conversation

remeh
Copy link
Contributor

@remeh remeh commented Nov 20, 2019

What does this PR do?

Upgrade the Agent build to embed Python 3.8.1

I had to upgrade:

Motivation

Provide the Agent with the latest Python 3 available.

@remeh remeh added [deprecated] team/agent-core Deprecated. Use metrics-logs / shared-components labels instead.. changelog/no-changelog labels Nov 20, 2019
@remeh remeh requested review from a team as code owners November 20, 2019 17:29
@remeh remeh requested a review from therve November 20, 2019 17:29
@remeh remeh added this to the 6.16.0 milestone Nov 20, 2019
Copy link
Member

@truthbk truthbk left a comment

Choose a reason for hiding this comment

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

I believe python 3.8 introduced some changes to the C-API (should def be non-breaking), but let's make sure the RTLoader is behaving as expected! :)

Also, though the pip-tools and setuptools version bumps are welcome, can we do those in a separate PR? Or are those changes required by python3.8?

@remeh
Copy link
Contributor Author

remeh commented Nov 21, 2019

@truthbk Yep it's needed for the build with Python 3.8 to succeed, the reason is linked in the PR description, I'm testing the build this morning :)

@remeh remeh modified the milestones: 6.16.0, Triage Nov 21, 2019
truthbk
truthbk previously approved these changes Dec 9, 2019
Copy link
Member

@truthbk truthbk left a comment

Choose a reason for hiding this comment

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

Let's roll this out for 6.16 6.17 (my bad!)

@olivielpeau olivielpeau modified the milestones: Triage, 7.17.0 Dec 9, 2019
Copy link
Contributor

@ruthnaebeck ruthnaebeck left a comment

Choose a reason for hiding this comment

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

Docs review

releasenotes/notes/python-3-8-c66cde69f972eb1e.yaml Outdated Show resolved Hide resolved
releasenotes/notes/python-3-8-c66cde69f972eb1e.yaml Outdated Show resolved Hide resolved
releasenotes/notes/python-3-8-c66cde69f972eb1e.yaml Outdated Show resolved Hide resolved
docs/dev/agent_dev_env.md Outdated Show resolved Hide resolved
docs/dev/agent_dev_env.md Outdated Show resolved Hide resolved
ofek
ofek previously approved these changes Jan 30, 2020
KSerrania
KSerrania previously approved these changes Jan 30, 2020
omnibus/package-scripts/agent/prerm Outdated Show resolved Hide resolved
Copy link
Member

@olivielpeau olivielpeau left a comment

Choose a reason for hiding this comment

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

A few comments, mostly nits except the one on the package scripts.

Overall LGTM! Let's make sure we start testing this as soon as 7.17.0 is out

omnibus/package-scripts/agent/prerm Outdated Show resolved Hide resolved
releasenotes/notes/python-3-8-c66cde69f972eb1e.yaml Outdated Show resolved Hide resolved
.gitlab-ci.yml Outdated Show resolved Hide resolved
tasks/agent.py Show resolved Hide resolved
@remeh remeh dismissed stale reviews from KSerrania and ofek via 0ac14bb January 31, 2020 09:46
@codecov
Copy link

codecov bot commented Jan 31, 2020

Codecov Report

Merging #4464 into master will increase coverage by 0.17%.
The diff coverage is 65.93%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4464      +/-   ##
==========================================
+ Coverage   52.35%   52.52%   +0.17%     
==========================================
  Files         709      710       +1     
  Lines       51004    51247     +243     
==========================================
+ Hits        26702    26919     +217     
- Misses      22722    22752      +30     
+ Partials     1580     1576       -4
Flag Coverage Δ
#linux 53.61% <65.93%> (+0.03%) ⬆️
#windows 52.76% <ø> (-0.07%) ⬇️
Impacted Files Coverage Δ
pkg/process/util/netns.go 0% <0%> (ø)
pkg/util/kubernetes/apiserver/apiserver.go 10.86% <0%> (-0.1%) ⬇️
pkg/util/kubernetes/apiserver/controllers.go 0% <0%> (ø) ⬆️
pkg/util/kubernetes/apiserver/hpa_controller.go 64.03% <100%> (ø) ⬆️
pkg/util/kubernetes/apiserver/controller_util.go 60.31% <100%> (+0.31%) ⬆️
pkg/autodiscovery/listeners/common.go 79.16% <57.14%> (-2.66%) ⬇️
pkg/util/kubernetes/apiserver/wpa_controller.go 72.45% <91.22%> (+8.1%) ⬆️
pkg/collector/runner/runner.go 64.8% <0%> (-3.84%) ⬇️
pkg/ebpf/config.go 40.38% <0%> (-1.29%) ⬇️
pkg/logs/auditor/auditor.go 71.12% <0%> (-0.71%) ⬇️
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 427eba3...4fdc101. Read the comment docs.

olivielpeau
olivielpeau previously approved these changes Jan 31, 2020
Copy link
Member

@olivielpeau olivielpeau left a comment

Choose a reason for hiding this comment

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

Thanks! One last nit on the release note, feel free to merge once addressed

releasenotes/notes/python-3-8-c66cde69f972eb1e.yaml Outdated Show resolved Hide resolved
tasks/agent.py Show resolved Hide resolved
olivielpeau
olivielpeau previously approved these changes Feb 3, 2020
- |
Upgrade embedded Python 3 to 3.8.1. Link to Python 3.8 changelog: https://docs.python.org/3/whatsnew/3.8.html

Note that the Python 2 version shipped in Agent v6 continues to be version 2.7.17 (unchanged). Agent v7 will ship Python 3.8.1
Copy link
Member

Choose a reason for hiding this comment

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

Let's be either super explicit (see below):

Suggested change
Note that the Python 2 version shipped in Agent v6 continues to be version 2.7.17 (unchanged). Agent v7 will ship Python 3.8.1
Note that the Python 2 version shipped in Agent v6 continues to be version 2.7.17 (unchanged). Non-containerized packages of Agent v6 also ship Python 3 at version 3.8.1, and Agent v7 only ships Python 3.8.1.

or we can simply remove the Agent v7 will ship Python 3.8.1 sentence, since I feel it can be interpreted as only Agent v7 ships Python 3.8.1. Up to you

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fair enough!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[deprecated] team/agent-core Deprecated. Use metrics-logs / shared-components labels instead..
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants