Repository navigation
chore(deploy): run factory v0.6.0 on the AWS kit - #284
Merged
Merged
Conversation
Pin aws_ssm_parameter.image to the v0.6.0 image index digest (linux/amd64 + linux/arm64). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Task: none — deploys v0.6.0 to the AWS dispatcher
Changes
deploy/aws/instance.tf,aws_ssm_parameter.image: pinghcr.io/containersolutions/factory@sha256:a3adcb2e6285c1300ae52230759b09fab503f880d9db5fded3874bf3e5353a52and set the version comment to# factory v0.6.0. That is the OCI image index digest ofghcr.io/containersolutions/factory:v0.6.0(application/vnd.oci.image.index.v1+jsonwith linux/amd64 + linux/arm64, so the t4g instance gets its arm64 image; labelsorg.opencontainers.image.version=v0.6.0,org.opencontainers.image.revision=cc87cf6a08865c1d2d774ce5de961704e18fe5b8, the tag's commit), the same kind of pin as the v0.5.0 one it replaces. Checked withcrane digest,crane manifestandcrane config --platform linux/arm64(andlinux/amd64, same labels). Therelease-imagerun forv0.6.0completed successfully.Nothing else in
deploy/aws(or the rest of the repo) names the old release or digest.What v0.6.0 changes for this kit
v0.6.0 is #281 and #282 on top of v0.5.0 (plus #280 itself).
serveflag changes:git diff v0.5.0 v0.6.0 -- cmd/is empty, so/factory/prod/argsandfactory-runneed no change.git diff v0.5.0 v0.6.0 -- internal/storeis empty.actions: read, to read each check suite'sworkflowRun. Per fix(provider-github): roll up only the latest check suite per workflow #281, an installation without Actions: read fails Observe, ReadContent and Project withErrInvalidafter deploy. Theccf-factoryApp's installation oncompliance-frameworkalready grants it: its permissions readactions: read(checked withgh api orgs/compliance-framework/installations). Nothing to do before the apply.ci.reruneffect): the op mints{actions: write, pull_requests: read}for the author identity (ccf-factory). That installation has Actions: read only, soci.rerunfails withErrInvalid(naming Actions: write) until the App is given Actions: write in its settings and the installation accepts it. The catalog already uses it: compliance-framework/factory-catalog#21 (merged 2026-11-25 16:28Z) allowsci.reruninbump-fix, whose prompt callsfactory ci rerunon a flaky CI failure. Grant Actions: write to ccf-factory and accept it on the compliance-framework installation before (or together with) this apply; until then every bump-fix rerun fails withErrInvalidand the run ends without the rerun.Expected plan after merge
aws_ssm_parameter.image: updated in place. Nothing else from this PR.user_data. Follow README §9, Switching from the bucket (once), for that apply (the optional state copy and redelivering webhooks).Deploy (README §9)
If #278 is already applied:
Then redeliver any webhooks from the restart window. If #278 isn't applied yet, the replaced instance starts on v0.6.0 directly: no restart needed, just the §9 switch steps.
Rollback
Restoring the v0.5.0 pin (
sha256:029131f6de9b4d9582e15f254e1aca0b4302ad76256a9596c3519d6b4ef62d07) is safe for the store (no change between the two), but not on its own:/factory/prod/argssets no--catalog-ref, so serve loads catalogmain, which since compliance-framework/factory-catalog#21 allowsci.rerun. v0.5.0 doesn't know that op (CAT100/CAT900), and after a restart nothing is cached, so serve finds no valid catalog and exits. Roll back the catalog too, in the same apply: either add--catalog-ref 04846cbca89686c7cead4e0c6532b187d7f94f93(catalogmainbefore #19–#21) toaws_ssm_parameter.args, or revert factory-catalog#21 first.Why this deploy is urgent: the dispatcher running today (v0.5.0) rejects catalog
mainsince 16:28Z and keeps serving its last good catalog from memory. It is one restart or reboot away from failing to start. Applying v0.6.0 removes that.Decisions
Verification (CI's
tofujob, indeploy/aws, OpenTofu v1.13.9)tofu fmt -checktofu init -backend=false -input=false.terraform.lock.hclunchangedtofu validateSuccess! The configuration is valid.tofu testSuccess! 15 passed, 0 failed.Nothing was planned against or applied to AWS.
🤖 Generated with Claude Code