Repository navigation
Closed
Task
Copy link
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
.github/workflows/e2e.yaml repeats the standard live-Vitest reporter invocation about 70 times, OpenShell installation about 40 times, Docker-auth cleanup 72 times, and the same expect host-package retry program four times. The workflow already proves the preferred pattern with pinned prepare-e2e and upload-e2e-artifacts actions.
Not every repetition should be abstracted: job-specific environment, security ordering, and unusual tests remain explicit. Secret-bearing authentication and sudo host setup also cannot execute branch-controlled helper code.
Work
- Add a narrow pinned first-party action/helper for the common live-Vitest invocation: validated test path/target,
e2e-liveproject, standard reporters, and artifact signal handling. - Add a paired trusted Docker-auth setup helper alongside
.github/scripts/docker-auth-cleanup.sh; keep the credential predicate and secret mapping in YAML. - Evaluate a pinned host-dependency action for the four exact
expectinstalls. Keep those blocks inline if the immutable-action rollout would weaken auditability. - Adopt only in jobs that share the exact current contract; leave specialized Hermes GPU, rebuild, and other conditional programs explicit.
Acceptance criteria
- Compatible jobs no longer duplicate PATH/export, reporter, and command-shape boilerplate.
- Helper inputs reject shell metacharacters, path traversal, unexpected projects, and unsupported selector shapes.
- Risk-signal reporting, test titles, per-job environment, artifacts, timeouts, and exit codes remain unchanged.
- Docker credentials still use a private job-scoped
DOCKER_CONFIG, bounded login retries, an auth-attempt marker, and always-run cleanup. - Authentication and
sudosetup execute only from an immutable trusted action revision, never from the tested checkout. - Workflow-boundary tests continue to assert auth-before-pull, auth revocation before untrusted tooling, artifact-before-cleanup ordering, and exact package allowlists.
- The final PR reports which jobs were intentionally left explicit and why.
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
refactor(e2e): route live-Vitest invocations through a validated help…
Shaurya2k06 commentedon Jul 17, 2026
Hey, is this free to be taken up? If so, I'd like to give it a shot.
cc @cv
cv commentedon Jul 17, 2026
@Shaurya2k06 assigned it to you!
refactor(ci): add pinned Docker Hub auth setup action
refactor(ci): pin E2E Docker Hub auth to trusted setup action
Shaurya2k06 commentedon Jul 17, 2026
Let me know if the above PR is a good solution to the issue!
cc @cv
test(ci): assert Docker auth setup through runtime behavior
test(ci): assert Docker auth setup through runtime behavior
fix(e2e): invoke Docker Hub auth from an immutable pinned action
fix(e2e): fail closed on an unsupported live-Vitest subcommand
fix(e2e): run Docker Hub auth from an immutable pinned action (#7079)