Skip to content

ci(e2e): establish trusted Jetson execution through Colossus-backed dispatch #8142

Closed

Description

@jyaunches

Problem Statement

NemoClaw has Jetson-specific end-to-end coverage, but GitHub does not currently provide a supported Jetson runner. The explicit Jetson target can therefore validate workflow behavior without providing the hardware execution needed by changes such as #8099.

#6430 made runner unavailability bounded and actionable. It intentionally did not establish owned Jetson capacity.

Desired Outcome

Establish a trusted CI path that lets a GitHub Actions workflow dispatch NemoClaw E2E jobs to team-owned Jetson hardware through Colossus or an equivalent controlled execution service, then return the exact result, logs, and artifacts to the originating workflow.

Colossus support is a feasibility question, not an assumed dependency. The team has also requested AGX Thor T4000 and T5000 systems through MRS, which may provide the initial hardware pool if Colossus cannot supply Jetson capacity directly.

Design Questions

  • Can Colossus provision or securely reach the required Jetson AGX Thor/Orin hardware?
  • Should GitHub Actions dispatch to a Colossus job, a gateway in front of the MRS-provided systems, or a tightly controlled self-hosted runner?
  • How are hardware reservation, health checking, clean-state restoration, concurrency, timeout, retry, and cleanup enforced?
  • How are credentials and the runner host protected from fork pull requests and other untrusted changes?
  • Which Jetson variants and JetPack versions form the required validation matrix?

Acceptance Criteria

  • Record an owned design decision for Colossus-backed execution or the selected alternative.
  • Restrict hardware execution to an allowlisted trusted workflow and document the trust boundary for pull-request code.
  • Dispatch the existing Jetson E2E target to a real Jetson system from GitHub Actions.
  • Return a bounded pass/fail result, logs, and artifacts to the originating workflow.
  • Restore a known clean state after success, failure, cancellation, and timeout.
  • Report unavailable capacity without indefinitely blocking workflow aggregation, preserving ci(e2e): prevent an unavailable Jetson runner from blocking workflow finalization #6430.
  • Run the relevant Jetson E2E coverage for an exact fix(onboard): permit Jetson GPU policy paths #8099 commit and record the tested hardware and JetPack version.

Related Work

Source Discussion

Checklist

  • I searched existing issues and this is not a duplicate
  • I described the problem, decision boundary, and desired outcome

Activity

  1. added theissue type on Aug 3, 2026
  2. added
    area: ci
    area: e2e
    platform: jetson
    needs: design
    on Aug 3, 2026
  3. self-assigned this
    on Aug 3, 2026
  4. removed
    needs: design
    on Aug 10, 2026
  5. self-assigned this
    on Aug 10, 2026
  6. sandl99 commented on Aug 10, 2026

    @sandl99
    Collaborator

    Temporary implementation plan:

    1. Run cloudflared on the Colossus host and expose one authenticated HTTPS dispatch endpoint.
    2. Add a trusted GitHub Actions controller that sends the exact NemoClaw commit and fixed jetson-nvmap-gpu target to that endpoint.
    3. Have the Colossus dispatcher validate the request, acquire an exclusive device lock, and connect to the Jetson over SSH.
    4. Run the existing Jetson E2E test and return its result, logs, hardware identity, and JetPack version to GitHub Actions.
    5. Apply a bounded timeout and reset the Jetson after success, failure, cancellation, or timeout.

    I will own the implementation. Colossus retains the tunnel and SSH credentials, and candidate code runs only on the Jetson.

  7. sandl99 commented on Aug 10, 2026

    @sandl99
    Collaborator

    Design update: scoped cleanup for the Colossus Jetson path

    This decision supersedes the earlier requirement to reset or restore the Jetson after every result.

    Architecture

    A trusted GitHub-hosted controller sends the exact candidate commit and fixed jetson-nvmap-gpu target through an authenticated Cloudflare Tunnel endpoint. The Colossus dispatcher validates the GitHub OIDC identity, acquires an exclusive device lock, and connects to the fixed Jetson over SSH. Candidate code runs only on the Jetson. The worker creates an isolated job environment, and the existing NemoClaw onboarding path installs its compatible OpenShell version inside that workspace; the dispatcher and worker do not install OpenShell directly. Colossus retains the tunnel credential, SSH private key, pinned Jetson host key, private job state, and cleanup capability.

    Job lifecycle

    For every success, failure, timeout, cancellation, or stale-lock recovery, the dispatcher:

    1. collects bounded logs and artifacts when available;
    2. runs a fixed, no-argument cleanup executable;
    3. verifies that job-owned NemoClaw and OpenShell resources are absent;
    4. verifies that the protected Jetson baseline remains available; and
    5. releases the device lock only after cleanup verification succeeds.

    A cleanup failure produces cleanup-failed and retains the device lock for operator recovery.

    Cleanup allowlist

    Cleanup may remove only:

    • the e2e-jetson-nvmap NemoClaw and OpenShell sandbox;
    • the nemoclaw OpenShell gateway and its job-owned forwards;
    • NemoClaw/OpenShell helper processes owned by the job, including the NemoClaw ollama-auth-proxy;
    • Docker containers, volumes, and reserved images owned by that sandbox or gateway;
    • the candidate checkout and artifacts under the fixed /var/tmp/nemoclaw-jetson-e2e/<job-id> workspace; and
    • the job-installed NemoClaw and OpenShell binaries and their job-created state;

    Cleanup uses exact resource names, recorded process IDs, or verified ownership labels. It must not use broad process matching, container deletion, or filesystem paths derived from the request.

    Protected baseline

    OpenShell is not a prepared dependency. It must be absent before the job, installed only by NemoClaw onboarding inside the workspace, and absent again after cleanup.

    Cleanup must preserve:

    • Node.js and npm;
    • the Ollama binary, service, configuration, models, and unrelated processes;
    • Docker and the NVIDIA container runtime;
    • JetPack, Jetson Linux, CUDA, NVIDIA packages, and other system packages;
    • /dev/nvmap and its permissions;
    • SDK Manager and flashing assets;
    • SSH accounts, keys, and host identity; and
    • unrelated user files, processes, containers, volumes, sandboxes, gateways, and forwards.

    In particular, cleanup must not use a generic pkill -f "ollama serve".

    Restoration decision and limitation

    This temporary path does not reflash, reboot, power-cycle, roll back, or otherwise restore the complete Jetson image after each job. For this lane, "clean state" means verified removal of the allowlisted NemoClaw/OpenShell job resources while preserving the prepared device dependencies.

    Candidate code has Docker access on the dedicated non-production Jetson. Scoped cleanup therefore cannot attest that every possible host modification was reversed. This is an explicit limitation of the temporary cleanup-only design. A future requirement for stronger host-integrity guarantees should use an independently attested image restore or ephemeral device allocation rather than expanding this cleanup script.

  8. sandl99 commented on Aug 12, 2026

    @sandl99
    Collaborator

    Design update: operator-owned Colossus backend

    This decision changes the ownership and release origin of the accepted Jetson dispatch design. It does not weaken the trust, cleanup, or hardware contracts in the previous design update.

    Ownership

    The operational backend moves to https://gitlab-master.nvidia.com/sdang/nemoclaw-colossus-jetson-tunnel. That project owns the dispatch HTTP service, GitHub OIDC validation, request lifecycle, single-device queue and lock, SSH worker, candidate execution, cleanup, systemd deployment, Cloudflare Tunnel helper, backend tests, and Colossus operator documentation.

    NVIDIA/NemoClaw retains the trusted GitHub Actions controller, tools/e2e/jetson-dispatch-client.mts, its minimum client-side parser and validation, test/e2e/live/jetson-nvmap-gpu.test.ts, dispatch receipts, artifact upload, JETSON_DISPATCH_URL, and client-side tests for OIDC and wire validation.

    The repositories share a versioned HTTP contract and static compatibility test vectors. NemoClaw must not depend on a GitLab package at build time. The backend continues to clone exact candidate commits from https://github.com/NVIDIA/NemoClaw.git.

    Required cleanup correction

    The first backend release must correct the cleanup failure from workflow run 31562760875, job 94008652808, backend job e0aad99664e87d3c071e28510239d7e65afffe4fe9e19741176f43df77c3d5c9.

    Unrecorded process discovery and final verification must inspect the command before the environment. They must ignore commands outside the fixed cleanup helper allowlist. A matching helper must have a readable environment and the exact job HOME. Recorded PID validation remains fail-closed. A process that exits during inspection is absent. Diagnostic errors must identify the PID and failed field.

    Rollout and removal gate

    The retained device.lock must be recovered through the reviewed cleanup procedure. An operator must not delete it manually. The backend cutover requires this evidence:

    1. the cleanup receipt exists;
    2. device.lock is absent;
    3. the dispatcher is active;
    4. anonymous and fake-token requests return HTTP 401;
    5. the temporary Cloudflare Tunnel is active and JETSON_DISPATCH_URL selects it;
    6. a GitHub jetson-nvmap-gpu proof job returns bounded results and artifacts; and
    7. the GitHub result reports cleanup: succeeded.

    Only after this evidence exists may a follow-up NemoClaw PR remove backend-owned source, tests, deployment files, and the Colossus operator runbook. NemoClaw documentation must describe the backend as operator-owned infrastructure and must document only the HTTP contract and GitHub configuration that NemoClaw owns.

    The fixed target, exact candidate SHA, repository ID 1182547092, queue concurrency of one, loopback binding on 127.0.0.1:8787, cleanup allowlist, prepared Jetson dependencies, and job-installed OpenShell lifecycle remain unchanged. The nvmap group mismatch is outside this migration.

  9. added a commit that references this issue on Aug 12, 2026
    ac6adac
  10. senthilr-nv commented on Aug 13, 2026

    @senthilr-nv
    Collaborator

    Main E2E is repeatedly blocked at the operator-owned Jetson receiver authentication boundary:

    • run 31682352371, attempt 3, SHA 7aba3cc17051ae3d0ac4ddc85e5ea23b0a75395f, job 94405588686
    • run 31689720768, attempt 1, SHA 2233f7833ab8d42e0c0f1dd6796a17c4745dfdc9, job 94414392191
    • run 31692106535, attempt 1, SHA 14c6d777a1333693ab1749ec926f87d58d0e25c5, job 94429225010

    Each controller job obtains its GitHub OIDC token, sends the fixed v1 request to the configured JETSON_DISPATCH_URL, and receives HTTP 401: request authentication failed before a dispatch job is accepted. The newest failure completed at 2026-08-13 11:13:44 UTC.

    The retained client and immutable v1 vectors have not changed across these SHAs. Because #8871 assigns receiver deployment and operation to the external service, I am routing this as an operator blocker rather than claiming a NemoClaw source change. Please check the configured origin and the receiver's GitHub OIDC issuer, audience nemoclaw-jetson-dispatch, repository, ref, and workflow claim policy.

  11. added
    area: security
    and removed on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: ciarea: e2earea: securityplatform: jetson

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions