Skip to content

test(ui): simplify skipped artifact inventory proof - #192946

Merged
roboclaw-bot merged 1 commit into
mainfrom
openclaw/renderer-artifact-inventory-reduction-20261104
Nov 5, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
openclaw/renderer-artifact-inventory-reduction-20261104

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Summary

Simplify redundant Control UI E2E ownership proof without dropping any ownership cases or contracts.

The artificial skipped-plus-artifact union repeats checks already covered by the empty skipped-files assertion and the exact artifact inventory assertion. Replace its only additional contract with a direct expect(skipped.shards.flat()).toEqual([]) beside the skipped-files assertion. Nonempty skipped shards still fail; artifact duplicates or missing files still fail the retained exact-inventory check.

User Impact

No user-visible or production behavior change. This test-only supporting cleanup removes exactly 7 real LF lines, retaining all 15 cases and leaving the scalar baseline and allocations unchanged.

Related: #190823. This is independent shared-test cleanup, not a fix for the original renderer cause. The 77c263b9fa112ce0e1657f6cbf56016092cd1077 base inherited seven lines of test-budget debt (6,467,640 against a 6,467,633 ceiling); this standalone cleanup leaves 6,467,633 / 6,467,633.

Requested by @galiniliev; the commit includes the co-author credit.

Validation

  • Isolated worktree install with pnpm install --frozen-lockfile; no reuse or reconciliation of the renderer worktree dependencies.
  • Full existing ownership suite before and after: 15/15 passed; Vitest 18.81s / 18.83s, wrapper 20.02s / 19.80s.
  • pnpm tsgo:test:root: all four root-test typecheck shards passed.
  • Targeted lint, single-file format check, and git diff --check: passed.
  • Official test-line ratchet on the committed head: 6,467,633 lines / 6,467,633 ceiling / 0 slack. No baseline or allocation edits.
  • Canonical isolated local autoreview, P0-P2: completed with no findings, verdict "patch is correct." The reviewer assessed source and supplied execution evidence; it did not execute the tests independently.

@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 4, 2026
@clawsweeper

clawsweeper Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces a redundant combined inventory assertion with a direct check that skipped shards contain no files.

Example: The skipped selection incorrectly includes ui/src/e2e/service-worker-update.e2e.test.ts in a shard.

  • Before: The combined skipped-and-artifact inventory assertion fails.
  • After: The direct empty-shards assertion fails, while artifact inventory checks remain unchanged.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, source-verifiable test simplification with reported before-and-after suite validation and successful exact-head gates.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-authored, test-only cleanup changes no shipped behavior; the supplied before-and-after ownership-suite results support the preserved test contract.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
Reason: The maintainer-authored direction removes redundant test machinery while preserving every distinct ownership case and leaving production behavior unchanged.

Merge readiness

✅ Ready for maintainer review

This PR is a correct, focused test simplification that preserves the ownership contracts; no actionable findings remain.

Priority: P3
Reviewed head: 955120ee8d0bd5cc55321beca9b7788e9286be26

Before merge

None.

Findings

None.

Agent review details

How this fits together

The root ownership suite loads the Control UI Vitest configuration, probes native discovery and sharding with resource fixtures, and checks file ownership, scheduling, and cleanup.

flowchart LR
  A[Ownership test] --> B[Vitest configuration]
  B --> C[Native discovery]
  C --> D[Shard sequencer]
  D --> E[Ownership report]
  E --> F[Inventory assertions]
Loading

Technical review

Best possible solution:

Retain the direct empty-shards assertion and the existing exact artifact inventory check.

Do we have a high-confidence way to reproduce the issue?

No product defect is claimed; source inspection establishes equivalent assertion coverage, and no target code was executed during this read-only review.

Is this the best way to solve the issue?

This is the smallest complete simplification: the artifact inventory already supplies the required entries, so asserting an empty skipped contribution preserves the combined check without constructing another report.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 6efce589ab1a.

Provenance checked

  • Production-artifact ownership assertions keeps the original intent (a302730: Delegate production-artifact checks to the existing build producer while preserving standalone, skipped, reuse, and filtered-selection contracts.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests -7. Total -7 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 1 8 -7
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 8 -7

Labels

Label changes:

  • add P3: This is a behavior-preserving cleanup of supporting test assertions.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a behavior-preserving cleanup of supporting test assertions.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 4, 2026, 1:58 PM ET / 18:58 UTC.

@roboclaw-bot
roboclaw-bot merged commit d755a99 into main Nov 5, 2026
79 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/renderer-artifact-inventory-reduction-20261104 branch November 5, 2026 05:08
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

roboclaw-bot added a commit that referenced this pull request Nov 5, 2026
Merge the verified #192946 landing and current native test ownership. Preserve the independently reviewed cache repair and manifest consolidation. Focused browser, ownership, archive and manifest checks pass; inherited 117-line main budget debt remains explicitly recorded, with no ceiling or allocation inflation.

Co-authored-by: galiniliev <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant