Skip to content

fix(ci): decouple JavaScript CodeQL completion from Python - #14365

Merged
prekshivyas merged 1 commit into
mainfrom
fix/codeql-javascript-independent-completion
Nov 10, 2026
Merged

prekshivyas merged 1 commit into
mainfrom
fix/codeql-javascript-independent-completion

Conversation

@prekshivyas

@prekshivyas prekshivyas commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Outcome

JavaScript CodeQL completion now succeeds when its query partitions and combined report succeed, even if Python analysis fails, is cancelled, or is skipped.

Reason

Follow-up to #12382. Advisor finding F-delivery-flow-b909ee3972ce3ae69299 identified an unrelated Python dependency in the JavaScript completion check. The existing state test incorrectly required Python success and preserved that coupling.

Changes

  • Remove Python from the JavaScript aggregate dependencies and success condition.
  • Correct the existing 19 state combinations to require JavaScript query and publication success independently of Python.

Verification

  • node node_modules/vitest/vitest.mjs run --project integration test/repository/code-scanning-workflow.test.ts — 30 tests passed under Node 24.22.1 in isolation.
  • Complete two-file diff inspected; Python analysis, JavaScript query coverage, SARIF publication, ShellCheck, permissions, and deadlines remain unchanged.
  • Source CI — all 12 CLI shards and the coverage aggregate passed.
  • Code scanning — all six jobs passed.
  • Image qualification — AMD64/ARM64 production builds, OpenClaw security and glibc contracts, port overrides, and non-root smoke passed.
  • PR Advisor — all nine specialists clear; all 27 reports reviewed; no additional E2E recommended.
  • The diff contains no secrets, API keys, or credentials.

Review notes

Sensitive path: .github/workflows/code-scanning.yaml in NVIDIA/NemoClaw. The author inspected published commit f1ad11d5951c8588ad398a677bc338c055194336 against base 129527586eaede1d3b12aae44afb98e1d7375a33, executed the workflow condition across the retained state cases, and confirmed independent Python analysis. This covers the same repository and changed paths. Independent review of the published commit is pending.


Signed-off-by: Prekshi Vyas prekshiv@nvidia.com

Summary by CodeRabbit

  • Bug Fixes
    • JavaScript code-scanning results can now succeed when JavaScript checks and report publication pass, regardless of the Python job’s result.

Signed-off-by: Prekshi Vyas <prekshiv@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Nov 10, 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 Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The JavaScript CodeQL aggregate job no longer depends on the Python CodeQL job or its result. Its test now checks completion using JavaScript partition and report results.

Changes: JavaScript CodeQL completion

Layer / File(s) Summary
Update aggregate completion criteria
.github/workflows/code-scanning.yaml, test/repository/code-scanning-workflow.test.ts
The aggregate job depends on JavaScript partitions and report publication. Its success check and test cases no longer use the Python job result.

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

Change: Bug fix

Suggested reviewers: cv

Merge Risk: Minimal · up to f1ad1

JavaScript completion is independent of Python while still requiring successful queries and report publication. No merge-blocking risk was identified.

Architecture risk: Low · up to f1ad1

The change affects 1 system.

Changed systems: test

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — test (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in test/repository/code-scanning-workflow.test.ts: The aggregate-job expectations no longer include codeql in needs or PYTHON_RESULT in the qualification step environment. The test’s qualification cases now determine success from the JavaScript partition and report results, not Python’s result.
  • observed — Modified behavior in test/repository/code-scanning-workflow.test.ts: The parameterized test description now names complete JavaScript queries and publication, removing the previous reference to Python.
  • observed — Modified behavior in test/repository/code-scanning-workflow.test.ts: The expected exit status is now successful when both the partition and report results are success; Python’s result no longer affects the assertion.
  • observed — Modified behavior in .github/workflows/code-scanning.yaml: codeql-javascript-complete no longer waits for the Python codeql job; its dependencies are limited to the JavaScript partition and report jobs.
Pre-merge checks: Passed 5

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly describes the main change: JavaScript CodeQL completion no longer depends on Python analysis.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (1 skipped: 1 unsupported.)

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
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 1295275 and f1ad11d.

Files selected for processing: 2

  • .github/workflows/code-scanning.yaml
  • test/repository/code-scanning-workflow.test.ts

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

@prekshivyas

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness recorded Codex Desktop; CLI 0.163.0-alpha.11.1 Persisted session metadata matches this checkout and the recorded CodeQL repair operations.
Skills partial nemoclaw-contributor-implement-issue; nemoclaw-contributor-create-pr; nemoclaw-maintainer-e2e Complete reads verified in the authoring record. This is a subset; other skill reads are not fully inventoried.
Instruction files partial AGENTS.md; WRITING.md Complete reads verified. Other guidance and startup injections are not fully inventoried.
Tool calls partial exec: 7774; request_user_input_async: 6; sleep: 219; wait: 195 Recorded invocation layer through cutoff, including attempted calls and failures. Nested exec tool calls are not separately totalled. Counts include other work in the same session.
Session window recorded 2026-11-06T06:37:16Z to 2026-11-10T16:59:36.689Z; 106.37 hours Whole authoring session through cutoff, including idle time and the original upgrade work. No fork recorded.
Compactions recorded 50 Counted persisted compaction records through cutoff.
Models recorded gpt-6.1-sol Recorded turn contexts through cutoff.
Reasoning levels recorded medium Recorded turn contexts through cutoff.

@github-code-quality

github-code-quality Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage/plugin

main 63002cd fix/codeql-javascrip... f1ad11d +/-
96% 97% +1%
View coverage of the 10 most impacted files.
File main 63002cd fix/codeql-javascrip... f1ad11d +/-
nemoclaw/src/sh...cy-boundary.cts 100% 97% -3%
nemoclaw/src/onboard/config.ts 98% 96% -2%
nemoclaw/src/ru...time-context.ts 100% 99% -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/index.ts 94% 99% +5%
nemoclaw/src/de...search-state.ts 0% 100% +100%
nemoclaw/src/on...native-route.ts 0% 100% +100%
nemoclaw/src/search-config.ts 0% 100% +100%

TypeScript / code-coverage/cli

main 63002cd fix/codeql-javascrip... f1ad11d +/-
84% 86% +2%
View coverage of the 10 most impacted files.
File main 63002cd fix/codeql-javascrip... f1ad11d +/-
src/lib/onboard.ts 62% 50% -12%
src/lib/actions...ess-recovery.ts 65% 83% +18%
src/lib/inferen...ollama/proxy.ts 41% 61% +20%
src/lib/onboard.../application.ts 55% 84% +29%
src/lib/domain/...y/dimensions.ts 0% 73% +73%
src/lib/inferen...er/lifecycle.ts 0% 75% +75%
src/lib/actions...ry/operation.ts 0% 76% +76%
src/lib/actions...try/snapshot.ts 0% 83% +83%
src/lib/inferen...ovider/index.ts 0% 89% +89%
src/lib/actions...ned-recovery.ts 0% 93% +93%

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


Updated November 10, 2026 17:29 UTC

@prekshivyas
prekshivyas marked this pull request as ready for review November 10, 2026 17:21
@github-actions

Copy link
Copy Markdown
Contributor

PR Review Advisor finished for commit f1ad11d. 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

@senthilr-nv senthilr-nv 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.

Reviewed commit f1ad11d. JavaScript completion still requires both query partitions and successful combined-report publication; Python analysis remains an independent CodeQL job. The workflow contract covers success, failure, cancellation, and skipped states, including Python failures. Required checks pass, the commit is verified with a Signed-off-by declaration, and the nine Advisor specialists reported no findings. I found no blocking issue in the two-file diff.

@prekshivyas
prekshivyas merged commit e274786 into main Nov 10, 2026
108 checks passed
@prekshivyas
prekshivyas deleted the fix/codeql-javascript-independent-completion branch November 10, 2026 19:34
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions chore Build, CI, dependency, or tooling maintenance labels Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, checks, release automation, or GitHub Actions chore Build, CI, dependency, or tooling maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants