Skip to content

ci(test): replace stale CLI shard artifacts - #11644

Merged
jyaunches merged 2 commits into
mainfrom
codex/replace-cli-shard-artifacts
Sep 13, 2026
Merged

jyaunches merged 2 commits into
mainfrom
codex/replace-cli-shard-artifacts

Conversation

@cjagwani

@cjagwani cjagwani commented Sep 13, 2026 •

Copy link
Copy Markdown
Collaborator

Outcome

A successful CLI shard retry now replaces that shard's failed report instead of leaving both artifacts for the coverage merge to choose from. This prevents stale failed results from turning a successful retry into another failed rollup; production behavior is unchanged.

Reason

PR #11642 exposed the gap: shard 6 passed on retry, but the merge job selected its earlier failed artifact on two consecutive rollup attempts. Rerunning the rollup could not recover because both same-name artifacts remained attached to the workflow run.

Changes

  • Set the existing CLI shard upload to overwrite its same-name artifact on reruns.
  • Protect that retry contract in the PR workflow test.
  • Register the exact workflow assertion as a compatibility boundary in the source-shape budget.

Verification

  • npx --no-install vitest run --project integration test/automation/pull-requests/pr-workflow-contract.test.ts — 45/45 passed.
  • npm run source-shape:check — passed with no unbudgeted source-shape tests.
  • npm --prefix nemoclaw run build — passed.
  • Normal pre-commit hooks — passed, including YAML validation, repository checks, secret scanning, source-shape budget, and growth guardrails.
  • Normal pre-push hooks — passed, including publication validation and CLI TypeScript.
  • Hosted CI — all 12 CLI shards, coverage merge, static checks, type checks, audits, and security scans passed.
  • GitHub commit verification — 6f698307fae4b9b97210cf837c999618ec92c56e is Verified.
  • Diff inspection — no secrets, API keys, or credentials.
  • Documentation impact review — no user-facing docs or changelog update is needed.

Review notes

Sensitive workflow path: .github/actions/ci-cli-coverage-shard/action.yaml. The exact three-file diff at 6f698307fae4b9b97210cf837c999618ec92c56e received contributor self-review and a documentation-impact review; no maintainer pre-publication review exists. Ready for independent workflow review.


Signed-off-by: Charan Jagwani [email protected]

Summary by CodeRabbit

  • Bug Fixes

    • Failed pull-request workflow reruns now replace outdated CLI shard reports instead of retaining conflicting artifacts.
    • CLI coverage results are stored under the correct shard-specific report name, improving reliability when workflows are rerun.
  • Tests

    • Added automated coverage to verify that refreshed shard reports overwrite existing reports as expected.
    • Updated workflow compatibility checks to cover replacement of stale reports after failed-job reruns.

@cjagwani cjagwani self-assigned this Sep 13, 2026
@copy-pr-bot

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

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: f8007b68-bfc6-4a22-9d26-9f540c9de9dd

📥 Commits

Reviewing files that changed from the base of the PR and between 6f69830 and 38a646d.

📒 Files selected for processing (2)
  • ci/source-shape-test-budget.json
  • test/automation/pull-requests/pr-workflow-contract.test.ts

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


📝 Walkthrough

Walkthrough

The CLI coverage shard upload now overwrites existing artifacts with the same shard-specific name. A contract test verifies this configuration, and the source-shape budget records the related exception.

Changes

CLI shard artifact replacement

Layer / File(s) Summary
Upload configuration and contract validation
.github/actions/ci-cli-coverage-shard/action.yaml, test/automation/pull-requests/pr-workflow-contract.test.ts, ci/source-shape-test-budget.json
The upload enables overwrite: true. The contract test checks the shard-specific artifact name and overwrite setting. The source-shape budget records the compatibility exception.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: cv, prekshivyas

Merge Risk: ⚪ Minimal · up to 38a64

The CI change correctly replaces stale shard artifacts without introducing a supported production or coverage-merge risk.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 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: replacing stale CLI shard artifacts during CI retries.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
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.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/replace-cli-shard-artifacts

Comment @coderabbitai help to get the list of available commands.

@github-code-quality

github-code-quality Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall line coverage in commit 38a646d in the codex/replace-cli-sh... branch remains at 96%, unchanged from commit 475a20e in the main branch.


Updated September 13, 2026 19:19 UTC

@cjagwani
cjagwani marked this pull request as ready for review September 13, 2026 04:48
@github-actions

Copy link
Copy Markdown
Contributor

PR Review Advisor finished for commit 6f69830. Include the Advisor findings in the complete PR feedback collection. Verify and group valid findings before repair.

All previous runs

Signed-off-by: Julie Yaunches <[email protected]>
@jyaunches

Copy link
Copy Markdown
Contributor

Maintainer refresh status for head 38a646dd22934bd8dbd048995d08fe6aa143b593:

  • Merged current main (475a20e00db5984d026b70d0a01654a2822b6a7a) in signed, GitHub-verified commit 38a646d.
  • Alternative review completed. The local Advisor command could not be used because external model egress was not authorized in this environment; an independent review of the complete integrated three-file diff found no actionable correctness, security, or workflow findings. Fresh CodeRabbit review is also clear at this exact head.
  • Local validation passed: publication validation, CLI typecheck, test:changed, the full PR workflow-contract file (45/45), and the timed-out vLLM resume test file (6/6).
  • Self-hosted PR qualification run 34777299410 passed, including x86_64 and arm64 image builds, port-override contract, non-root sandbox smoke, and managed-image OpenClaw security. The llama.cpp GPU scenario was not selected by the repository selector.
  • PR CI run 34777298785 has one primary failure: CLI shard 6 timed out after 5 seconds in unchanged src/lib/onboard/setup-nim-flow-vllm-resume.test.ts. The other 11 shards passed, the failed shard still uploaded its report successfully, and the focused file passes locally. The aggregate cli-tests and checks failures are downstream consequences.

The fresh hosted PR Review Advisor did not run because its green-CI prerequisite was not met. Repository follow-up policy permits rerunning unchanged work only when a checked-in transient retry policy applies; none was found for this timeout. Awaiting maintainer direction on whether to rerun the failed CI job.

@jyaunches
jyaunches merged commit 48f16b5 into main Sep 13, 2026
64 of 67 checks passed
@jyaunches
jyaunches deleted the codex/replace-cli-shard-artifacts branch September 13, 2026 19:50
prekshivyas added a commit that referenced this pull request Sep 14, 2026
…1658)

## Outcome

Portable rootless validation runs for relevant launch, connect, receipt,
lifecycle state, retirement, and Hermes manifest changes. Both pull
requests and main pushes select the Portable runtime authorities and
production inputs used by the rootless proof.

## Reason

The workflow filters omitted lifecycle owners, allowing relevant changes
to miss Portable validation before merge.

### Related issues

Fixes #11653

Part of #11573.

## Changes

- Extend the existing filters for Portable lifecycle, registry,
host/runtime authority, destroy, and inference-recovery owners.
- Cover the gateway, build, executable-resolution, and other production
modules imported by the existing rootless proof.
- Exercise every added filter through 146 positive path-selection
assertions and four unrelated-path exclusions in the existing workflow
contract.

## Verification

- Original baseline `cad153cc1b761353e4a9590da7fa2f5121913056`: three
workflow tests passed; the lifecycle-selection regression failed.
- Latest repair baseline `c76fee3f06dfd4cf8ea56f46293d84e8ca24a067`:
three workflow tests passed; the expanded regression failed at 30 missed
selections.
- `node node_modules/vitest/vitest.mjs run --project e2e-support
test/e2e/support/portable-profile-rootless-runtime-workflow.test.ts` —
four tests passed after repair.
- `node node_modules/vitest/vitest.mjs run --project integration
test/automation/pull-requests/growth-guardrails.test.ts` — seven tests
passed.
- The workflow contract also passed all four tests under the official,
SHA-256-verified Node v22.19.0 binary.
- Read-only selection audit confirmed all 75 added event filters have
real-file regression witnesses. All 25 direct production imports of the
live rootless test select both triggers.
- Normal signed-commit and pre-push hooks passed. GitHub verifies all
eight published commits.
- Diff reviewed; no secrets, API keys, or credentials added.

Current candidate: `e64a04e5bb7cff37ee254e4d83469a9340e20c11`. This
integrates canonical `main` at
`14c500d9a1e9b1ab468c030fa205242b422e5eb7` to consume the merged CI
artifact repair in #11644. That repair replaces stale CLI shard reports
after a retry. [Fresh SDK
packaging](https://github.com/NVIDIA/NemoClaw/actions/runs/34798801952)
passed. [CI
34798803879](https://github.com/NVIDIA/NemoClaw/actions/runs/34798803879)
passed on attempt 1, including all 12 CLI shards, coverage aggregation,
and the final gate. Scanning, code quality, and the image/sandbox smoke
checks passed. The PR diff remains limited to the workflow filters and
their existing contract test.

After integration, all four workflow tests and all 52 CI contract/growth
tests passed. The canonical validation surface and 33,702 installed
dependency files matched the independent reference. [Rootless E2E
34798803903](https://github.com/NVIDIA/NemoClaw/actions/runs/34798803903)
passed all 13 phases. All four artifact files were read; both receipt
source revisions match this commit. Artifact 10329969924 has verified
SHA-256
`e175f865ffca7261d20c3ffcd7eaffaff2a5873b2ace07f64b7d2d1e7c38576b`.
[CodeRabbit full
review](#11658 (comment))
completed for this commit with no actionable in-scope findings. All nine
specialists in [Advisor
34799626412](https://github.com/NVIDIA/NemoClaw/actions/runs/34799626412)
completed on attempt 1. Every findings file, full summary, and E2E
recommendation was read. The fixture-coverage finding is inherited and
outside this production-source issue; assertion consolidation is
advisory and conflicts with the existing loop rule. [Complete
dispositions](#11658 (comment))
preserve those findings and the unperformed source-only/main-push
dispatch limitation. No candidate-owned blocking repair remains.

Historical evidence for `a055e5964ff92c8199abaffce7ba1dcd2c9bad50`:
[rootless E2E
34768845805](https://github.com/NVIDIA/NemoClaw/actions/runs/34768845805)
passed all 13 phases, and scanning, quality, and full CodeRabbit review
completed. CI attempt 2 reused a stale failed shard artifact. The
externally requested attempt 3 later cancelled during SDK discovery: the
existing SDK producer was outside the consumer's 100-run lookup window.
Advisor skipped behind the failed gate and produced no specialist
artifacts. These results do not establish success for the new commit.

## Review notes

Prior-commit review: CodeRabbit run
`dc68a73e-0fb7-47d9-a6fb-e4d946f45a73` read the complete
base-to-candidate diff. Its helper-input concern was [withdrawn after
canonical-base
reproduction](#11658 (comment)):
both helpers retain the same PR-false/push-true selection on the base
and candidate, outside this issue’s production-source scope.

Self-review of NVIDIA/NemoClaw at
`e64a04e5bb7cff37ee254e4d83469a9340e20c11` covered the sensitive
`.github/workflows/portable-profile-e2e.yaml` and its existing contract
test. Only path filters and selection assertions change.

All nine specialists' findings, full summaries, and E2E recommendations
from [Advisor run 34767731422, attempt
2](https://github.com/NVIDIA/NemoClaw/actions/runs/34767731422/attempts/2)
were read. The preceding attempt lacked one report because of an Advisor
submission-protocol error; the authorized full retry completed. The
valid destroy, inference-recovery, and direct rootless-input omissions
are repaired here. CodeRabbit's full review of `c76fee3` reported no
actionable code findings; both existing threads are resolved.

The Node API availability finding is disproven by [official Node
v22.19.0
documentation](https://github.com/nodejs/node/blob/v22.19.0/doc/api/path.md#pathmatchesglobpath-pattern)
and the successful minimum-version test. Direct assertions preserve the
repository's test-loop growth rule; no budget or validator was relaxed.

Deterministic tests prove both trigger lists. Published PR execution
supplies commit-bound rootless evidence. An isolated source-only
dispatch experiment has no supported E2E selector and is not claimed. No
test, coverage, review, or identity gate is waived.

---
Signed-off-by: Prekshi Vyas
<[email protected]>

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Tests**
- Expanded automated coverage to verify that relevant portable runtime,
sandbox, lifecycle, registry, CLI, and workflow changes trigger the
appropriate validation workflows.
- Added checks confirming that documentation-only and unrelated
messaging changes do not trigger these workflows.

- **Chores**
- Updated continuous integration path filters to improve validation
coverage for portable-profile changes across pull requests and pushes.
- Included additional runtime, onboarding, cleanup, and workflow-related
paths in validation coverage.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Prekshi Vyas <[email protected]>
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions chore Build, CI, dependency, or tooling maintenance labels Oct 15, 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