Repository navigation
Labels
area: architectureArchitecture, design debt, major refactors, or maintainabilityarea: ciCI workflows, checks, release automation, or GitHub Actionsarea: e2eEnd-to-end tests, nightly failures, or validation infrastructurehelp wantedMaintainers welcome external contribution
Description
Parent: #6952
Problem
The Generate E2E target matrix step in .github/workflows/e2e.yaml is a 93-line shell program around tools/e2e/workflow-plan.mts. YAML currently owns selector validation, output-schema validation, Hermes-selection cross-checking, GitHub output encoding, and the execution-plan summary even though the typed planner is the source of truth.
A nearby controller-dispatch step also repeats identity validation that belongs with the PR E2E controller.
Work
- Extend
tools/e2e/workflow-plan.mtswith a CI output mode that validates selectors, validates its final schema, emits the four GitHub outputs, and renders the job summary. - Move controller-dispatch identity validation to the existing
tools/e2e/pr-e2e-gate.mtsboundary or another existing controller owner. - Keep checkout, permissions, environment mapping, and action ordering in YAML.
- Preserve the current typed registry and credential-free test discovery as the only planning sources of truth.
Acceptance criteria
- The matrix-generation workflow step becomes a short helper invocation.
- Invalid inference modes, mixed
jobs/targets, malformed selectors, duplicate IDs, malformed rows, and unexpected Hermes selection still fail closed. matrix,test_matrix,hermes_selected, andexplicit_only_jobsoutputs are byte-compatible where GitHub consumes them.- The execution-plan summary remains equivalent.
- Controller-dispatched runs still bind workflow SHA, checkout SHA, base SHA, PR number, correlation ID, plan hash, and same-repository head before any selected job runs.
- Planner/controller unit tests own behavior; workflow-boundary tests own wiring and trust.
Metadata
Metadata
Assignees
Labels
area: architectureArchitecture, design debt, major refactors, or maintainabilityarea: ciCI workflows, checks, release automation, or GitHub Actionsarea: e2eEnd-to-end tests, nightly failures, or validation infrastructurehelp wantedMaintainers welcome external contribution
Activity
fix(e2e): keep controller dispatch validation in trusted workflow code
refactor(e2e): centralize workflow plan output in the typed planner
refactor(e2e): centralize workflow plan output in the typed planner
refactor(e2e): centralize workflow plan output (#6970)