Skip to content

test(e2e): accept digest-pinned image in concurrent gateway GC - #12926

Merged
prekshivyas merged 4 commits into
mainfrom
codex/12923-concurrent-gc-e2e
Oct 9, 2026
Merged

prekshivyas merged 4 commits into
mainfrom
codex/12923-concurrent-gc-e2e

Conversation

@rsliter

@rsliter rsliter commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Outcome

The concurrent gateway E2E accepts the gateway's actual registered image reference, including a digest-pinned reference. After garbage collection, it requires the orphan tag to be absent and the sibling gateway's Docker image ID to match its pre-GC ID. The later gateway uninstall checks remain in place.

Reason

The live target rejected a valid ghcr.io/...@sha256: reference through an obsolete tag-prefix assertion. Run 37930842377 showed that GC removed the orphan tag and Docker retained the sibling image before the test failed.

Related issues

Fixes #12923.

Changes

  • Remove the image-reference prefix assertion. Require a successful Docker query that shows the exact orphan tag is absent.
  • Inspect the sibling gateway's registered image before and after GC and require the same nonempty Docker image ID, whether its reference is a tag or digest.
  • Change the existing deterministic GC action test to verify that deletion selects only the orphan tag, and map the live target to that test in the E2E parity manifest.

Verification

  • npm run validate:pr: passed on commit 52a2f498d2582332a63fe30c10353f4b894ba1d2.
  • CI run 37978442181: passed on the same commit.
  • PR Review Advisor run 37980546713: all nine specialists clear; blocker gate passed.
  • Manual PR E2E targets=concurrent-gateway-ports: run 37978514583, passed on the same commit.
  • Advisor-recommended jobs=concurrent-gateway-ports: run 37981231315, passed on the same commit. Both trusted dispatch and result receipts were verified. Exact-commit evidence comment.
  • The diff contains no secrets, API keys, or credentials.

Review notes

All Advisor-recommended E2Es passed for the latest commit and PR base e63abc051fc634399a716c15e770d3009cd0a91c. Reverify the recommendations and rerun the applicable E2Es if the PR head or base changes before merge.


Signed-off-by: Rebecca Sliter [email protected]

Summary by CodeRabbit

  • Tests
    • Expanded cleanup coverage to verify that orphaned Docker image tags are removed during garbage collection.
    • Added checks that cleanup preserves the image used by another registered gateway, including when gateway ports are used concurrently.
    • Included maintenance cleanup tests in the fast-test set. These checks provide broader validation of image cleanup behavior and help catch cases where removing an orphan could affect an active gateway.

@rsliter rsliter self-assigned this Oct 9, 2026
@copy-pr-bot

copy-pr-bot Bot commented Oct 9, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: NVIDIA/NemoClaw/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: e4ea9924-5e7c-4205-8f96-86f7786ce7c6

📥 Commits

Reviewing files that changed from the base of the PR and between e63abc0 and 52a2f49.


📒 Files selected for processing (3)
  • src/lib/actions/maintenance.test.ts
  • test/e2e/live/concurrent-gateway-ports.test.ts
  • test/e2e/mock-parity.json

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 8 remain after this review.



📝 Walkthrough

Walkthrough

The maintenance unit test and concurrent-gateway live E2E test now verify orphan-tag removal. The live test also verifies that garbage collection preserves the registered sibling image, including when its reference is digest-pinned.

Changes

Gateway garbage collection tests

Layer / File(s) Summary
Unit test for orphan-image removal
src/lib/actions/maintenance.test.ts
The test mocks gateway state roots and runs garbage collection with confirmation enabled. It checks that Docker receives the orphan tag for removal.
Live test for sibling-image preservation
test/e2e/live/concurrent-gateway-ports.test.ts, test/e2e/mock-parity.json
The live test compares the registered sibling image ID before and after garbage collection and checks that the orphan tag is absent. The fast-test list now includes the maintenance test.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other · Severity of issue fixed: Low

Suggested reviewers: cjagwani, ericksoa


Merge Risk: ⚪ Minimal · up to 52a2f

This PR updates the garbage-collection tests to check orphan-tag removal and sibling-image preservation. No concrete merge-blocking risk is established, so it appears safe to merge subject to normal checks.

Pre-merge checks | Passed 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: updating the concurrent gateway garbage-collection test to accept digest-pinned images.
Linked Issues check Passed Issue #12923 requires the concurrent gateway E2E to accept tag or digest image references, verify orphan-tag removal, verify the registered sibling image remains available, and retain later uninstall …
Out of Scope Changes check Passed The changed maintenance test verifies that GC removes only the orphan tag and preserves the registered image. The parity manifest maps the live target to that deterministic test. These changes support…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2…


✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR

🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR


  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@github-code-quality

github-code-quality Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall line coverage in commit 52a2f49 in the codex/12923-concurre... branch is 97%. The line coverage in commit 63002cd in the main branch is 96%.

Show a line coverage summary of the most impacted files.
File main 63002cd codex/12923-concurre... 52a2f49 +/-
nemoclaw/src/onboard/config.ts 98% 96% -2%
nemoclaw/src/index.ts 94% 93% -1%
nemoclaw/src/bl...print/runner.ts 95% 95% 0%
nemoclaw/src/bl...ime-identity.ts 97% 97% 0%
nemoclaw/src/bl...t-management.ts 100% 100% 0%
nemoclaw/src/co.../config-show.ts 100% 100% 0%
nemoclaw/src/commands/slash.ts 100% 100% 0%
nemoclaw/src/on...native-route.ts 0% 100% +100%

TypeScript / code-coverage/cli

The overall line coverage in commit 52a2f49 in the codex/12923-concurre... branch is 86%. The line coverage in commit 63002cd in the main branch is 84%.

Show a line coverage summary of the most impacted files.
File main 63002cd codex/12923-concurre... 52a2f49 +/-
src/lib/onboard.ts 62% 46% -16%
src/lib/onboard...rchestration.ts 41% 32% -9%
src/lib/state/sandbox.ts 92% 84% -8%
src/lib/actions...ess-recovery.ts 65% 78% +13%
src/lib/inferen...file/cleanup.ts 73% 88% +15%
src/lib/state/l...diness-lease.ts 66% 82% +16%
src/lib/inferen...ollama/proxy.ts 41% 61% +20%
src/lib/onboard.../application.ts 55% 84% +29%
src/lib/inferen...nvidia/index.ts 0% 85% +85%
src/lib/onboard...ternal-image.ts 0% 91% +91%

Updated October 09, 2026 19:28 UTC

@rsliter

rsliter commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator Author

E2E evidence for e897df1 (base e63abc0):

Both trusted dispatch receipts identify this PR head and base; both result receipts report pass. The Advisor recommended no other existing E2E selector.

Advisor blocker disposition for this commit:

  • The two reduction findings recommend treating a failed docker image inspect as proof that the orphan tag is absent. That also passes when Docker cannot answer the query. The new docker image ls probe requires a successful query and no exact orphan tag, as the accepted plan requires.
  • The two verification findings ask the test to force a digest reference and add a synthetic digest case to the fast GC test. The first passing run recorded gateway B's actual ghcr.io/...@sha256: registry reference, successfully inspected that image after GC, and confirmed the orphan tag was absent. The E2E intentionally accepts the reference produced by onboarding, whether tag or digest. GC only enumerates local sandbox repositories, so a GHCR digest is not a deletion candidate; a mock case asserting that it was not passed to dockerRmi would not test the GC decision. The fast test asserts that only the orphan local tag is removed.

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

PR Review Advisor finished for commit 52a2f49. Include the Advisor findings in the complete PR feedback collection. Verify and group valid findings before repair.

Request review only when Require no Advisor blockers is green.

All previous runs

@rsliter

rsliter commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator Author

E2E evidence for PR head 52a2f498d2582332a63fe30c10353f4b894ba1d2 (base e63abc051fc634399a716c15e770d3009cd0a91c; trusted workflow 4dcb8697a639e46978b4c7cfded6f117c7673ab2):

Selector Result Run
targets=concurrent-gateway-ports Pass 37978514583
jobs=concurrent-gateway-ports (Advisor recommendation, including optional selections) Pass 37981231315

Both trusted dispatch receipts bind the candidate SHA and base SHA above. Both result receipts report status: pass and a successful catalogue-standard job. The latest-head PR Review Advisor run is green with no blocking findings.

@rsliter
rsliter marked this pull request as ready for review October 9, 2026 19:46
@prekshivyas
prekshivyas merged commit a316754 into main Oct 9, 2026
@prekshivyas
prekshivyas deleted the codex/12923-concurrent-gc-e2e branch October 9, 2026 20:45
@wscurran wscurran added area: e2e End-to-end tests, nightly failures, or validation infrastructure chore Build, CI, dependency, or tooling maintenance labels Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: e2e End-to-end tests, nightly failures, or validation infrastructure chore Build, CI, dependency, or tooling maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Concurrent gateway E2E rejects digest-pinned sibling image after successful GC

3 participants