Skip to content

ci: stop an unreachable AWS region from failing layer releases - #2694

Open
wpessers wants to merge 1 commit into
open-telemetry:mainfrom
wpessers:ci/tolerate-unreachable-regions
Open

wpessers wants to merge 1 commit into
open-telemetry:mainfrom
wpessers:ci/tolerate-unreachable-regions

Conversation

@wpessers

Copy link
Copy Markdown
Member

Problem

The layer release workflows publish to me-south-1, and every release since at least August has failed there. The publish job can't reach the regional STS endpoint, so configure-aws-credentials times out on all 12 AssumeRole attempts, which takes about 75 minutes:

Retry AssumeRole: attempt 12 of 12 failed: Could not assume role with OIDC: connect ETIMEDOUT 99.82.136.65:443

(example run)

The publish matrices use the default fail-fast: true, so that failure also cancels any other publish jobs still running. In that run it cancelled arm64/me-south-1. Every release run ends up red, which makes real failures easy to miss.

Changes

  • fail-fast: false on every publish matrix (collector, nodejs, python, java agent and wrapper, ruby, and the manual collector publish). A failing region no longer cancels the others.
  • Reachability check in layer-publish.yml: before assuming the role, the job tries https://sts.<region>.amazonaws.com up to 3 times with a 10 second timeout. If the region doesn't answer, the job fails in about a minute instead of 75. Any HTTP response counts as reachable; only a connection failure fails the check.
  • timeout-minutes: 20 on the publish job as a backstop.
  • Allowed-to-fail regions: continue-on-error is set for regions in one list in layer-publish.yml, currently just me-south-1. A failed publish there still shows on the job with an error annotation, but it doesn't fail the release. continue-on-error isn't allowed on a job that calls a reusable workflow, so it lives on the called job. Once the region recovers, removing it from the list is a one-line change.

Notes for reviewers

  • The release jobs here run on tag pushes, so I couldn't test this end to end. I checked the reachability step locally: sts.eu-west-1 answers, and sts.me-south-1 times out (curl exit 28).
  • I'm not certain whether a failed continue-on-error job inside a reusable workflow leaves the calling matrix job green or red. The next release will show it. Either way, fail-fast: false keeps the other regions publishing.
  • me-south-1 will be missing the layer versions released while it's down. Today only the collector has a manual workflow (publish-layer-collector.yml) for publishing a version to one region later.

me-south-1 has been unreachable since at least August: the publish job
times out on every AssumeRole attempt against the regional STS endpoint,
retrying for about 75 minutes before it fails. Because the publish
matrices use the default fail-fast, that failure also cancels the
publish jobs still running for other regions, and every release run
ends up red.

- Set fail-fast: false on all publish matrices, so one region cannot
  cancel the others.
- Check that the region's STS endpoint answers before assuming the role,
  and fail within about a minute if it does not. Add a 20 minute job
  timeout as a backstop.
- Mark me-south-1 as continue-on-error in layer-publish.yml. A failed
  publish there still shows on the job, but no longer fails the release.
  The list is in one place, so removing the region once it recovers is
  a one-line change.
@github-project-automation github-project-automation Bot moved this from Todo to Need more Approval in Lambda Triage Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Need more Approval

Development

Successfully merging this pull request may close these issues.

3 participants