Skip to content

feat(ci): fold GovCloud/China layer publishing into Make Release#5462

Open
svozza wants to merge 3 commits into
mainfrom
issue-5451-layer-release-consolidation
Open

feat(ci): fold GovCloud/China layer publishing into Make Release#5462
svozza wants to merge 3 commits into
mainfrom
issue-5451-layer-release-consolidation

Conversation

@svozza

@svozza svozza commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Today, GovCloud/China layer publishing requires a separate manual workflow_dispatch of Layer Deployment (Partitions) after every release, and the ARN-doc PR is opened right after the commercial Prod deploy — before GovCloud/China even run — so it has to guess those regions' version numbers ahead of time. This folds both partitions directly into publish_layer.yml so they deploy automatically right after commercial Prod finishes, using the exact version deploy-prod just published (no more guessing via list-layer-versions), and only opens the ARN-doc PR once all three (commercial, GovCloud, China) Prod deployments are complete.

This was designed and rehearsed end-to-end on an internal fork before porting it here, including two full dispatches of make-release.yml that confirmed the job graph runs automatically (commercial beta → commercial prod → GovCloud/China gamma+prod in parallel → single consolidated ARN-update PR). The actual AWS CLI and npm-publish calls were mocked/stubbed for the rehearsal — only the job wiring, needs: graph, and control flow were verified live; the AWS-facing steps themselves are unchanged from their existing implementations.

Changes

  • publish_layer.yml: added download-layer (pulls the layer version deploy-prod just deployed) plus deploy-govcloud-gamma/deploy-govcloud-prod and deploy-china-gamma/deploy-china-prod jobs, both partitions deploying in parallel after commercial Prod; update_layer_arn_docs now waits on all three partitions' Prod deployments before opening its PR
  • make-release.yml: updated release-process comments to reflect the new step and dependency
  • layers_partitions.yml: updated comments to note it's now a standalone manual recovery tool rather than part of the automated release path (kept as-is otherwise, per the issue)
  • docs/maintainers.md: updated the release checklist and release-process Gantt chart to remove the now-obsolete manual GovCloud/China trigger steps and reflect the new parallel deployment step

Issue number: closes #5451


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

GovCloud and China layer publishing required a separate manual
workflow_dispatch of `Layer Deployment (Partitions)` after every
release, gated on guessing the latest layer version via
`list-layer-versions`. Fold both partitions into `publish_layer.yml`
so they deploy automatically, using the exact version `deploy-prod`
just published, right after the commercial Prod deployment finishes.
@powertools-for-aws-oss-automation powertools-for-aws-oss-automation Bot added size/L PRs between 100-499 LOC and removed size/L PRs between 100-499 LOC labels Jul 13, 2026
@sonarqubecloud

Copy link
Copy Markdown

@dreamorosi dreamorosi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Diff looks good as far as I can tell by reading it, but I guess we'll know once we make the next release.

Do we have an idea of the failure modes? I think knowing them would help us understand if we need to setup a sample environment to run these or if it's fine to test during the release because it's recoverable.

@svozza

svozza commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

The most likely failure mode is that the newly added workflow fails to execute because of some wriing or permission issue. In that case we'd have to fall back to running the old workflows. Another thing that could happen is that the push to beta works but for some reason the verification fails so the push to prod doesn't happen. Again, we would have to fall back to the old workflows (although only run it for the prod environment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L PRs between 100-499 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maintenance: Fold GovCloud/China layer publishing and ARN doc update into Make Release

2 participants