Skip to content

ci: report stale native Bun qualifications - #166593

Merged
steipete merged 1 commit into
mainfrom
ci/w202-native-bun-staleness
Oct 7, 2026
Merged

steipete merged 1 commit into
mainfrom
ci/w202-native-bun-staleness

Conversation

@steipete

@steipete steipete commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Native Bun qualifications can become stale after shared setup, test, or fixture-helper changes, silently returning tests to Vitest with no CI explanation.

User Impact

CI preflight now emits one non-blocking notice per workflow attempt and a job summary listing stale entries and changed or unreadable inputs. Runtime selection, fallback coverage, matrix outputs and job success remain unchanged.

Why This Change Was Made

The runtime owner inspects its existing qualification data using the same source-hash reader as admission. It reads each unique input once within the inspection and retains fresh reads across separate calls. Reporting happens once in the manifest builder, outside shard loops; local planning, healthy qualifications and historical targets without the optional inspector remain quiet. Inspection or summary-writing failures remain advisory.

This follows the 348-entry refresh in #166572 and makes future drift visible without turning it into a blocking PR gate.

Evidence

  • Nine focused regressions pass on Node 24.21 and pinned Bun 667c: shared/test/helper drift, missing inputs, deduplicated reads, same-process freshness, unchanged fallback, one report across matrix rows, escaped paths, and non-blocking reporting failures.
  • Existing routing and manifest-planning regression: 797 cases pass on Node. All 806 selected cases pass on Bun, including the new regressions.
  • Final focused two-file run: Node 12.74s, Bun 14.28s, one worker, including automatic owner discovery. Individually, the new files took 3.00s and 2.89s on Node; case-body totals were 0.066s and 1.056s.
  • One inspection of the actual 348-entry manifest read 366 unique inputs / 981,625 bytes in 67.9ms on local Node 24.21 (Darwin arm64), after the already-existing policy import. This is an incremental local observation, not billed CI time. No new CI jobs, workers or consumer runs are added.

Required changed checks passed, including types, lint, export guards and formatting; import-cycle and whitespace checks passed. Independent review is scoped-clean at P2.

Inspect recorded qualification inputs once per CI preflight attempt and report stale entries in one advisory notice and job summary. Preserve runtime selection, fallback coverage, historical-target compatibility, and job outcomes. Add focused drift, deduplication, escaping, and non-blocking failure regressions.
@clawsweeper

clawsweeper Bot commented Oct 7, 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 docs Improvements or additions to documentation scripts Repository scripts size: M labels Oct 7, 2026
@steipete
steipete marked this pull request as ready for review October 7, 2026 13:11
@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 Oct 7, 2026
@clawsweeper

clawsweeper Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 7, 2026, 9:18 AM ET / 13:18 UTC.

ClawSweeper review

What this changes

CI preflight adds an advisory notice and job summary when recorded native Bun test qualifications no longer match their source inputs.

Merge readiness

✅ Ready for maintainer review

This remains useful follow-up work: current main silently falls back when native Bun qualifications become stale. No actionable correctness or security defect was found in the pinned patch.

Priority: P3
Reviewed head: 80d1403229afc488212c6ce3130fafcd7f285c39

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable CI diagnostic change with relevant regression coverage and no identified blocking defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies maintainer authorship, so the external-contributor proof gate does not apply. The body reports an actual-manifest inspection and focused Node/Bun regressions; these support the fingerprint owner but are not claimed as observed stale-report runtime proof. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies maintainer authorship, so the external-contributor proof gate does not apply. The body reports an actual-manifest inspection and focused Node/Bun regressions; these support the fingerprint owner but are not claimed as observed stale-report runtime proof. No stored-data contract changes.
Evidence reviewed 7 items Pinned introduction and merge result: Reviewed the merge-base-to-head delta. The verified test merge has the pinned main parent followed by the exact PR head; its result preserves the same introduced scope.
Single fingerprint owner: The inspection shares the existing source-hash reader, deduplicates reads within each call, checks every recorded input, and keeps its maps local so later calls observe edits. Existing qualification admission and Vitest fallback retain their behavior.
Advisory reporting boundary: Reporting runs after manifest outputs, outside matrix loops, only under GitHub Actions and when the target exports the optional inspector. Paths are HTML-escaped in the summary and excluded from workflow-command notices; inspection and report-writing failures are caught.
Findings None None.
Security None None.

