Skip to content

fix: correlate external-update runs and run scoped deploy job in e2e#214

Merged
joshua-temple merged 1 commit into
mainfrom
fix/external-update-runname-e2e
Jun 18, 2026
Merged

fix: correlate external-update runs and run scoped deploy job in e2e#214
joshua-temple merged 1 commit into
mainfrom
fix/external-update-runname-e2e

Conversation

@joshua-temple

Copy link
Copy Markdown
Collaborator

Problem

Two deploy-on-update breakages:

  1. The generated external-update.yaml had no run-name, so a workflow_dispatch receiver run's displayTitle defaulted to the workflow name ("External Update"). Downstream consumers correlate a receiver run by matching the dispatched sha in the run title, which could never match.

  2. The external-update-deploys-component e2e scenario pointed on_update.deploy.workflow at a cross-repo reusable workflow. The receiver workflow runs under act, which cannot auth-clone that cross-repo workflow from gitea, so the generated deploy_cdk job failed and the whole receiver run concluded failure, turning Integration red.

Fix

  • Emit run-name: External Update ${{ inputs.deploy_name }} ${{ inputs.sha }} in writeWorkflowTrigger so each receiver run's displayTitle embeds the component and sha and is correlatable.
  • Repoint the e2e scenario's on_update.deploy.workflow at a local reusable workflow seeded into the primary repo before the dispatch. act resolves it via uses: ./ and the scoped deploy job now runs to success, exercising the deploy-on-update path live instead of failing.

Verification

  • TDD for the run-name change: failing unit test first, then green.
  • go build ./... && go test ./... && golangci-lint run ./... all green (1426 tests pass, lint clean).
  • e2e module builds and vets clean.
  • Ran the scenario locally with Docker/act/gitea: --- PASS: TestMultiRepoScenarios/external-update-deploys-component (24.88s).

External-update receiver runs had no run-name, so a workflow_dispatch
run's displayTitle defaulted to the workflow name and downstream
consumers could not correlate a receiver run to the dispatched
component and sha. Emit run-name: External Update <deploy_name> <sha>
so each run is correlatable.

The external-update-deploys-component e2e scenario pointed its
on_update.deploy.workflow at a cross-repo reusable workflow that act
cannot auth-clone from gitea, failing the generated deploy_cdk job and
the whole receiver run. Repoint it at a local reusable workflow seeded
into the primary repo so act resolves it via uses: ./ and the scoped
deploy job runs to success, exercising the deploy-on-update path live.

Signed-off-by: Joshua Temple <joshua.temple@stablekernel.com>
@joshua-temple joshua-temple merged commit d060377 into main Jun 18, 2026
11 checks passed
@joshua-temple joshua-temple deleted the fix/external-update-runname-e2e branch June 18, 2026 00:42
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