Repository navigation
Conversation
Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
|
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 (8)
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 WalkthroughWalkthroughThe full E2E inference probe retries once after a qualifying HTTP 503 result and records attempt evidence. Empty-message diagnostics now include normalized, allowlisted provider error metadata. Tests cover retry behavior, diagnostic sanitization, and credential-scan boundaries. ChangesInference availability retry
Empty-message diagnostics
Credential scan boundary
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Other Sequence Diagram(s)sequenceDiagram
participant FullE2eTest
participant runFullE2eInferenceCommand
participant runBoundedRetry
participant sandbox.exec
participant onEvidence
FullE2eTest->>runFullE2eInferenceCommand: Pass command and evidence callbacks
runFullE2eInferenceCommand->>runBoundedRetry: Configure two attempts and 5-second delay
runBoundedRetry->>sandbox.exec: Run inference command for an attempt
sandbox.exec-->>runBoundedRetry: Return command result
runBoundedRetry->>onEvidence: Forward attempt evidence
Possibly related PRs
Suggested labels: Suggested reviewers: Merge Risk: ⚪ Minimal · up to The bounded retry preserves the final response checks. No identified issue needs resolution before merge; live Brev E2E validation remains outstanding. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 7 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 39001a8 in the TypeScript / code-coverage/cliThe overall line coverage in commit 39001a8 in the Show a line coverage summary of the most impacted files.
Updated |
Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
|
PR Review Advisor finished for commit Request review only when Require no Advisor blockers is green. |
…retries (#12389) ## 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](https://github.com/NVIDIA/NemoClaw/actions/runs/36341308665/job/108682308249) 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](https://github.com/NVIDIA/NemoClaw/actions/runs/36471884669/job/109097637491) retained `local: can only be used in a function` followed by `mode: unbound variable` in both cleanup calls. Ubuntu Bash 5.1 with a failing `.bash_logout` reproduces that exact failure. The host harness is self-contained and now uses `bash -c` with its supplied environment. ## Changes - Map publication authority, final observation, storage, lock, and clock failures to fixed diagnostic labels. Print them in the existing CLI failure path without exposing raw exception text. - Retain allowlisted empty-assistant metadata for JSONL and SQLite sessions. Unknown provider details remain unclassified. Reuse the focused diagnostic from #12314. - Reuse the shared bounded-retry helper for the stateless arithmetic probe: retry only exact curl HTTP 503 failures once after five seconds. Preserve separate attempt artifacts and log aggregate evidence before artifact writing. - Recognize structured managed-inference HTTP 503 without requiring a provider-specific exception prefix. Keep authentication, policy, conflicting error classes, malformed evidence, and cleanup failures terminal. - Retain bounded cleanup diagnostics and execute baseline and PTY cleanup independently. Invoke the host harness without login/logout files. Successful cleanup remains mandatory before the existing two-attempt launch retry. - Extend existing support tests for redaction, retry eligibility, recovery, exhaustion, artifact-write failure, fatal cleanup, and a failing logout hook. Live acceptance still requires two nonempty user/assistant turn pairs per successful launch. ## Verification - Focused readiness, observation-timing, connect-flow, and lease-storage tests: 175 passed across four files. - Session-evidence classifier suite: 66 passed, with before-fix reproductions for JSONL and SQLite HTTP 503 records. - Inference-probe support suite: 29 passed, including retry exhaustion, recovery, and failed artifact writes. - `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. - Isolated Linux tests using the real producer and support fixture with Ubuntu Bash 5.1.16: the prior login-shell invocation reproduces the live cleanup failure; the repaired invocation cleans up and succeeds on its second attempt; a genuine cleanup denial still stops after one attempt. No PTY or host-process residue remained in the recovery case. - [Third Brev run](https://github.com/NVIDIA/NemoClaw/actions/runs/36445843350): arithmetic HTTP 503 recovered on its second attempt. Structured launch HTTP 503 supplied the classifier regression evidence. - [Sixth Brev run](https://github.com/NVIDIA/NemoClaw/actions/runs/36471884669): image build, fresh-boot qualification, exact clean provenance, onboarding, arithmetic inference, readiness, and first logical launch passed. Second launch exposed the logout/cleanup failure repaired here. Brev workspace absence was verified. - [Seventh Brev run](https://github.com/NVIDIA/NemoClaw/actions/runs/36479536230) passed on `006d984`: the image producer, fresh-boot qualification, exact clean provenance, and full E2E passed. The temporary Brev workspace was verified absent. - Follow-up support tests after updating three stale shell-argument expectations and integrating the current base: 151 passed on macOS (41 Linux-only skips); all 192 cases passed on Linux after supplying the generated shared JavaScript outputs. The stale assertion was reproduced before correction. The four readiness-related files also passed all 175 tests after the base update. - Diff inspection: no secrets, API keys, credentials, or unrelated feature changes. Normal publication validation and all three TypeScript pre-push checks passed for `655c06b5d9`. Current-head hosted CI and review are pending. ## Review notes All ordinary CI and [all nine Advisor specialists](https://github.com/NVIDIA/NemoClaw/actions/runs/36473980213) 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 `-lc` assertions; the follow-up changes them to `-c`. Local Docker Advisor completed all nine specialists with no findings for the final tree of `655c06b5d9db4b82181aa293b9d0b914232c358e` against `946fb1611be605f14af3bc7a78d964c0b331463f`. Its disposable snapshot tree `d67ef1e59bc86496339b6d0279811863ea34651f` was 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> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Launch-readiness failures now include a diagnostic stage and a safe, classified reason when available, making failures easier to understand without exposing sensitive error details. * Live inference checks now retry once after a specific temporary service-unavailable response. Other failures remain non-retryable, and availability evidence is retained even if writing an artifact fails. * Launch cleanup now reports progress and continues independent cleanup steps when one fails. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
|
Closing as mostly superseded by #12389, which incorporated the bounded HTTP-503 retry and sanitized launch diagnostics. The full conflicting PR does not need revival. The remaining regression test is NOT considered redundant: it accepts a reference-only auth profile, inserts a synthetic credential into that same file, and requires path-only detection without exposing the value. Current main does not contain this specific case. Preserved below is the exact standalone test patch extracted from this PR, so it can be applied independently. diff --git a/test/e2e/support/sandbox-credential-boundary.test.ts b/test/e2e/support/sandbox-credential-boundary.test.ts
index 9405b7af7a9..2ed3ff0c9e0 100644
--- a/test/e2e/support/sandbox-credential-boundary.test.ts
+++ b/test/e2e/support/sandbox-credential-boundary.test.ts
@@ -60,6 +60,29 @@ function scanWithoutRootPrivileges(root: string): string {
}
describe("sandbox credential scan", () => {
+ it("accepts an auth reference and detects a credential added to the same file", () => {
+ const root = createScanRoot();
+ const canary = "nvapi-nemoclaw-auth-profile-credential-canary";
+ const file = path.join(root, ".openclaw/agents/main/agent/auth-profiles.json");
+ const profile: Record<string, Record<string, unknown>> = {
+ "inference:manual": {
+ type: "api_key",
+ provider: "inference",
+ keyRef: { source: "env", id: "NVIDIA_INFERENCE_API_KEY" },
+ profileId: "inference:manual",
+ },
+ };
+ fs.mkdirSync(path.dirname(file), { recursive: true });
+ fs.writeFileSync(file, JSON.stringify(profile));
+ expect(scan(root)).toBe("");
+
+ profile["inference:manual"].key = canary;
+ fs.writeFileSync(file, JSON.stringify(profile));
+ const output = scan(root);
+ expect(output.trim()).toBe(file);
+ expect(output).not.toContain(canary);
+ });
+
it("rejects fixture paths outside the temporary scan root", () => {
const root = createScanRoot();
|
Preserve a local credential-scanner regression test that accepts a reference-only auth profile, then detects a synthetic credential inserted into the same file without exposing its value.
Test behavior
In
test/e2e/support/sandbox-credential-boundary.test.ts, the test:auth-profiles.jsonprofile with an environment-variablekeyRefand verifies that scanning produces no findings.This is a local support test using temporary files and the actual scanner command. It requires no cloud resources, network calls, or model inference.
Preserved patch and status
The standalone test patch is the remaining change worth carrying forward. At extraction,
git apply --checkpassed against main's target test file; the extracted test was not executed or merged.This PR remains closed. Its original branch diff also contains inference-retry and launch-diagnostic changes superseded by merged #12389; that diff has not been reduced to the standalone test. The linked patch isolates the test for follow-up.
Signed-off-by: Julie Yaunches jyaunches@nvidia.com