Skip to content

fix(ci): restore live audit consumers and readiness fixtures - #200133

Merged
steipete merged 4 commits into
openclaw:mainfrom
steipete:fix/hourly-worker-readiness-fixtures-2518-cf74
Nov 16, 2026
Merged

steipete merged 4 commits into
openclaw:mainfrom
steipete:fix/hourly-worker-readiness-fixtures-2518-cf74

Conversation

@steipete

@steipete steipete commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes hourly dependency-check failures when test consolidation removes the static consumers that previously kept live workflow and worker fixtures visible to the analyzer.

User Impact

There is no user-visible runtime change. The dependency check recognizes real release-recovery and worker execution paths, and the startup fixture continues to verify readiness announcements during shutdown.

Why This Change Was Made

The existing workflow compiler now derives the Stable closeout recovery imports from its actual staged tooling paths. Two directly launched worker fixtures remain explicit entries. Two orphaned test-support modules are removed, and four recovery helpers with only module-local callers become private; the live recovery function and all verification logic remain unchanged.

Main already migrated HTTP readiness in #200193 and startup readiness to stat in #200169. This PR preserves that work and retains only the startup fixture's ordering: await the real stat before holding its result. The caller retirements from #198933/#198936 are preserved by integration, and their helpers are removed only after those retirements.

Evidence

  • The added static/dynamic workflow cases fail on the integrated baseline under Node 24.22.1 and pinned Bun 1.4.4: both report the missing workflow entry while the two existing cases pass.
  • The corrected analyzer-owner file passes all 34 cases on both runtimes. Original startup closing variants pass 2/2 on both; 83 unrelated cases remain skipped. The now-unchanged HTTP fixture was not replayed.
  • pnpm deadcode:unused-files passes production and full-tree scans with 0 entries (163.65 s wall, 318.91 s CPU, 3.53 GB peak RSS).
  • Fresh isolated Codex review of the complete eight-file candidate is clean through P2. Application production LOC is unchanged; the complete diff is net −373 lines.
  • The removal dependency scan exits 1 on 17 unrelated production exports. The canonical export scan passes its script scope and exits 1 on 17 production/109 full-tree exports, exactly matching the retained ec025 hourly findings. No recovery/helper export remains in those findings. This is not an exact-current-parent inherited-failure waiver.
  • Canonical formatting passes after a two-line-wrap correction. The required staged changed check against aaba exits 1: 27 gates pass and only the same dead-export scan fails (1041.92 s wall). Core/test-root types and core/scripts/changed-test lint pass. Exact-head CI run 43956793661 completed successfully: 51 jobs passed, 27 skipped, zero failed, including openclaw/ci-gate. Final-head ClawSweeper review of bcca6144f7320a3c3988e9f0c4b2feea61f8b11e has zero findings and no unchecked items.

Timing figures describe local proof cost, not a production performance claim. No release was executed, and no fix is claimed for the separate key-save browser timing failure.

Declare the two live spawned test fixtures introduced by openclaw#199560 as exact Knip roots. Hold the current asynchronous executable stat in the HTTP readiness test after openclaw#200038 retired its access call. Preserve all readiness assertions and production behavior.
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Nov 16, 2026
@clawsweeper

clawsweeper Bot commented Nov 16, 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.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS labels Nov 16, 2026
@steipete
steipete marked this pull request as ready for review November 16, 2026 14:23
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 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-16T21:13:06.385063Z bcca614 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.

@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. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 16, 2026
@clawsweeper

clawsweeper Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR models live workflow and worker consumers in Knip, removes orphaned helpers, and preserves readiness-test ordering.

Example: Stable closeout dynamically imports verifyStablePublishRecovery.

  • Before: Knip misses the workflow consumer and reports the live export as unused.
  • After: The existing workflow compiler derives the import edge from the workflow source.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused, source-supported repair with useful reported regression coverage and no findings; broad validation remains incomplete.
Proof confidence 🦐 gold shrimp (3/6) This audit and test maintenance has no user-visible runtime change; reported compiler regressions and startup variants support the changed paths, with hosted CI still pending.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Hourly dependency checks flag live workflow code and spawned fixtures as unused after test consolidation.
Reason: The maintainer-authored direction restores accurate audit reachability without exemptions, new machinery, or application behavior changes.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR repairs concrete audit failures through the existing owners, and review found no actionable introduced defect; exact-head CI remains pending.

Priority: P2
Reviewed head: bcca6144f7320a3c3988e9f0c4b2feea61f8b11e

Before merge

None.

Findings

None.

Agent review details

How this fits together

Repository dependency audits consume source files, workflow imports, and executable roots to report unused files and exports; readiness fixtures separately exercise Gateway startup announcements.

flowchart TD
  A[Release workflow source] --> B[Existing workflow compiler]
  B --> D[Knip dependency graph]
  C[Explicit worker fixture roots] --> D
  D --> E[Unused file and export checks]
  F[Readiness fixture] --> G[Gateway readiness announcer]
Loading

Technical review

Best possible solution:

Retain this focused repair through the existing analyzer owner and complete the normal exact-head CI gate.

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

Current main lacks the closeout workflow edge despite its actual imports and omits the two path-launched fixture roots; the author also supplies targeted before-and-after test results.

Is this the best way to solve the issue?

The patch is the smallest complete repair: extend the existing source-derived compiler, declare exact executable roots, remove unreachable helpers, and preserve the existing readiness assertions.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Workflow-consumer compiler keeps the original intent (164210c: Expose actual workflow imports to strict auditing rather than exempting their exports; release publication followed this approach in fix: remove internal exports blocking dependency checks #172956.)
  • Recovery helper exports keeps the original intent (0165532: Verify split-publication recovery with exact publisher identity and artifact checks; subsequent consolidation retired the external test callers, and this patch preserves every verification operation.)
  • Deleted support modules keeps the original intent (test: consolidate redundant coverage (198793, part 2) #198936: Merged consolidation deliberately retired their consuming suites; the integrated base leaves these support exports unreferenced.)
  • Startup readiness fixture keeps the original intent (3c512c5: Main migrated the fixture to asynchronous stat; this patch awaits the real operation before delaying its result while retaining both close-state assertions.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 164210c adds config/knip.config.ts:44 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 164210c355ea; files: config/knip.config.ts)
  • Vincent Koc: Raw commit 35b497f adds config/knip.config.ts:127 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 35b497fbeb8f; files: config/knip.config.ts)

PR surface

Tests -389, Other +16. Total -373 across 8 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 15 404 -389
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 4 23 7 +16
Total 8 38 411 -373

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:

No label changes.

Label justifications:

  • P2: Concrete dependency-audit and readiness-fixture failures affect development validation with limited runtime blast radius.
  • 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-16T14:39:24.157Z sha 29dac6e :: needs maintainer review before merge. :: none

Reviewed November 16, 2026, 4:13 PM ET / 21:13 UTC (Revision 2).

@steipete steipete changed the title fix(ci): restore hourly worker and readiness checks fix(ci): restore live audit consumers and readiness fixtures Nov 16, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M and removed size: XS labels Nov 16, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

The correction is now on bcca6144f7320a3c3988e9f0c4b2feea61f8b11e. It preserves the main readiness migrations and extends the existing workflow-consumer compiler for Stable closeout, removes two helpers whose callers were retired, and makes four recovery helpers private without changing verification behavior.

The new workflow cases reproduce the missing entry on the integrated baseline under Node and pinned Bun; the full 34-case owner and both original startup variants pass on both runtimes. Production/full-tree unused-file scans pass. The required changed check passes 27 gates and fails only on the separately documented 17 production/109 full-tree export findings; no inherited-CI waiver is claimed. The body now records the final scope, peer credit, and exact validation limits.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete
steipete merged commit ba92f30 into openclaw:main Nov 16, 2026
149 of 151 checks passed
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@steipete
steipete deleted the fix/hourly-worker-readiness-fixtures-2518-cf74 branch November 16, 2026 21:44
RomneyDa added a commit that referenced this pull request Nov 16, 2026
Merge the bounded main repair from #200133. Preserve the registry batching implementation and proof inputs. Use direct match access for the integrated workflow-consumer filter to satisfy the existing unreadable-destructuring lint rule without changing its behavior.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 17, 2026
…w#200133)

* fix(ci): restore worker fixture and readiness checks

Declare the two live spawned test fixtures introduced by openclaw#199560 as exact Knip roots. Hold the current asynchronous executable stat in the HTTP readiness test after openclaw#200038 retired its access call. Preserve all readiness assertions and production behavior.

* fix(test): hold current runtime preparation during startup readiness

* fix(ci): complete live workflow consumer graph after consolidation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:full Keep ordinary native-locale CI selection on the next PR run. gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M 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