Repository navigation
ci: report stale native Bun qualifications - #166593
Conversation
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.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 7, 2026, 9:18 AM ET / 13:18 UTC. ClawSweeper reviewWhat this changesCI 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 Review scores
Verification
How this fits togetherOpenClaw'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
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +261, Docs +6, Other +82. Total +349 across 6 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
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.
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
Required changed checks passed, including types, lint, export guards and formatting; import-cycle and whitespace checks passed. Independent review is scoped-clean at P2.