Skip to content

test(ci): report coverage by test layer and combined profiles - #14147

Closed
sandl99 wants to merge 4 commits into
v1from
test/v1-layer-coverage
Closed

sandl99 wants to merge 4 commits into
v1from
test/v1-layer-coverage

Conversation

@sandl99

@sandl99 sandl99 commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Failure

The v1 bundle workflow records test results but does not measure code coverage across test layers. The local coverage alias omits contract, system integration, and live E2E execution, whose prebuilt bundles have no counters.

Decision

Add a separate Linux coverage workflow that builds instrumented tests and a bundle, runs the existing unit, contract, integration, and Docker/Kind suites, and reports each layer plus their counter union. All reports use the same debug and release objects. Coverage builds forward only the LLVM profile path through the SDK child-environment filter; ordinary builds keep the platform-only filter.

Use continuous profiles merged online by binary to retain counters from terminated providers and bound disk use. A startup probe verifies killed-process collection. Strict LLVM validation rejects malformed profiles. Archive live tests and remove compiler intermediates before image builds, preserve early reports, and upload only JSON reports and compacted profiles for 14 days. No bundle or image is published.

Scope is host-side Rust execution on linux_amd64, excluding private E2E fixtures, vendored code, workload-image processes, and hosted/remote scenarios. Branch coverage and thresholds are unchanged. The workflow runs on PRs changing its definition and supports dispatch when GitHub makes the workflow available.

Validation

Current candidate: 7755ccfd7234418beefe4cf11f0c1c10d619c29f, based on v1 b7d25f04b502134aea10c2c62ea01884c1d9e161.

  • Standard CI: all four platform gates passed, including Docker/Kind on both Linux architectures.
  • Coverage run: 1,813 unit tests, four doctests, 59 contracts, 39 integration tests, seven Docker tests, and five Kind tests passed. Collection, reports, archive/pruning, and both uploads passed.
  • The Linux startup probe retained a nonzero function counter after SIGKILL and used one profile for 17 executions.
  • All five reports have identical 330-file scopes and per-file denominators, including after compiler pruning. Overall coverage merges counters and counts shared lines once; the union covers every line covered by each layer.
Layer Lines Functions Regions
Unit 52,071/60,588 (85.94%) 5,288/6,364 (83.09%) 79,195/94,468 (83.83%)
Contract 17,446/60,588 (28.79%) 1,992/6,364 (31.30%) 25,862/94,468 (27.38%)
Integration 21,758/60,588 (35.91%) 2,419/6,364 (38.01%) 32,377/94,468 (34.27%)
E2E 20,471/60,588 (33.79%) 2,301/6,364 (36.16%) 29,939/94,468 (31.69%)
Overall union 55,393/60,588 (91.43%) 5,673/6,364 (89.14%) 84,577/94,468 (89.53%)

Local validation: reproduced missing bundle counters and dropped SDK profile propagation before their fixes; 130 build-tool tests passed with two intentionally ignored; SDK tests passed in ordinary and coverage builds (212 each); E2E test compilation, Clippy, formatting, and Fern checks passed. All seven workflow policy/parser tests and ten shell syntax checks passed after the collector repair. LLVM smoke checks preserved counters and report totals through compaction and compiler pruning.

@sandl99

sandl99 commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness recorded Codex CLI 0.166.0, VS Code Inspected the local authoring record; its task and branch activity match this PR.
Skills recorded nemoclaw-maintainer-e2e; network-cli-outside-sandbox; nemoclaw-contributor-create-pr (v1); test-driven-development (v1); nemoclaw-maintainer-audit-e2e-assertions (read) Complete skill reads through the cutoff; catalog descriptions excluded.
Instruction files partial Root AGENTS.md (injected and v1 read); WRITING.md (main and v1); development reference; Git/GitHub hard-stop; main E2E run reference; shared documentation-writing contract; v1 documentation contributor guide; PR and session-report templates Complete reads/injection observed for these files. One unrelated documentation read was truncated and is excluded. Startup instructions outside the retained record cannot be inventoried.
Tool calls partial Wrappers: exec 53, request_user_input_async 1, sleep 4. Observable nested calls: exec_command 74, write_stdin 10, apply_patch 5 Includes attempted calls through cutoff. Nested counts use explicit calls in recorded orchestration code, not independent runtime telemetry; wrapper and nested counts are separate.
Session window recorded 2026-11-03T12:13:56Z to 2026-11-03T12:35:21Z; 21 min 25 s including idle time Session metadata start through authoring-record cutoff. Later validation/publication activity is outside this opening snapshot.
Compactions recorded 0 No compaction events in the inspected authoring record through cutoff.
Models recorded gpt-6.1-sol Recorded turn context; no model changes through cutoff.
Reasoning levels recorded high Recorded turn context; no effort changes through cutoff.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

@sandl99
sandl99 marked this pull request as draft November 3, 2026 14:28
@copy-pr-bot

copy-pr-bot Bot commented Nov 3, 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.

@sandl99
sandl99 marked this pull request as ready for review November 3, 2026 15:27
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: docs Documentation, examples, guides, or docs build area: e2e End-to-end tests, nightly failures, or validation infrastructure area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance v1 NemoClaw v1 branch labels Nov 3, 2026
@sandl99 sandl99 closed this Nov 4, 2026
@cv
cv deleted the test/v1-layer-coverage branch November 21, 2026 20:45
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 area: docs Documentation, examples, guides, or docs build area: e2e End-to-end tests, nightly failures, or validation infrastructure area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants