Skip to content

github-actions: build images #2266

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

github-actions: build images #2266

wants to merge 7 commits into from

Conversation

v1v
Copy link
Member

@v1v v1v commented Apr 9, 2025

What

Workflow will create the docker images on demand.

Tasks

  • Create GH secrets

Tests

See https://github.com/elastic/apm-agent-python/actions/runs/14357988758/job/40252079563

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature.
v1v Victor Martinez
v1v added 4 commits April 9, 2025 15:07

Verified

This commit was signed with the committer’s verified signature.
v1v Victor Martinez

Verified

This commit was signed with the committer’s verified signature.
v1v Victor Martinez

Verified

This commit was signed with the committer’s verified signature.
v1v Victor Martinez

Verified

This commit was signed with the committer’s verified signature.
v1v Victor Martinez
@v1v v1v self-assigned this Apr 9, 2025
@v1v v1v requested review from a team April 9, 2025 13:14
@v1v v1v marked this pull request as ready for review April 9, 2025 13:14
xrmx
xrmx previously approved these changes Apr 9, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@v1v
Copy link
Member Author

v1v commented Apr 9, 2025

#15 5.405 Downloading six-1.17.0-py2.py3-none-any.whl (11 kB)
#15 5.435 Building wheels for collected packages: pytest-localserver
#15 5.436   Building wheel for pytest-localserver (setup.py): started
#15 5.623   Building wheel for pytest-localserver (setup.py): finished with status 'error'
#15 5.628   error: subprocess-exited-with-error
#15 5.628   
#15 5.628   × python setup.py bdist_wheel did not run successfully.
#15 5.628   │ exit code: 1
#15 5.628   ╰─> [8 lines of output]
#15 5.628       /usr/local/lib/python3.10/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
#15 5.628         warnings.warn(
#15 5.628       usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
#15 5.628          or: setup.py --help [cmd1 cmd2 ...]
#15 5.628          or: setup.py --help-commands
#15 5.628          or: setup.py cmd --help
#15 5.628       
#15 5.628       error: invalid command 'bdist_wheel'
#15 5.628       [end of output]
#15 5.628   
#15 5.628   note: This error originates from a subprocess, and is likely not a problem with pip.
#15 5.628   ERROR: Failed building wheel for pytest-localserver
#15 5.629   Running setup.py clean for pytest-localserver
#15 5.822 Failed to build pytest-localserver

Known issue, I thin something is wrong with wheel, we have seen that in some other projects, see pypa/wheel#662 (comment)

@v1v v1v enabled auto-merge (squash) April 9, 2025 13:54
@xrmx
Copy link
Member

xrmx commented Apr 9, 2025

#15 5.405 Downloading six-1.17.0-py2.py3-none-any.whl (11 kB)
#15 5.435 Building wheels for collected packages: pytest-localserver
#15 5.436   Building wheel for pytest-localserver (setup.py): started
#15 5.623   Building wheel for pytest-localserver (setup.py): finished with status 'error'
#15 5.628   error: subprocess-exited-with-error
#15 5.628   
#15 5.628   × python setup.py bdist_wheel did not run successfully.
#15 5.628   │ exit code: 1
#15 5.628   ╰─> [8 lines of output]
#15 5.628       /usr/local/lib/python3.10/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
#15 5.628         warnings.warn(
#15 5.628       usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
#15 5.628          or: setup.py --help [cmd1 cmd2 ...]
#15 5.628          or: setup.py --help-commands
#15 5.628          or: setup.py cmd --help
#15 5.628       
#15 5.628       error: invalid command 'bdist_wheel'
#15 5.628       [end of output]
#15 5.628   
#15 5.628   note: This error originates from a subprocess, and is likely not a problem with pip.
#15 5.628   ERROR: Failed building wheel for pytest-localserver
#15 5.629   Running setup.py clean for pytest-localserver
#15 5.822 Failed to build pytest-localserver

Known issue, I thin something is wrong with wheel, we have seen that in some other projects, see pypa/wheel#662 (comment)

This was a setuptools version that removed support for description-file after years of deprecations but a new one has been released with the removal reverted. Let me check if I can bump pytest-localserver to something newer than 3 years old.

@xrmx
Copy link
Member

xrmx commented Apr 10, 2025

Bumped pytest-localserver to a version that should have proper metadata.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@xrmx
Copy link
Member

xrmx commented Apr 10, 2025

@v1v silly quesiton: will I be able to run this on a branch? I need the image built from the branch adding 3.13 to the matrix in order to have tests for that PR pass.

@v1v
Copy link
Member Author

v1v commented Apr 10, 2025

@v1v silly quesiton: will I be able to run this on a branch? I need the image built from the branch adding 3.13 to the matrix in order to have tests for that PR pass.

Yes, workflow_dispatch: ~ is the way, then, once this PR is merged, you will be able to run on any branch.


Let me create a test branch with these changes to validate recent changes

https://github.com/elastic/apm-agent-python/actions/runs/14377179793/job/40312254554 is now running

@xrmx xrmx self-requested a review April 11, 2025 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants