Skip to content

ci: split E2E feedback-loop work into focused PRs #7451

Closed

Description

@cv

Summary

PR #7262 combined independent CI and E2E changes. This epic tracks their reconstruction as focused PRs from fresh origin/main.

This work changes internal CI and E2E infrastructure. It does not create a supported integration, solution recipe, or product surface.

Source state

Focused work

Platform test prerequisites

Platform sharding

Hermes image production and reuse

Main workflow scheduling

Brev provisioning

Direct PR E2E required check

  • Publish E2E / PR Gate directly as the exact-diff required check.
    • Landed in ci(e2e): publish direct PR gate check #7935 as df80015e7fbb54e5c026bf4dae43896e00167e89.
    • The polling required job and tools/e2e/pr-e2e-required.mts with its tests were removed.
    • The trusted controller owns the required-check lifecycle.
    • Exact PR SHA, base SHA, GitHub App, retry-history, and final-state validation remain fail closed.
    • Maintainer inspection falls back to E2E / PR Gate Coordination only when the current direct check is absent.
    • Gate inspection, risk planning, watch triggers, tests, and direct-check documentation landed together.
    • Sensitive-path security review, documentation-writer receipt, required CI, and the direct exact-diff gate passed on final head 848d79aba6afa47631c128eff2b294a34c0aec20.

Independent follow-ups

  • Add explicit timeouts to the E2E matrix, PR report, and scorecard jobs.
  • Disposition the old protected-environment documentation item.
    • Superseded by ci(e2e): let maintainers authorize internal runs #7826 and ci(e2e): unify maintainer approval #7832.
    • The current route is one trusted approve-e2e operation for selected fork work, authorized by a current repository maintain or admin actor and bound to the exact PR, head SHA, base SHA, risk plan, pending check, and live state.
    • Internal selected plans dispatch automatically after eligible PR CI.
    • No protected-environment configuration or protected-environment documentation is required.

Repository configuration disposition

The former approve-credentialed-e2e-for-internal-pr protected-environment blocker is no longer part of the supported authorization path. #7826 and #7832 removed that queue and its environment-review dependency. Do not add new implementation or canonical documentation for the obsolete environment route.

Completion evidence

  • ci(e2e): publish direct PR gate check #7935 merged on 2026-08-04.
  • Final required CI, both review-advisor lanes, CodeRabbit, coordination, and the controller-owned E2E / PR Gate passed for exact head 848d79aba6afa47631c128eff2b294a34c0aec20 and base 7b4c42d8694ab3d8819685774d222befe45be057.
  • Current main contains no polling/mirroring required job.
  • .github/workflows/pr-e2e-required.yaml and tools/e2e/pr-e2e-required.mts no longer exist on main.
  • The epic is complete and closed.

Activity

  1. self-assigned this
    on Jul 23, 2026
  2. jyaunches commented on Jul 24, 2026

    @jyaunches
    Contributor

    Maintainer direction: waive the Brev provisioning workstream in this issue. #7490 now owns migrating product-relevant legacy Brev coverage to exact-staging Launchable E2E, keeping platform-neutral checks in unified E2E, and retiring source-install-only tests. Do not add tools/e2e/brev-provisioning.mts or retry generic CPU/GPU provisioning for e2e-branch-validation. This comment records the explicit waiver required by this issue; the remaining independent workstreams are unchanged.

  3. cjagwani commented on Jul 26, 2026

    @cjagwani
    Collaborator

    Split audit status

    The issue remains valid, and the original #7262 mega-diff has been reconstructed as focused, non-conflicting PRs against current main 4fdbb79060c9cbe923779626de37717965261a78.

    Merged focused slices:

    Open focused slices:

    The sizes remain reviewable: the open PRs are one workflow contract, one two-file validator follow-up, one two-file trust anchor, and one installer-plus-focused-test runtime fix. All are currently mergeable against main and labeled v0.0.96.

    This will materially help: #7549 proved the four-shard wiring executes, reducing serial platform feedback while preserving every shard and fail-fast: false; #7508 removes repeated Hermes production builds; #7552 takes sandbox validation off the end of the main critical path without weakening the final gate. The exact-head run also exposed real macOS/Homebrew and WSL issues rather than masking them. The WSL failures already have fixes on current main, so no duplicate PRs were opened.

    Explicitly not opened yet:

    No merge action was taken.

  4. cjagwani commented on Jul 26, 2026

    @cjagwani
    Collaborator

    Progress update: #7552 merged via 53c1a21222293b2c4a21d4447324839b0ab2adce, completing the main-workflow scheduling slice. The remaining focused PRs #7553, #7558, and #7555 are still mergeable against current main and carry v0.0.96; #7558 remains the prerequisite for #7555. The protected E2E environment is still unconfigured (protection_rules: []), so no authorization-doc or direct-required-check work has started. No merge action was taken by cjagwani.

  5. 9 remaining items

  6. added
    area: ci
    area: e2e
    on Jul 28, 2026
  7. added theissue type on Jul 28, 2026
  8. cjagwani commented on Jul 30, 2026

    @cjagwani
    Collaborator

    v0.0.97 release E2E and observability retrospective

    This is the authoritative mapping from the v0.0.97 release session. The initial release run had seven failed jobs representing four root-cause groups (not five independent product failures).

    Release outcome

    Initial failures and disposition

    Initial evidence: run 30412031295 at revision eeab81cc5542902538c97db63c132c0fdbd4341c completed 75 jobs successfully and failed seven:

    1. Docker post-reboot recovery and gateway-guard-recovery: the restored/recreated sandbox never re-established a healthy managed gateway and host forward. Fixed in fix(release): resolve recovery, Hermes, and inference E2E blockers #7778 with readiness, recovery, refreshed preflight, and fail-closed verification.
    2. Hermes compatible-Anthropic switch and OpenClaw compatible-Anthropic switch: the fixture pre-created the same provider with a conflicting binding, so production inference set correctly refused a mutation it could not roll back. Fixed in fix(release): resolve recovery, Hermes, and inference E2E blockers #7778 by letting the production command own provider creation, verification, and rollback.
    3. mcp-bridge (Hermes) and channels-stop-start (Hermes): replacement gateway status/PID/lock metadata was written where the sandbox runtime could not reliably update it. Fixed in fix(release): resolve recovery, Hermes, and inference E2E blockers #7778 by moving mutable Hermes gateway metadata under .hermes/runtime.
    4. snapshot-commands: restore completed, but clone pairing authorization could not be verified. Snapshot experiments were deliberately removed from fix(release): resolve recovery, Hermes, and inference E2E blockers #7778 before merge so no snapshot/pairing production change shipped in v0.0.97. The remaining work is tracked by #7818, with focused fix #7834.

    The repeated snapshot evidence was run 30421460316/job 90479532881: a bounded retry ran, but the same device-list operation failed twice. A later run also exposed the collapsed state scope-upgrade-pending; approval=list-command-failed. The maintainer waiver treated this as a known recurring flake for .97, not as a passing test.

    A later full-e2e failure was functional success followed by a cold-onboard duration of 240,480 ms against a 228,000 ms budget. That false-red/performance-observability problem is already tracked by #6660, with latency subduration work in #7597.

    Jetson and the exact staging Launchable were excluded by explicit maintainer direction for this release; they were not reported as passing evidence.

    Observability and workflow gaps

    Gap observed during .97 Why it caused delay/confusion Tracking and resolution
    Snapshot list-command-failed collapsed timeout, nonzero exit, empty output, invalid JSON, and missing pending collections Retrying the umbrella symptom could not identify or fix the failed operation #7818 / #7834 add sanitized distinctions and local pending-request recovery while remaining fail closed
    Full E2E mixed functional correctness with a single fixed latency budget A successful install/onboard/turn appeared as a product failure #6660 / #7597
    The protected-environment route made an admin approval appear necessary and caused a maintainer fallback to queue behind the waiting controller Operators could not tell authorization policy from controller concurrency Landed in #7826 and #7832: one approve-e2e route, current maintain/admin authorization, no protected-environment queue
    An approval launched before the exact pending coordination title received only PR gate must have the matching pending E2E authorization state The message did not distinguish “CI still preparing” from wrong route, already running, terminal, or malformed state #7861 / #7863 now provide bounded, sanitized, state-specific next actions without weakening the authorization predicate. All CI and selected live E2E are green.
    Multiple controller runs used generic names It was difficult to associate queued/cancelled controllers with the exact PR/head/base revision #7860 / #7862 add exact-revision controller identity for automatic and manual routes. All CI and selected live E2E are green.
    Snapshot experiments accumulated inside the already-large release fix PR Review scope and the release-critical path became harder to reason about #7778 was re-scoped in final commit 45d83ed7610d57e1d4695450f840e75ff9bc9254; this umbrella #7451 remains the right tracker for keeping E2E feedback work in focused PRs

    Process lessons made concrete

    • Count root causes, not red job tiles: seven red jobs reduced to four repair decisions.
    • Preserve exact revision identity at every controller boundary.
    • Do not launch approval until the coordination check publishes the exact pending title; diagnostics must say which safe state the operator actually encountered.
    • A retry is evidence only when its underlying operation and failure class are visible.
    • A maintainer waiver must name the skipped check, evidence, owner/tracker, and release scope; it must never be presented as a pass.
    • Separate release-critical product fixes from experimental stabilization work before merge.

    No additional duplicate issues were opened: existing #7818, #6660, and #7451 cover their respective gaps; only the two previously untracked controller-observability gaps became #7860 and #7861.

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

Metadata

Metadata

Labels

area: ciarea: e2e

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions