Repository navigation
fix(build-dependency-cache): unset an empty region the restore ran without (SC-88184) - #24
Merged
samidalouche merged 1 commit intoNov 24, 2026
Conversation
…thout (SC-88184) v1.2.1 has the save take back the region its restore ran with, after configure-aws-credentials' post step sets AWS_REGION and AWS_DEFAULT_REGION to "". It didn't cover a job that sets no region before the cache step and configures credentials after it, as narrative-connectors' global-dependency-graph does: the restore ran with the region unset, which the aws CLI resolves itself (it restored 5.47 GiB), so there was nothing to keep, and the save still got "" and failed with "Invalid endpoint: https://s3..amazonaws.com". - s3-cache.js: the save sees the region as the restore did. Each region variable that's now empty is set back to the restore's value, or unset when the restore had none. - tests/s3-cache.test.js: a save unsets a region that was unset when the restore ran. - README.md says so. With the region unset and the credentials empty, `aws s3api head-object` goes on to look for credentials, as it does with the region set, instead of failing on the endpoint. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
samidalouche
deleted the
fix/sc-88184/build-dependency-cache-drop-an-empty-region
branch
November 24, 2026 21:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Story
SC-88184: CI, keep sbt's, mise's and uv's caches in S3. A follow-up to #22.
What and why
global-dependency-graphdoes. Its restore ran with the region unset, which the aws CLI resolves itself (it restored 5.47 GiB), so fix(build-dependency-cache): save with the region the restore ran with (SC-88184) #22 had nothing to keep.configure-aws-credentials' cleanup then set the region to"", and both saves still failed withInvalid endpoint: https://s3..amazonaws.com.Testing
tests/s3-cache.test.js: a save unsets a region that was unset when the restore ran; the 11 earlier tests still pass.aws s3api head-objectgoes on to look for credentials instead of failing on the endpoint.global - dependency-graphonmainshould logsaved …or… is already saved.🤖 Generated with Claude Code