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 CI: Use a tmpdir SCIE_BASE to force bootstrapping, incorporate Python path into cache key #385

Merged
merged 3 commits into from
Apr 5, 2024

Conversation

huonw
Copy link
Contributor

@huonw huonw commented Apr 3, 2024

There were two issues with CI:

  • It seems like the test that verifies silence on stdout wasn't always doing the required bootstrap. This makes the bootstrap always happen by forcing it to be starting with an empty cache (SCIE_BASE) by setting that to a fresh temp dir.
  • The ubuntu runner was failing to run the test_pants_source_mode test, because the venv from the restored cache had an symlink to /opt/hostedtoolcache/Python/3.9.18/x64/bin/python (NB version 3.9.18), but the runners have updated to 3.9.19. Fixes CI failures when GitHub Actions upgrades its python patch version #270.

@huonw huonw requested review from kaos and benjyw April 3, 2024 10:30
@huonw huonw mentioned this pull request Apr 3, 2024
@huonw

This comment was marked as resolved.

@huonw huonw changed the title Use a tmpdir SCIE_BASE to force bootstrapping Fix CI: Use a tmpdir SCIE_BASE to force bootstrapping, incorporate Python path into cache key Apr 4, 2024
@huonw
Copy link
Contributor Author

huonw commented Apr 4, 2024

I've added another fix beyond the original change to set SCIE_BASE, because CI was still failing, due to #270 again.

@huonw huonw merged commit 78bf289 into pantsbuild:main Apr 5, 2024
8 checks passed
@huonw huonw deleted the huonw/tmpdir-bootstrap branch April 5, 2024 03:19
Copy link
Member

@kaos kaos left a comment

Choose a reason for hiding this comment

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

Thanks 😅

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.

CI failures when GitHub Actions upgrades its python patch version
3 participants