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

build-release: ensure Python files in the package compile #552

Merged
merged 1 commit into from
Nov 11, 2023

Conversation

gotmax23
Copy link
Contributor

We've had multiple problems with certain collections pushing releases
with broken Python files that don't compile. These issues break
downstream packages even for users that don't need the broken plugins.
This basic smoke test should help us prevent that type of issue.

Copy link
Collaborator

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

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

Thanks! This is definitely a good idea.

My main concern about this is how long it takes. But in CI, it only took ~15 seconds:

2023-11-10T20:43:16.9703084Z TASK [build-release : Run bytecompile] *****************************************
2023-11-10T20:43:16.9704440Z task path: /home/runner/work/antsibull/antsibull/antsibull/roles/build-release/tasks/test_bytecompile.yaml:19
2023-11-10T20:43:31.8439121Z changed: [localhost] => 

(in the Ansible 9 build). So I think this is totally fine.

changelogs/fragments/552-compileall.yaml Outdated Show resolved Hide resolved
roles/build-release/defaults/main.yaml Outdated Show resolved Hide resolved
We've had multiple problems with certain collections pushing releases
with broken Python files that don't compile. These issues break
downstream packages even for users that don't need the broken plugins.
This basic smoke test should help us prevent that type of issue.
@gotmax23 gotmax23 merged commit 27754fb into ansible-community:main Nov 11, 2023
8 checks passed
@gotmax23
Copy link
Contributor Author

Thanks!

@felixfontein
Copy link
Collaborator

Thanks for adding this huge improvement!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants