Repository navigation
fix(dcode): disable LangGraph CLI analytics - #6471
Conversation
Signed-off-by: Aaron Erickson <[email protected]>
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall coverage in the Show a code coverage summary of the most covered files.
TypeScript / code-coverage/cliThe overall coverage in the Show a code coverage summary of the most covered files.
Updated |
📝 WalkthroughWalkthroughAdds LANGGRAPH_CLI_NO_ANALYTICS=1 across the Dockerfile, wrapper/start scripts, managed runtime hardening, and the deepagents-code patcher, including reassertion after server env overrides, stricter partial-patch/staleness detection, and corresponding test helper and suite updates verifying the analytics flag end-to-end. ChangesAnalytics disabling and hardening
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant Patcher as patch-managed-deepagents-code.py
participant Server as server._build_server_env()
participant Env as Process Env
Patcher->>Server: apply persistent overrides
Patcher->>Server: apply non-persistent overrides
Patcher->>Env: reassert LANGGRAPH_CLI_NO_ANALYTICS=1
Patcher->>Env: force OTEL_ENABLED=false
Patcher->>Env: remove proxy/OTLP telemetry vars
Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
E2E Advisor RecommendationRequired E2E: Dispatch hint: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
E2E Target RecommendationRequired E2E targets: Dispatch required E2E targets:
Full E2E target advisor summaryE2E Target AdvisorBase: Required E2E targets
Optional E2E targets
Relevant changed files
|
PR Review Advisor (Nemotron Ultra) — No blocking findingsMerge posture: No blocking advisor findings Action checklist
Findings index
Review findings by urgency: 0 required fixes, 0 items to resolve/justify, 3 in-scope improvements
|
PR Review Advisor — No blocking findingsMerge posture: No blocking advisor findings Action checklist
Test follow-ups to resolve or justifyIf these cover changed behavior, prefer adding them in this PR; otherwise state why existing coverage is enough or link the follow-up.
This is an automated, non-binding review; it still expects maintainers and agents to respond to each required or warning item. Treat suggestions as current-PR improvements when they touch changed code; defer only with maintainer rationale or a linked follow-up. A human maintainer must make the final merge decision. |
Signed-off-by: Aaron Erickson <[email protected]>
E2E Target Results — ✅ All selected jobs passedRun: 28949087948
|
E2E Target Results — ✅ All selected jobs passedRun: 28949444993
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
test/langchain-deepagents-code-managed-entrypoints.test.ts (1)
114-131: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueConsider adding an issue reference suffix to the test title.
The renamed title "overrides hostile tracing and analytics flags before the managed package starts" is behavior-oriented but omits a local issue reference, even though this change is tied to the Supabase-blocking bug (
#6459).As per coding guidelines,
**/*.test.ts: "Write behavior-oriented test titles, and put local issue references in a final(#1234)suffix."🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@test/langchain-deepagents-code-managed-entrypoints.test.ts` around lines 114 - 131, Update the test title in the affected test case to keep the behavior-oriented wording and append the local issue reference as a final suffix, matching the project convention for test files. Locate the `it(...)` block in the managed entrypoints test and rename the description so it ends with the issue number in parentheses, preserving the existing scenario text while adding the `(`#6459`)` suffix.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@test/langchain-deepagents-code-managed-entrypoints.test.ts`:
- Around line 114-131: Update the test title in the affected test case to keep
the behavior-oriented wording and append the local issue reference as a final
suffix, matching the project convention for test files. Locate the `it(...)`
block in the managed entrypoints test and rename the description so it ends with
the issue number in parentheses, preserving the existing scenario text while
adding the `(`#6459`)` suffix.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: f75981de-eb4f-4f69-aeed-70889f547280
📒 Files selected for processing (10)
agents/langchain-deepagents-code/Dockerfileagents/langchain-deepagents-code/dcode-wrapper.shagents/langchain-deepagents-code/managed-dcode-runtime.pyagents/langchain-deepagents-code/patch-managed-deepagents-code.pyagents/langchain-deepagents-code/start.shtest/helpers/langchain-deepagents-code-headless.tstest/helpers/langchain-deepagents-code-patch-fixture.tstest/langchain-deepagents-code-direct-module-patch.test.tstest/langchain-deepagents-code-image.test.tstest/langchain-deepagents-code-managed-entrypoints.test.ts
<!-- markdownlint-disable MD041 --> ## Summary Adds the v0.0.77 release-note section from the shipped release announcement and release commit range. This is post-release docs recovery, so the PR is labeled for the next patch release train. ## Changes - Added `v0.0.77` to `docs/about/release-notes.mdx` with links to the deeper Deep Agents, architecture, inference, security, and agent-docs pages. - Source summary: - #6469 -> `docs/about/release-notes.mdx`: Documents Deep Agents Code base-image publication and stale-version validation. - #6471 -> `docs/about/release-notes.mdx`: Documents the managed runtime disabling LangGraph CLI analytics. - #6462 -> `docs/about/release-notes.mdx`: Documents the TUI, launch banner, and model-identity provider display behavior. - #6460 -> `docs/about/release-notes.mdx`: Documents bounded, best-effort OTLP trace credential scrubbing and the remaining collector-side redaction requirement. - #6423 -> `docs/about/release-notes.mdx`: Documents the checked-in loopback-only local credential form used by starter prompts. ## Type of Change - [ ] Code change (feature, bug fix, or refactor) - [ ] Code change with doc updates - [x] Doc only (prose changes, no code sample modifications) - [ ] Doc only (includes code sample changes) ## Quality Gates <!-- Check exactly one tests line and one docs line. Check other lines when applicable. Add every requested justification or approval reference. --> - [ ] Tests added or updated for changed behavior - [ ] Existing tests cover changed behavior — justification: - [x] Tests not applicable — justification: release-note prose only, no runtime behavior or code samples changed. - [x] Docs updated for user-facing behavior changes - [ ] Docs not applicable — justification: - [ ] Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging) - [ ] Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification: - [ ] Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue: ## Verification <!-- Check each applicable item only when supported by the requested evidence. Run targeted tests once per relevant change set and rerun after later edits or hook autofixes that can affect the tested behavior. Do not rerun hook-covered checks. --> - [x] PR description includes the DCO sign-off declaration and every commit appears as `Verified` in GitHub - [x] Normal `pre-commit`, `commit-msg`, and `pre-push` hooks passed, or `npm run check:diff` passed when hooks were skipped or unavailable - [x] Targeted behavior tests pass for the current change set, or tests are marked not applicable above — command/result or justification: tests not applicable for release-note prose only. - [ ] Applicable broad gate passed — `npm test` for broad runtime/test-harness changes; `npm run check` for repo-wide validation/coverage changes — command/result: - [x] Quality Gates section completed with required justifications or waivers - [x] No secrets, API keys, or credentials committed - [ ] `npm run docs` builds without warnings (doc changes only) - [x] Doc pages follow the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md) (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) Verification note: `npm run docs` passed. `fern check --warnings` reports the existing light-mode accent color contrast warning: `2.41:1`, expected at least `3:1`. --- <!-- DCO sign-off is required in this PR description, and every commit must appear as Verified in GitHub. Run: git config user.name && git config user.email --> Signed-off-by: Miyoung Choi <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Added a new release-notes entry for **v0.0.77** at the top of the changelog. * Highlighted improved package validation, tighter handling of telemetry and trace data, and safer starter prompt behavior with stronger redaction and local-only submission. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
<!-- markdownlint-disable MD041 --> ## Summary Disable LangGraph CLI's optional analytics in NemoClaw-managed Deep Agents Code sandboxes. This removes the blocked Supabase request reported in NVIDIA#6459 without widening sandbox egress policy or changing managed inference routing. ## Related Issue Refs NVIDIA#6459. Exact rebuilt-image validation now proves foreground `dcode -n` succeeds, but the issue remains open for QA/release revalidation because the pinned analytics client handles its background HTTP failure independently and the original report did not include logs that establish foreground causality. ## Changes - Force `LANGGRAPH_CLI_NO_ANALYTICS=1` at the image, startup/login-shell, wrapper, Python entrypoint, managed-runtime, and LangGraph child-process boundaries. - Reassert the managed child posture after persistent and restart-time environment overrides. - Reject already-patched package states with stale entrypoint, main, helper, server, status, welcome, or model-identity patches. - Add hostile-value and restart coverage while keeping Supabase absent from the default policy. ## Type of Change - [x] Code change (feature, bug fix, or refactor) - [ ] Code change with doc updates - [ ] Doc only (prose changes, no code sample modifications) - [ ] Doc only (includes code sample changes) ## Quality Gates - [x] Tests added or updated for changed behavior - [ ] Existing tests cover changed behavior — justification: - [ ] Tests not applicable — justification: - [ ] Docs updated for user-facing behavior changes - [x] Docs not applicable — justification: this changes only optional upstream analytics egress; commands, configuration, inference routing, credentials, and policy remain unchanged. - [x] Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging) - [ ] Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification: pending human review of the managed runtime boundary. - [ ] Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue: ## Verification - [x] PR description includes the DCO sign-off declaration and every commit appears as `Verified` in GitHub - [x] Normal `pre-commit`, `commit-msg`, and `pre-push` hooks passed, or `npm run check:diff` passed when hooks were skipped or unavailable - [x] Targeted behavior tests pass for the current change set, or tests are marked not applicable above — 141 passed, 1 platform skip across managed-entrypoint, direct-module patch, and image-contract suites; image suite used a 60-second timeout for two known slow corpus cases. - [x] Applicable broad gate passed — exact-head CI completed with 42 successful checks and 3 intentional skips, including all five CLI shards, the aggregate CLI suite, x86_64/ARM64 image builds, and sandbox smoke jobs. - [x] Required rebuilt-image E2E passed — [run 28949444993](https://github.com/NVIDIA/NemoClaw/actions/runs/28949444993) on exact head `818faf83` completed the Ubuntu DCode target; check 07 passed 10/10 with login-shell and direct-exec `dcode -n` returning `PONG` through `inference.local`. The sanitized artifact set contains no Supabase hostname, `PermissionDeniedError`, or `RemoteException`; it is supporting evidence rather than a dedicated network-audit assertion. - [ ] Quality Gates section completed with required justifications or waivers - [x] No secrets, API keys, or credentials committed - [ ] `npm run docs` builds without warnings (doc changes only) - [ ] Doc pages follow the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md) (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) --- Signed-off-by: Aaron Erickson <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved managed runtime behavior so analytics are consistently disabled across startup scripts, wrappers, and sandboxed execution. * Strengthened package handling to detect incomplete or stale managed-state updates more reliably. * **Tests** * Expanded coverage for analytics-related environment propagation and cleanup. * Added checks for generated runtime outputs, policy constraints, and managed entrypoint behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Aaron Erickson <[email protected]>
<!-- markdownlint-disable MD041 --> ## Summary Adds the v0.0.77 release-note section from the shipped release announcement and release commit range. This is post-release docs recovery, so the PR is labeled for the next patch release train. ## Changes - Added `v0.0.77` to `docs/about/release-notes.mdx` with links to the deeper Deep Agents, architecture, inference, security, and agent-docs pages. - Source summary: - NVIDIA#6469 -> `docs/about/release-notes.mdx`: Documents Deep Agents Code base-image publication and stale-version validation. - NVIDIA#6471 -> `docs/about/release-notes.mdx`: Documents the managed runtime disabling LangGraph CLI analytics. - NVIDIA#6462 -> `docs/about/release-notes.mdx`: Documents the TUI, launch banner, and model-identity provider display behavior. - NVIDIA#6460 -> `docs/about/release-notes.mdx`: Documents bounded, best-effort OTLP trace credential scrubbing and the remaining collector-side redaction requirement. - NVIDIA#6423 -> `docs/about/release-notes.mdx`: Documents the checked-in loopback-only local credential form used by starter prompts. ## Type of Change - [ ] Code change (feature, bug fix, or refactor) - [ ] Code change with doc updates - [x] Doc only (prose changes, no code sample modifications) - [ ] Doc only (includes code sample changes) ## Quality Gates <!-- Check exactly one tests line and one docs line. Check other lines when applicable. Add every requested justification or approval reference. --> - [ ] Tests added or updated for changed behavior - [ ] Existing tests cover changed behavior — justification: - [x] Tests not applicable — justification: release-note prose only, no runtime behavior or code samples changed. - [x] Docs updated for user-facing behavior changes - [ ] Docs not applicable — justification: - [ ] Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging) - [ ] Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification: - [ ] Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue: ## Verification <!-- Check each applicable item only when supported by the requested evidence. Run targeted tests once per relevant change set and rerun after later edits or hook autofixes that can affect the tested behavior. Do not rerun hook-covered checks. --> - [x] PR description includes the DCO sign-off declaration and every commit appears as `Verified` in GitHub - [x] Normal `pre-commit`, `commit-msg`, and `pre-push` hooks passed, or `npm run check:diff` passed when hooks were skipped or unavailable - [x] Targeted behavior tests pass for the current change set, or tests are marked not applicable above — command/result or justification: tests not applicable for release-note prose only. - [ ] Applicable broad gate passed — `npm test` for broad runtime/test-harness changes; `npm run check` for repo-wide validation/coverage changes — command/result: - [x] Quality Gates section completed with required justifications or waivers - [x] No secrets, API keys, or credentials committed - [ ] `npm run docs` builds without warnings (doc changes only) - [x] Doc pages follow the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md) (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) Verification note: `npm run docs` passed. `fern check --warnings` reports the existing light-mode accent color contrast warning: `2.41:1`, expected at least `3:1`. --- <!-- DCO sign-off is required in this PR description, and every commit must appear as Verified in GitHub. Run: git config user.name && git config user.email --> Signed-off-by: Miyoung Choi <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Added a new release-notes entry for **v0.0.77** at the top of the changelog. * Highlighted improved package validation, tighter handling of telemetry and trace data, and safer starter prompt behavior with stronger redaction and local-only submission. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Summary
Disable LangGraph CLI's optional analytics in NemoClaw-managed Deep Agents Code sandboxes. This removes the blocked Supabase request reported in #6459 without widening sandbox egress policy or changing managed inference routing.
Related Issue
Refs #6459. Exact rebuilt-image validation now proves foreground
dcode -nsucceeds, but the issue remains open for QA/release revalidation because the pinned analytics client handles its background HTTP failure independently and the original report did not include logs that establish foreground causality.Changes
LANGGRAPH_CLI_NO_ANALYTICS=1at the image, startup/login-shell, wrapper, Python entrypoint, managed-runtime, and LangGraph child-process boundaries.Type of Change
Quality Gates
Verification
Verifiedin GitHubpre-commit,commit-msg, andpre-pushhooks passed, ornpm run check:diffpassed when hooks were skipped or unavailable818faf83completed the Ubuntu DCode target; check 07 passed 10/10 with login-shell and direct-execdcode -nreturningPONGthroughinference.local. The sanitized artifact set contains no Supabase hostname,PermissionDeniedError, orRemoteException; it is supporting evidence rather than a dedicated network-audit assertion.npm run docsbuilds without warnings (doc changes only)Signed-off-by: Aaron Erickson [email protected]
Summary by CodeRabbit
Bug Fixes
Tests