Skip to content

fix: avoid full app builds in worker ownership tests - #197729

Merged
steipete merged 4 commits into
mainfrom
fix/2430-tooling-ci-fixtures-final
Nov 12, 2026
Merged

steipete merged 4 commits into
mainfrom
fix/2430-tooling-ci-fixtures-final

Conversation

@steipete

@steipete steipete commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an hourly full-CI timeout where one worker-ownership test compiles the full application before it can exercise its intended process-lifecycle assertions.

User Impact

No runtime behavior changes. The worker-ownership matrix retains its real process, IPC, sharing, borrowing, generation and cleanup checks.

Why This Change Was Made

The matrix introduced in #146353 (94a56b2f78fbbd80e0af4ae95ab9e03b8ec8a375) used a full application compile for its parallel/shared row, while the other rows already used a controlled compiler. Use that existing compiler consistently and assert that the shared row produces one compiler receipt.

Actual compiler, source-freshness, altered-output, build-error and compiler-lifetime coverage remains in the separate vitest-worker-artifacts.test.ts owner suite. No production code, timeout, configuration, cache, or test-only production seam changes. Production LOC delta 0; test delta −3, in one existing file.

Evidence

Original failure: full CI 43204708317, job 131137466845, exact head fc445e60c9e32b9a0330b17e7884ea5c9816312c.

  • Original local matrix reaches an outer 120-second watchdog during the full-compiler row; CI reaches the inner 120-second case deadline. These are distinct observations. A bounded diagnostic completes the actual compiler's 20,021 inputs/24,667 outputs in 64.175 seconds (95.551-second case, 7.6 GB peak RSS). This identifies redundant work, not the original runner's precise blocked phase or a production performance gain.
  • Candidate matrix and retention: 6/6 pass, preserving all original ownership assertions. The formerly exceptional row takes 28.713 seconds. A subsequent main-integration replay of that affected row passes in 24.071 seconds.
  • Focused types/lint/format and required pnpm check:changed passed, including all three unused-export scans with zero entries.
  • Final source is integrated with main 9426950e80d05d9cf62b8efa4a13c8b0595ff5d5. The remaining test, compiler/runner owners, runtime declarations and dependency inputs are unchanged from the passing replay; unrelated peer repairs are retained exactly as landed. Fresh isolated Codex P2 review of the final one-file diff is scoped-clean.

Landing uses native scripts/pr; E2BIG hydration fix #197593 is already on main. No fallback, timeout increase, CI rerun-to-green or inherited-red exception is requested. Final scheduled-main qualification remains a separate lane obligation.

Retain explicit private-network denial and host suppression of retired results after an admitted transport completes. Attribute the stale expectations to #197615; all eight provider integration cases pass.
@clawsweeper

clawsweeper Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XS labels Nov 12, 2026
Resolve the Git-admission and Decision fixture overlaps using exact main versions from #197709 and #197718. The remaining two-file worker fixture diff passes fresh focused integration proof and isolated P2 review.
@openclaw-barnacle openclaw-barnacle Bot removed the agents Agent runtime and tooling label Nov 12, 2026
@steipete steipete changed the title fix: repair hourly CI fixture boundaries fix: keep worker CI fixtures at their owning boundaries Nov 12, 2026
@steipete
steipete marked this pull request as ready for review November 12, 2026 12:43
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T13:11:55.806236Z 016763e New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Please review final head a97af0c. The final diff contains only the worker-group compiler fixture and logger-worker module graph fixture; equivalent Git and Decision repairs are already on main. Focused integration proof and independent P2 review are complete.

@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 12, 2026
@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR uses the existing controlled compiler for every worker-ownership matrix row and checks the shared row’s compiler receipt count.

Example: The ownership matrix runs with parallelism=2 and shared=true.

  • Before: The row compiles the application before checking ownership and cleanup.
  • After: The row uses the controlled compiler and asserts one compilation while retaining its process, generation-sharing, and cleanup checks.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-supported test repair with reported process-harness validation; exact-head broad CI is still pending.
Proof confidence 🦐 gold shrimp (3/6) This changes test setup only; the public body reports the six-case process matrix passing and an integration replay of the affected row.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Full CI can time out while an ownership test performs an unrelated application compilation.
Reason: The maintainer-authored direction removes redundant work while preserving the matrix’s distinct process-lifecycle contracts.

Merge readiness

✅ Ready for maintainer review

This PR makes a focused, justified test-fixture repair without weakening the ownership assertions. No actionable findings; exact-head CI remains pending.

Priority: P2
Reviewed head: 016763e26a2c538f849852780437827411c3c04f

Before merge

None.

Findings

None.

Agent review details

How this fits together

The CI shard runner lends compiled worker generations to test groups; this suite exercises borrowing and cleanup using real child processes and IPC.

flowchart TD
  A[Ownership matrix] --> B[CI shard runner]
  B --> C[Worker generation owner]
  C --> D[Controlled compiler]
  C --> E[Test group borrowers]
  E --> F[Sharing and cleanup assertions]
Loading

Technical review

Best possible solution:

Keep lifecycle checks on the existing controlled compiler while retaining real compilation and integrity coverage in the compiler-owner suite.

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

Source confirms that the shared parallel row alone selects the full compiler; the reported timeout was not independently rerun during this read-only review.

Is this the best way to solve the issue?

This is the smallest complete fixture repair: reuse the existing compiler substitution, preserve lifecycle assertions, and leave compilation correctness with its established owner.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Full application compilation in the shared parallel ownership row changes intended behavior with a stated reason (94a56b2: The original sharing PR intentionally retained one representative full-graph matrix test; later consolidation carried that exception forward.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

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

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

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.

Label justifications:

  • P2: Repairs a reported full-CI test timeout without changing product runtime behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-12T12:47:40.571Z sha a97af0c :: needs maintainer review before merge. :: none

Reviewed November 12, 2026, 8:15 AM ET / 13:15 UTC (Revision 2).

Resolve the overlap with #197728 using its exact main version, including logger and global lifecycle cleanup. Only the previously tested and independently reviewed worker-group compiler fixture remains in this PR.
@steipete steipete changed the title fix: keep worker CI fixtures at their owning boundaries fix: avoid full app builds in worker ownership tests Nov 12, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Final head 016763e retains peer #197728's exact landed admission-fixture cleanup. The remaining diff is only the already-tested worker-ownership compiler fixture, net −3 test lines with no production changes. Fresh isolated P2 review is clean; the prior review had no open items.

@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 12, 2026
@clawsweeper clawsweeper Bot removed clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 12, 2026
@steipete
steipete merged commit d1a2ab2 into main Nov 12, 2026
96 checks passed
@steipete
steipete deleted the fix/2430-tooling-ci-fixtures-final branch November 12, 2026 13:52
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 13, 2026
* test: repair hourly CI fixture boundaries

* test: align Decision fixtures with request-start admission

Retain explicit private-network denial and host suppression of retired results after an admitted transport completes. Attribute the stale expectations to openclaw#197615; all eight provider integration cases pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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