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

Commas are illegal in GHA cache keys #1101

Merged
merged 2 commits into from
Jun 14, 2024
Merged

Conversation

tgeoghegan
Copy link
Contributor

In #1100, we started building divviup_api_integration_test with feature admin. This breaks docker-release.yml, because the Rust features are used to construct GH Actions cache keys, and commas are illegal there (at the very least, docker buildx build --cache-from doesn't like it). Construct the cache key by joining with - to work `around this.

Additionally, this should have broken docker.yml, but I forgot to add the admin feature there, which this PR corrects.

Part of #1096

In #1100, we started building `divviup_api_integration_test` with
feature `admin`. This breaks `docker-release.yml`, because the Rust
features are used to construct GH Actions cache keys, and commas are
illegal there (at the very least, `docker buildx build --cache-from`
doesn't like it). Construct the cache key by joining with `-` to work
`around this.

Additionally, this _should_ have broken `docker.yml`, but I forgot to
add the `admin` feature there, which this PR corrects.

Part of #1096
@tgeoghegan tgeoghegan requested a review from a team as a code owner June 14, 2024 19:52
@@ -10,12 +10,16 @@ jobs:
build_docker:
strategy:
matrix:
rust-features: ["default", "integration-testing"]
rust-features: [["default"], ["integration-testing"] , [admin"]]
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: typo

Suggested change
rust-features: [["default"], ["integration-testing"] , [admin"]]
rust-features: [["default"], ["integration-testing", "admin"]]

@tgeoghegan tgeoghegan force-pushed the timg/docker-cache-commas branch from 8f5a8f0 to 2c835ff Compare June 14, 2024 20:10
@tgeoghegan tgeoghegan merged commit e78d191 into main Jun 14, 2024
6 of 7 checks passed
@tgeoghegan tgeoghegan deleted the timg/docker-cache-commas branch June 14, 2024 20:15
@tgeoghegan
Copy link
Contributor Author

Oh, shoot, this let me merge despite the test failing.

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.

3 participants