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

ci: fixes to actions caches #3970

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

davidhewitt
Copy link
Member

This attempts to fix some issues I'm seeing in our CI caches:

  • The cross-compilation jobs are unintentionally sharing cache for different build targets. I think this has caused the issue we are currently seeing with GLIBC linking in the x86_64 linux job.
  • The cache cleanup job is not being granted write permissions to delete caches. If I'm reading the GitHub Actions docs correctly the pull_request_target runs using the base branch (i.e. main), so can be trusted to grant write permissions.
  • The cargo-semver-checks cache key starts with a dash, like -semver-<whatever> and the gh actions-cache delete command was treating it as a flag, which it did not recognize. Hopefully by passing the key after -- will force it to treat it positionally.

cc @obi1kenobi - you might be interested to know that the leading dash in the cargo-semver-checks cache key can be a footgun for automated tooling.

Will proceed straight to merge as I think there's nothing contentious here and it should unblock CI.

@davidhewitt davidhewitt added the CI-skip-changelog Skip checking changelog entry label Mar 19, 2024
@davidhewitt davidhewitt added this pull request to the merge queue Mar 19, 2024
Merged via the queue into PyO3:main with commit ebeea94 Mar 19, 2024
42 of 43 checks passed
@davidhewitt davidhewitt deleted the cross-compilation-cache branch March 19, 2024 08:55
@obi1kenobi
Copy link
Contributor

cc @obi1kenobi - you might be interested to know that the leading dash in the cargo-semver-checks cache key can be a footgun for automated tooling.

Ah interesting, thanks for the ping! I'll look into this.

@obi1kenobi
Copy link
Contributor

Published an updated action (v2.4) that won't use a leading dash. As is usual practice, I re-pointed the v2 tag to v2.4 so it'll get picked up automatically for most users.

Thanks for letting me know!

@davidhewitt
Copy link
Member Author

Great, thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-skip-changelog Skip checking changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants