Skip to content

ci: make actions-cache steps access S3 using the correct region - #1391

Merged
strophy merged 1 commit into
v0.25-devfrom
ci/fix-region
Sep 13, 2023
Merged

strophy merged 1 commit into
v0.25-devfrom
ci/fix-region

Conversation

@strophy

@strophy strophy commented Sep 12, 2023 •

Copy link
Copy Markdown
Contributor

Issue being fixed or feature implemented

Actions using everpcpc/actions-cache were experiencing non-fatal errors when trying to access S3, slowing down actions:

Restore s3 cache failed: Error: Unexpected (permanent) at Pager::next, context: { response: Parts { status: 301, version: HTTP/1.1, headers: {"x-amz-bucket-region": "eu-west-1", "x-amz-request-id": "3WEXC0275TW606D3", "x-amz-id-2": "BQW9Imt05kUrseOe7TpuXwChVydDLjFl+/p3tpxbZiTZVJzyp/Mnm06R3hAAXkQBFcU+9nWT008=", "content-type": "application/xml", "transfer-encoding": "chunked", "date": "Tue, 12 Sep 2023 04:32:59 GMT", "server": "AmazonS3"} }, service: s3, path: Linux-yarn-unplugged-eef79a1fefecdfa2e3d63ea004871c480d656559c004f343a5fc34f32c02cd39/ } => S3Error { code: "PermanentRedirect", message: "The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.", resource: "", request_id: "3WEXC0275TW606D3" }

What was done?

This error occurs when attempting to access a bucket in the wrong region. Unlike our custom caching actions, this action depends on a properly configured AWS environment on the runner now that we are using gateway endpoints to access S3. Running aws-actions/configure-aws-credentials first sets up the environment properly.

How Has This Been Tested?

In CI

Breaking Changes

None, but we should merge dcginfra/tf-aws-gh-runner#11 first because the updated action requires Node 20

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@shumkov shumkov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍

@strophy
strophy merged commit 56a86b0 into v0.25-dev Sep 13, 2023
@strophy
strophy deleted the ci/fix-region branch September 13, 2023 05:47
ktechmidas pushed a commit that referenced this pull request Sep 15, 2023
shumkov pushed a commit that referenced this pull request Sep 15, 2023
@thephez thephez added this to the v0.25.0 milestone Oct 11, 2023
llbartekll added a commit that referenced this pull request Nov 13, 2026
Moves the pin from the branch of rust-dashcore#1391 to `dev` at
d659dcd1, which carries #1391 and #1400 (public `masternode_collateral`
and `holds_coin`). The pin is no longer on a PR branch.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
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