How this fits together

OpenClaw's CI runtime selector compares test, setup, and helper files with recorded qualification fingerprints before choosing native Bun or Vitest. The new inspection reports stale fingerprints through the existing preflight manifest builder.

flowchart TD
  A[Recorded qualifications] --> C[Fingerprint inspection]
  B[Test and helper files] --> C
  C --> D{Stale inputs?}
  D -->|Yes| E[Notice and job summary]
  D -->|No| F[Quiet preflight]
  B --> G[Existing runtime selection]
  A --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +261, Docs +6, Other +82. Total +349 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 263 2 +261
Docs 1 6 0 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 2 92 10 +82
Total 6 361 12 +349

Review metrics

Metric Value Why it matters
Production versus regression growth production/tooling +82; tests/test support +261 Production growth implements the owner inspection and advisory reporter; regression growth covers distinct drift and reporting-failure contracts.

Technical review

Best possible solution:

Keep qualification admission authoritative and expose drift through one bounded, non-blocking preflight report.

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

Not applicable as a product bug reproduction; source inspection establishes the existing silent fallback and the new diagnostic path.

Is this the best way to solve the issue?

Yes. Reusing the qualification owner and reporting once in preflight is a narrow solution that preserves admission and fallback behavior.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This improves internal CI diagnostics while retaining runtime selection, coverage, and job outcomes.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied repository state identifies maintainer authorship, so the external-contributor proof gate does not apply. The body reports an actual-manifest inspection and focused Node/Bun regressions; these support the fingerprint owner but are not claimed as observed stale-report runtime proof. No stored-data contract changes.

Label justifications:

  • P3: This improves internal CI diagnostics while retaining runtime selection, coverage, and job outcomes.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied repository state identifies maintainer authorship, so the external-contributor proof gate does not apply. The body reports an actual-manifest inspection and focused Node/Bun regressions; these support the fingerprint owner but are not claimed as observed stale-report runtime proof. No stored-data contract changes.

Evidence

What I checked:

  • Pinned introduction and merge result: Reviewed the merge-base-to-head delta. The verified test merge has the pinned main parent followed by the exact PR head; its result preserves the same introduced scope. (80d1403229af)
  • Single fingerprint owner: The inspection shares the existing source-hash reader, deduplicates reads within each call, checks every recorded input, and keeps its maps local so later calls observe edits. Existing qualification admission and Vitest fallback retain their behavior. (scripts/lib/ci-test-runtime.mts:375, 80d1403229af)
  • Advisory reporting boundary: Reporting runs after manifest outputs, outside matrix loops, only under GitHub Actions and when the target exports the optional inspector. Paths are HTML-escaped in the summary and excluded from workflow-command notices; inspection and report-writing failures are caught. (scripts/ci-build-manifest.mjs:1928, 80d1403229af)
  • Still necessary on main: Pinned current main contains fingerprint-based admission but no inspection export or stale-qualification notice. The prior merged refresh explicitly recommends this separate advisory follow-up: ci: admit qualified Bun CLI and embedded-run consumers #166572. (scripts/lib/ci-test-runtime.mts:360, 7a75498beb6e)
  • Focused regression contracts: The new tests cover shared/test/helper drift, unreadable inputs, deduplicated reads, same-process freshness, unchanged fallback, one notice across matrix rows, escaping, optional historical exports, and advisory failures. The captured PR body reports nine focused cases and Node/Bun validation; this review did not execute tests. (test/scripts/ci-native-bun-notice.test.ts:38, 80d1403229af)
  • Routing history: Available main history repeatedly records Peter Steinberger's work on the runtime selector, including the qualification refresh and earlier Bun admissions. GitHub commit metadata verifies steipete as the author of the merged refresh; this establishes a routing connection beyond the proposed branch. (scripts/lib/ci-test-runtime.mts, 986a594e3da3)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit d5b7f82 into main Oct 7, 2026
179 of 180 checks passed
@steipete
steipete deleted the ci/w202-native-bun-staleness branch October 7, 2026 13:28
@steipete

steipete commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 8, 2026
Inspect recorded qualification inputs once per CI preflight attempt and report stale entries in one advisory notice and job summary. Preserve runtime selection, fallback coverage, historical-target compatibility, and job outcomes. Add focused drift, deduplication, escaping, and non-blocking failure regressions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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