Skip to content

Consolidate repeated live E2E invocation and Docker-auth setup into pinned helper actions #6961

Closed

Description

@cv

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-live project, 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 expect installs. 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 sudo setup 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.

Activity

  1. added
    area: ci
    on Jul 15, 2026
  2. added theissue type on Jul 15, 2026
  3. added
    area: e2e
    area: architecture
    help wanted
    on Jul 15, 2026
  4. self-assigned this
    on Jul 16, 2026
  5. removed their assignment
    on Jul 17, 2026
  6. Shaurya2k06 commented on Jul 17, 2026

    @Shaurya2k06

    Hey, is this free to be taken up? If so, I'd like to give it a shot.
    cc @cv

  7. cv commented on Jul 17, 2026

    @cv
    CollaboratorAuthor

    @Shaurya2k06 assigned it to you!

  8. Shaurya2k06 commented on Jul 17, 2026

    @Shaurya2k06

    Let me know if the above PR is a good solution to the issue!
    cc @cv

  9. added a commit that references this issue on Jul 18, 2026
    c28b04e
  10. self-assigned this
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area: architecturearea: ciarea: e2ehelp wanted

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions