Skip to content

Make E2E support contracts data-driven and colocated #8288

Closed as not planned
Closed as not planned

Description

@jyaunches

Objective

Reduce repeated E2E governance and server mechanics while keeping security-specific contracts explicit.

Sequential PRs

  1. Replace the central mock-parity ledger with colocated defaults and explicit exceptions.
  2. Table-drive straightforward job validators in tools/e2e/workflow-boundary.mts.
  3. Share fake HTTP and WebSocket server mechanics across messaging and inference fixtures.

Expected combined net reduction: 1,480–2,050 LOC.

Acceptance criteria

  • Live tests retain an explicit fast-test decision when no default applies.
  • Negative workflow tests continue to prove forbidden permissions, secrets, and ordering.
  • Lane-specific security validators remain explicit.
  • Shared server code owns transport mechanics only.
  • Protocol payload and state behavior remain in protocol-specific files.
  • Each PR has a negative net LOC delta.

Validation

Run the E2E-support project, workflow contract tests, mock-parity replacement tests, and repository checks.

Decision

Maintainers must approve the replacement mock-parity contract before deleting the ledger.

Activity

  1. added
    area: architecture
    area: ci
    area: e2e
    on Aug 10, 2026
  2. added theissue type on Aug 10, 2026
  3. cv commented on Aug 12, 2026

    @cv
    Collaborator

    Please change Workstream 2 before implementation. Table-driving the workflow validators makes the busywork more compact but preserves the wrong abstraction.

    At main commit 5313eeef:

    • tools/e2e/*workflow-boundary* contains 12,997 lines.
    • The matching workflow-boundary and central workflow tests contain 11,851 lines.
    • The 24,848-line validation tower protects a 7,657-line workflow with 79 jobs.

    The planner parses that workflow to discover its job inventory. Tests then mutate the same YAML and prove that the parser rejects changes to exact names, strings, timeouts, ordering, and setup calls. The release evidence helper parses the workflow and planner again to reconstruct what GitHub should have run. That is a closed loop, not a product contract.

    Replace Workstream 2 with: delete workflow validators as jobs move to reusable execution profiles.

    • Establish a small fixed set of reusable workflows for standard Ubuntu, larger CPU, GPU, macOS, WSL, and protected remote execution.
    • Move related jobs into profile matrices one group at a time.
    • In the same commit, delete the bespoke job YAML, its validator clauses, and its YAML-mutation tests.
    • Keep one small repository policy check for pinned actions, minimal permissions, trusted secret boundaries, and safe artifact ownership.
    • Test reusable helper scripts and product evidence directly. Do not test that a large YAML document contains the strings expected by a repository-local YAML parser.

    Coordinate the execution-profile catalogue with #7912's changed/full matrix. Workstreams 1 and 3 can remain independent, but the current 1,480–2,050-line total target is too conservative if Workstream 2 retains the validator tower instead of dismantling it.

  4. cv commented on Sep 10, 2026

    @cv
    Collaborator

    Superseded by #11407: Unify executable E2E inventory and retire redundant test infrastructure.

    The replacement carries forward the maintainer correction to delete redundant workflow validators with superseded execution paths. It also owns the mock-parity replacement and consolidation of proven HTTP/WebSocket transport duplication.

    Closing this issue because remaining delivery is tracked in #11407. This closure does not mean the cleanup has been implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: architecturearea: ciarea: e2e

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions