Skip to content

Fix R2 sync region: force AWS_REGION=auto for Cloudflare endpoint#407

Merged
jeffreyaven merged 4 commits into
devfrom
fix/r2-sync-region
Jun 26, 2026
Merged

Fix R2 sync region: force AWS_REGION=auto for Cloudflare endpoint#407
jeffreyaven merged 4 commits into
devfrom
fix/r2-sync-region

Conversation

@jeffreyaven

Copy link
Copy Markdown
Member

The configure-aws-credentials step exports AWS_REGION=us-west-1 into the job env for the S3 artifact publish. The AWS CLI prefers AWS_REGION over AWS_DEFAULT_REGION, so the R2 sync inherited us-west-1 and R2 rejected it (InvalidRegionName; R2 only accepts auto/wnam/enam/...). Override AWS_REGION=auto in the step env and pass --region auto explicitly (CLI flag wins regardless of env precedence) on both the dev and prod sync steps.

jeffreyaven and others added 4 commits June 26, 2026 18:57
The configure-aws-credentials step exports AWS_REGION=us-west-1 into the job
env for the S3 artifact publish. The AWS CLI prefers AWS_REGION over
AWS_DEFAULT_REGION, so the R2 sync inherited us-west-1 and R2 rejected it
(InvalidRegionName; R2 only accepts auto/wnam/enam/...). Override AWS_REGION=auto
in the step env and pass --region auto explicitly (CLI flag wins regardless of
env precedence) on both the dev and prod sync steps.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
AOT Provider Analysis (aot.yml) and Integration Testing and Analysis
(regression.yml) are merge gates. They ran on both pull_request and push to
main/dev, so every merge re-ran the same expensive suite that already passed on
the PR. Drop the branch entries from their push triggers, keeping pull_request
(the gate) and the tag triggers (aot*/robot*/regression*/integration* on-demand
runs). No push/main-only publish exists in either workflow - their publish steps
are gated on IS_TAG/ref_type == 'tag', which is unaffected.

main.yml is unchanged: it must run on push to deploy, and its heavy steps are
already gated on NUM_PROVIDERS > 0.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
stackql-core is built from main and its go.mod now requires go >= 1.25.3, but
the workflows requested ~1.22. The newer setup-go (bumped to silence Node 20
warnings) sets GOTOOLCHAIN=local, so it would not auto-download a newer
toolchain and the "Build stackql from core source" step failed with
"go.mod requires go >= 1.25.3 (running go 1.22.12)".

Use GO_VERSION: stable in aot.yml and regression.yml. go.mod requirements only
ever name released Go versions, so the latest stable always satisfies them
(including future core bumps) and works with GOTOOLCHAIN=local.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jeffreyaven jeffreyaven merged commit 912c10f into dev Jun 26, 2026
5 checks passed
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.

1 participant