NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

Move Brev branch-validation lifecycle logic into trusted tools/e2e helpers

Open cv opened this issue 4 months ago • 3 comments

Parent: #6952

Problem

.github/workflows/e2e-branch-validation.yaml embeds Brev CLI installation/authentication, failure-bundle collection, retrying instance deletion, and a 54-line write-capable PR/check reporter. tools/e2e/brev-remote-vitest.mts already owns part of this workflow domain.

Target-branch code is intentionally tested with Brev and inference credentials, but cleanup and publication must not become target-controlled.

Work

  • Extend trusted tools/e2e Brev tooling for pinned CLI installation, debug collection, idempotent deletion, and result rendering/publication.
  • Load cleanup and publisher helpers only from the trusted workflow revision, not the tested branch checkout.
  • Keep secrets, instance identity, keep_alive, job permissions, and always-run ordering in YAML.

Acceptance criteria

  • CLI checksum verification, API-key/organization login, legacy refresh-token fallback, onboarding suppression, and readiness check remain equivalent.
  • Debug collection remains best-effort and happens before deletion.
  • Deletion retries, refreshes, validates brev ls --json, detects already-absent instances, and fails visibly after the final attempt.
  • Publication rejects invalid PR numbers and stale tested SHAs before creating a check or comment.
  • The reporter job receives no Brev/inference secret and checks out no target code.
  • keep_alive guidance and instance naming remain unchanged.
  • Direct tests cover install/auth branches, list JSON variants, deletion outcomes, result mapping, and stale-head rejection.

Coordinate with #6145 before implementation.

cv avatar Jul 15 '26 17:07 cv

yes, I am on it @cv

souvikDevloper avatar Jul 16 '26 00:07 souvikDevloper

Thanks for raising this. We are changing direction now that the exact-staging Brev Launchable E2E capability exists. The generic Brev branch-validation lane installs or overlays NemoClaw source on an arbitrary Brev machine, which is not the product boundary we want to keep qualifying. #7490 will migrate product-relevant coverage to Launchable E2E, keep platform-neutral behavior in unified E2E, and retire install-only checks. Because this issue proposes hardening a lane we plan to remove, I am closing it as not planned. PR #6983 has been closed for the same reason.

jyaunches avatar Jul 24 '26 17:07 jyaunches

#7632 implements the accepted #7490 retirement decision. The legacy Brev runner lifecycle introduced for this scope is removed instead of receiving further maintenance; dashboard remote-bind coverage moves to unified E2E with its own install and terminal-cleanup lifecycle.

jyaunches avatar Jul 27 '26 12:07 jyaunches