Skip to content

test(e2e): retain portable registry readiness evidence - #13352

Merged
rsliter merged 5 commits into
mainfrom
codex/portable-registry-readiness
Oct 19, 2026
Merged

rsliter merged 5 commits into
mainfrom
codex/portable-registry-readiness

Conversation

@rsliter

@rsliter rsliter commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

Outcome

Portable Hermes finalization now retains bounded managed-registry readiness evidence and failure diagnostics before cleanup. The live scenario still requires an unauthenticated HTTP 200 from the local registry before build and publication continue.

Reason

The canonical-main finalization run for the prior correction stopped when the managed registry never became reachable, but cleanup removed the container and port-forwarding state needed to classify the failure. This change makes a recurrence diagnosable without broadening the accepted readiness contract or retrying mutation.

Changes

  • Replace the ad hoc registry polling loop with the repository retry-evidence helper. The Portable Hermes live scenario is the sole consumer, and only connection refusal, reset, and timeout are retryable within the existing bounded startup window.
  • Retain the attempt receipt on every run. On failure, retain only bounded container state, published port mapping, and the last 50 registry log lines before cleanup; a direct readiness assertion remains in the live scenario.
  • Add focused E2E-support coverage for first-attempt success, allowed transient retries, deterministic HTTP and transport failures, and exhausted timeout evidence.

Verification

  • vitest run --project e2e-support test/e2e/support/portable-registry-readiness.test.ts — 5 tests passed
  • vitest run --project integration test/automation/pull-requests/growth-guardrails.test.ts — 7 tests passed
  • npm run test:projects:check — exact membership passed for 2,795 files across 7 projects
  • npm run e2e:assertions:check — live E2E assertion ratchet passed
  • npm run test:e2e-phases:check — semantic phase coverage passed for 104 tests across 78 files
  • npm run typecheck:cli — passed
  • npm run checks:repository — all 18 repository checks passed
  • Commit hooks — formatting, lint, secret scanning, semantic phases, source shape, growth guardrails, and commit message checks passed
  • Diff inspection confirmed no secrets, API keys, or credentials

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

Summary by CodeRabbit

  • Bug Fixes
    • Portable profile checks now handle temporary registry connection issues with bounded retries and clearer failure reporting. When readiness checks fail, available diagnostic information is retained without hiding the failure.
  • Documentation
    • Clarified how registry readiness checks behave and what diagnostic information may be collected when they fail.

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

copy-pr-bot Bot commented Oct 16, 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 16, 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: ce8df3b8-e2c8-4bbb-baaa-ae0222aced05
📥 Commits

Reviewing files that changed from the base of the PR and between 9edf194 and 5be608a.

📒 Files selected for processing: 7
  • .github/workflows/portable-profile-e2e.yaml
  • test/e2e/README.md
  • test/e2e/fixtures/portable-registry-readiness.ts
  • test/e2e/live/portable-profile-rootless-linux.test.ts
  • test/e2e/mock-parity.json
  • test/e2e/support/portable-profile-rootless-runtime-workflow.test.ts
  • test/e2e/support/portable-registry-readiness.test.ts

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

📝 Walkthrough

The pull request adds a bounded, read-only HTTP readiness check for the portable registry. It records retry evidence and attempts bounded container diagnostics on failure. The portable rootless Linux E2E test now uses the check, and workflow filters and tests cover the new fixture.

Changes: Portable registry readiness

Layer / File(s) Summary
Readiness observations and retry policy
test/e2e/fixtures/portable-registry-readiness.ts, test/e2e/support/portable-registry-readiness.test.ts
The fixture classifies HTTP and transport results, retries selected transient failures within configured limits, and probes the local registry endpoint. Support tests cover successful readiness, retry behavior, deterministic failures, and exhausted timeouts.
Failure diagnostics and evidence
test/e2e/fixtures/portable-registry-readiness.ts, test/e2e/support/portable-registry-readiness.test.ts
On failure, the collector writes retry and failure evidence and attempts container inspection, port lookup, and a bounded log tail. Tests check diagnostic limits, selected environment variables, evidence, and cleanup.
E2E integration and workflow coverage
test/e2e/live/portable-profile-rootless-linux.test.ts, test/e2e/mock-parity.json, test/e2e/support/portable-profile-rootless-runtime-workflow.test.ts, .github/workflows/portable-profile-e2e.yaml, test/e2e/README.md
The portable rootless Linux E2E test uses the collector and asserts that it returns no failure. Workflow filters, parity data, and path-selection tests include the fixture and support test. The README documents the readiness policy and failure diagnostics.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Other

Sequence Diagram(s)

sequenceDiagram
  participant PortableProfileE2E
  participant ReadinessCollector
  participant RetryPolicy
  participant RegistryProbe
  participant LocalRegistry
  participant ArtifactSink
  participant Podman
  PortableProfileE2E->>ReadinessCollector: Start readiness check
  ReadinessCollector->>RetryPolicy: Run bounded policy
  loop Configured attempts
    RetryPolicy->>RegistryProbe: Probe registry
    RegistryProbe->>LocalRegistry: GET /v2/
    LocalRegistry-->>RegistryProbe: HTTP response or transport result
    RegistryProbe-->>RetryPolicy: Readiness observation
  end
  RetryPolicy-->>ReadinessCollector: Final result and attempt evidence
  alt Readiness fails
    ReadinessCollector->>ArtifactSink: Write retry and failure evidence
    ReadinessCollector->>Podman: Collect container, port, and log diagnostics
    Podman-->>ReadinessCollector: Diagnostic output or command failures
  end
  ReadinessCollector-->>PortableProfileE2E: Return failure observation or undefined
Loading

Suggested reviewers: prekshivyas, senthilr-nv

Merge Risk: ⚪ Minimal · up to 5be60

The readiness check retains bounded evidence without an identified regression from this change. The reported live-test failure is not independently established as introduced by this PR.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 10.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 4 files. (3 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 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: retaining portable registry readiness evidence during E2E tests.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 10.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 4 files. (3 skipped: 3 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 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 16, 2026 •

Copy link
Copy Markdown
Contributor

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage/plugin

main 63002cd codex/portable-regis... 5be608a +/-
96% 97% +1%
View coverage of the 10 most impacted files.
File main 63002cd codex/portable-regis... 5be608a +/-
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/ru...time-context.ts 100% 100% 0%
nemoclaw/src/sh...er-boundary.cts 100% 100% 0%
nemoclaw/src/on...native-route.ts 0% 100% +100%

TypeScript / code-coverage/cli

main 63002cd codex/portable-regis... 5be608a +/-
84% 86% +2%
View coverage of the 10 most impacted files.
File main 63002cd codex/portable-regis... 5be608a +/-
src/lib/onboard.ts 62% 50% -12%
src/lib/state/l...diness-lease.ts 66% 83% +17%
src/lib/inferen...ollama/proxy.ts 41% 61% +20%
src/lib/onboard.../application.ts 55% 84% +29%
src/lib/domain/...y/dimensions.ts 0% 71% +71%
src/lib/inferen...er/lifecycle.ts 0% 72% +72%
src/lib/actions...ry/operation.ts 0% 76% +76%
src/lib/actions...try/snapshot.ts 0% 78% +78%
src/lib/inferen...ovider/index.ts 0% 88% +88%
src/lib/onboard...ternal-image.ts 0% 91% +91%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.


Updated October 16, 2026 18:40 UTC

@github-actions

Copy link
Copy Markdown
Contributor

PR Review Advisor finished for commit 5be608a. 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 18, 2026 •

Copy link
Copy Markdown
Collaborator Author

Portable Hermes live-test classification

Tested PR head: 5be608a
Selector: portable-hermes-finalization

  • Exact-head run 38951030892 failed during managed-registry readiness. Its retained diagnostics showed connection-refused probes and a registry-container Go runtime failure to create an OS thread. Trusted receipt, exact-head provenance, retained evidence, and cleanup were verified.
  • First exact-base run 38954666269 was inconclusive because the Hermes source archive download exhausted bounded HTTP 429 attempts before the relevant behavior.
  • Authorized replacement exact-base run 39163604619 tested base 9edf194 and reproduced the same managed-registry readiness phase failure. Its receipt and exact-base binding were verified. Artifact upload, registered-resource release, Docker restoration, cleanup-fixture removal, and Docker-auth cleanup passed.

Classification: the observable live-test failure is inherited from the exact base and was not introduced by this PR. Per maintainer direction, it is not a blocker for review readiness.

Exception boundary: this classification applies only to review readiness for head 5be608a. It does not waive ordinary required checks, automated review, eligible independent human approval, merge protections, or the required post-merge canonical-main Portable Hermes verification.

@rsliter
rsliter marked this pull request as ready for review October 18, 2026 21:50
@rsliter
rsliter requested a review from sandl99 October 19, 2026 02:17

@sandl99 sandl99 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with one non-blocking suggestion about the E2E registry startup window. The HTTP 200 readiness requirement remains intact.

Reviewed commit: 5be608af2c429169e67341c3a774fe9310a96cc5. Both focused E2E support files passed locally: 10 tests.

The retained candidate GPU run and base GPU run both failed at registry readiness. Post-merge canonical-main Portable Hermes verification remains required.

};

export const PORTABLE_REGISTRY_READINESS_MAX_ATTEMPTS = 10;
export const PORTABLE_REGISTRY_READINESS_DELAY_MS = 1_000;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking suggestion: preserve the previous registry startup window. With immediate connection refusals, ten attempts spaced one second apart stop after about 9 seconds; the previous loop allowed about 15 seconds. A deterministic comparison with readiness at 12 seconds passes the actual base function and fails this policy. Consider spacing the ten attempts to preserve the prior window and adding delayed-readiness coverage. This affects E2E tolerance for slow startup and is not a critical production issue.

@rsliter
rsliter merged commit b01bb7f into main Oct 19, 2026
@rsliter
rsliter deleted the codex/portable-registry-readiness branch October 19, 2026 12:57
@wscurran wscurran added area: e2e End-to-end tests, nightly failures, or validation infrastructure chore Build, CI, dependency, or tooling maintenance integration: hermes Hermes integration behavior platform: container Affects Docker, containerd, Podman, or images labels Oct 23, 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 integration: hermes Hermes integration behavior platform: container Affects Docker, containerd, Podman, or images

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants