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

Fix non-determinism of package_data in generated setup.py files (Cherry-pick of #15292) #15300

Merged
merged 1 commit into from
May 2, 2022

Conversation

stuhood
Copy link
Member

@stuhood stuhood commented May 2, 2022

As described in #14843, (some) tests which consumed runtime_package_dependencies would always miss the cache.

This was because the dists generated for each run were slightly different, which came down to the package_data generated for resources being in a non-deterministic order due to iterating over a set. See #14195 (comment) for some thoughts on how to avoid this kind of issue in the future.

Fixes #14843: warm CI times should drop by about 1 minute from ~3m to ~2m.

…antsbuild#15292)

As described in pantsbuild#14843, (some) tests which consumed `runtime_package_dependencies` would always miss the cache.

This was because the dists generated for each run were slightly different, which came down to the `package_data` generated for `resources` being in a non-deterministic order due to iterating over a `set`. See pantsbuild#14195 (comment) for some thoughts on how to avoid this kind of issue in the future.

Fixes pantsbuild#14843: warm CI times should drop by about 1 minute from ~3m to ~2m.
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]
@stuhood stuhood added the category:bugfix Bug fixes for released features label May 2, 2022
@stuhood
Copy link
Member Author

stuhood commented May 2, 2022

Will wait to land until after 2.11.x has gone out.

@stuhood stuhood merged commit 301263a into pantsbuild:2.11.x May 2, 2022
@stuhood stuhood deleted the cherry-pick-15292-to-2.11.x branch May 2, 2022 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants