Skip to content

fix(e2e): make rollback-runtime scenario deterministic within act limits#123

Merged
joshua-temple merged 1 commit into
mainfrom
fix/promote-rollback-scenario
Jun 11, 2026
Merged

fix(e2e): make rollback-runtime scenario deterministic within act limits#123
joshua-temple merged 1 commit into
mainfrom
fix/promote-rollback-scenario

Conversation

@joshua-temple

Copy link
Copy Markdown
Collaborator

The promote rollback-runtime scenario (added in #118) failed deterministically at its clean orchestrate step and only passed intermittently before. Root cause: a reusable deploy callback cannot run actions/checkout against the auth-less per-scenario gitea, and act does not populate a reusable callback workspace with the repo tree, so the marker-file probe had nothing to read.

The deploy now probes the failure marker directly from the repo at the promoted SHA over the internal gitea alias (no auth needed): absent at the SHA the first promote carries, present at the SHA the second carries. act also keys a job by the reusable workflow inner job id, so the rollback jobs cannot be distinguished from the forward deploys by name; the rollback is asserted through its observable boundary instead - the promote concludes in failure with the app deploy failed and the infra deploy succeeded, the asymmetric outcome that triggers the rollback path. Deterministic across repeated isolated runs.

The scenario failed deterministically at the clean orchestrate step because a
reusable deploy callback cannot run actions/checkout against the auth-less
per-scenario gitea, and act does not populate a reusable callback workspace with
the repo tree. The deploy now probes the failure marker directly from the repo at
the promoted SHA over the internal gitea alias. act also keys a job by the reusable
workflow inner job id, so the rollback jobs cannot be told apart from the forward
deploys by name; the rollback is asserted through its observable boundary instead -
the promote concludes in failure with the app deploy failed and the infra deploy
succeeded, the asymmetric outcome that is the sole trigger for the rollback path.

Signed-off-by: Joshua Temple <joshua.temple@stablekernel.com>
@joshua-temple joshua-temple merged commit 670d214 into main Jun 11, 2026
6 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