Repository navigation
fix(e2e): retain launch diagnostics and bound inference availability retries - #12389
Conversation
|
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. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: NVIDIA/NemoClaw/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review. 📝 WalkthroughWalkthroughThe changes add classified diagnostics for launch-readiness publication failures, a bounded retry for the live inference probe, and expanded provider-error evidence and cleanup handling for launch-agent turns. ChangesLaunch-readiness publication diagnostics
Full E2E inference probe
Launch-agent provider evidence and cleanup
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~45 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant FullE2ETest
participant runFullE2eInferenceCommand
participant sandbox.exec
participant retainFullE2eInferenceAvailability
participant artifactWriter
FullE2ETest->>runFullE2eInferenceCommand: run inference attempt
runFullE2eInferenceCommand->>sandbox.exec: execute command
sandbox.exec-->>runFullE2eInferenceCommand: command result
runFullE2eInferenceCommand->>retainFullE2eInferenceAvailability: report retry evidence
retainFullE2eInferenceAvailability->>artifactWriter: write attempt artifact
runFullE2eInferenceCommand->>sandbox.exec: retry exact HTTP 503 result after five seconds
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The selected changes mainly harden E2E diagnostics and cleanup and do not introduce a concrete production-facing risk. Normal CI checks should still run before merge. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 30.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 16 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall line coverage in commit e09e164 in the Show a line coverage summary of the most impacted files.
TypeScript / code-coverage/cliThe overall line coverage in commit e09e164 in the Show a line coverage summary of the most impacted files.
Updated |
…ev-publication-failure
Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
The cleanup fix changed bash -lc to bash -c, leaving three stale caller assertions. Reproduced the fixture failure, then updated those expectations. Focused E2E support tests pass: 151 passed, 41 Linux-only skips on macOS. Integrate main for its current dependency lockfile and trusted validator. Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
Main changed the workflow validators during publication. Integrate those trusted definitions before retrying publication; the PR behavior is unchanged. The merged connect path and readiness suites pass all 175 focused tests. Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
## Outcome Rebalance the existing stable CLI test shards so the current main test roster satisfies the unchanged 5.5% load limit. The busiest shard's estimated load falls from 1,257,861 ms (5.67% above average) to 1,219,489 ms (2.45% above average). ## Reason PR #12389's original shell-argument assertion failures are fixed, but its CI now hits an inherited failure in `test/repository/cli-coverage-sequencer.test.ts`. Running the same test on current main `946fb1611be605f14af3bc7a78d964c0b331463f` reproduces the exact failure: `1257861` exceeds `1255812.65625`. This dependency isolates the main repair from the Brev readiness work. The fixed hash assignment no longer balances the expanded roster within the existing bound. The current-roster test detected it; its bound and the independent serialized integration-lane bound remain intact. ### Related issues Refs #6237. Unblocks #12389 after maintainer merge. ## Changes - Recalibrate the CLI lane salt from `959` to `15873`, using the existing timing hints and current 2,500-file roster. Integration and E2E-support assignments stay unchanged. - Update the pinned CLI ownership fixture for the intentional remapping. Membership remains independent of other files' additions, removals, and timing weights. ## Verification - Exact-base reproduction — 12 passed, 1 failed with the same CI assertion. - `vitest run --project integration test/repository/cli-coverage-sequencer.test.ts` — all 13 passed after repair, including both balance bounds, unique assignment, deterministic order, and roster-stability checks. - `git diff --check` — passed. - Diff contains no secrets, API keys, or credentials. ## Review notes All nine local Docker Advisor specialists cleared the prepared candidate tree `fe7f787b8ae98810c8d55b3db9f13f91509a697a` against base `946fb1611be605f14af3bc7a78d964c0b331463f`. Every summary, finding ledger, and E2E receipt was inspected; none has findings or additional E2E recommendations. The deterministic risk plan selects no live E2E jobs for this test-only change. Reports are retained locally; review sandboxes and gateway were verified gone. Normal publication validation and all three TypeScript pre-push checks passed for `cef57c75ae5ddf6b1a84e56c3c2e14e33cf8dd12`. The remote branch matches that signed candidate; hosted CI and automated review are pending. This PR remains a draft until automated evaluation completes. Human review and merge are separate maintainer actions. --- Signed-off-by: Julie Yaunches <jyaunches@nvidia.com> --------- Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
Consume merged dependency #12479 and resolve the launch-evidence conflict with #11870. Preserve bounded diagnostic history together with the provider-status tracking and non-login launch shell. The integrated tree passes 276 Linux E2E support tests, 175 readiness unit tests, and 13 shard allocation tests. The live Brev pass on 006d984 remains prior-head evidence; hosted checks will evaluate this new head. Move the existing host-input tests to a focused file after combined upstream coverage exceeded the per-file size budget. Preserve every assertion; project membership and growth checks pass. Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
Name the implementation helper as the parsing and retry owner and the support test as its regression evidence. Verified against the helper exports; no runtime behavior changes. Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
|
PR Review Advisor finished for commit Request review only when Require no Advisor blockers is green. |
rsliter
left a comment
There was a problem hiding this comment.
Reviewed e09e164 against base 815ad8e.
The availability retries are bounded to two attempts and require exact, structured transient evidence. Authentication, policy, malformed-response, transport, cleanup, and unknown failures remain terminal. Launch cleanup independently attempts baseline and PTY removal, suppresses the retry marker on cleanup failure, and avoids login/logout hooks. Publication and empty-message diagnostics retain only fixed or allowlisted metadata, with regression coverage for secret-bearing and unknown values.
Security review: PASS across credentials, input validation, authorization, dependencies, error handling, cryptography, configuration, tests, and system safety. Current-head CI is green, including CLI shards, ShellCheck, CodeQL, rootless Linux, direct managed startup, Staging QA, and both exact all-agent activation jobs.
No blocking findings.
Outcome
Readiness-publication failures now retain fixed stage and reason labels instead of discarding their cause. Brev E2E retains safe inference diagnostics and retries narrowly classified transient provider failures within fixed limits. The launch harness avoids login-shell logout hooks that can break cleanup and prevent an otherwise eligible retry.
Reason
The original Brev failure occurred during readiness publication after image construction, onboarding, and inference passed. The retained generic error could not establish its root cause. Readiness has passed in subsequent diagnostic runs; this PR does not claim to have proven or fixed that original cause.
Subsequent runs exposed HTTP 503 responses, an overly restrictive provider-error classifier, and a cleanup failure that prevented retries. The sixth run retained
local: can only be used in a functionfollowed bymode: unbound variablein both cleanup calls. Ubuntu Bash 5.1 with a failing.bash_logoutreproduces that exact failure. The host harness is self-contained and now usesbash -cwith its supplied environment.Changes
Verification
vitest run --project e2e-support test/e2e/support/launch-agent-turn.test.ts: 6 passed on macOS; 40 Linux cases skipped. The socket test passed across the required execution boundary after sandbox isolation blocked its first attempt.006d984: the image producer, fresh-boot qualification, exact clean provenance, and full E2E passed. The temporary Brev workspace was verified absent.655c06b5d9. Current-head hosted CI and review are pending.Review notes
All ordinary CI and all nine Advisor specialists passed for
7c5a399. Every specialist summary, finding ledger, and E2E recommendation was read, along with paginated PR comments, reviews, and inline comments. There were no actionable findings. Earlier valid Advisor findings about log-retention order and documentation were repaired and reviewed in that candidate.The logout repair has local before/after and denial evidence plus a successful live Brev run. Its initial ordinary CI failures were three stale
-lcassertions; the follow-up changes them to-c. Local Docker Advisor completed all nine specialists with no findings for the final tree of655c06b5d9db4b82181aa293b9d0b914232c358eagainst946fb1611be605f14af3bc7a78d964c0b331463f. Its disposable snapshot treed67ef1e59bc86496339b6d0279811863ea34651fwas verified identical to the candidate; all summaries, finding ledgers, and E2E recommendations were read. Review sandboxes and gateway were cleaned up. Current-head hosted CI and review are pending. The PR remains a draft; no merge approval is claimed.Signed-off-by: Julie Yaunches jyaunches@nvidia.com
Summary by CodeRabbit