Skip to content

test(ci): validate timing fields through the schema owner - #134563

Merged
steipete merged 1 commit into
mainfrom
codex/test-ci-timing-schema-boundary
Sep 1, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/test-ci-timing-schema-boundary

Conversation

@steipete

@steipete steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Forty-four malformed timing inputs and two valid boundary inputs currently replace filesystem exports and reload the cached file loader to exercise pure field validation. Move those cases to the existing schema owner. Keep the four file-error classes and the complete read-once/cache/disable integration case on the loader.

All 76 cases remain. Loader imports drop from 51 to 5 and registry resets from 102 to 10. Real reporter subprocesses, CLI write/dry-run/idempotence checks, and timing-refit cases are unchanged. Production code is unchanged.

Validation: all 76 timing cases and six planner measurement/partition cases pass before and after. Full changed checks pass; independent Codex autoreview is clean. Test delta is +58/-50 after formatting. No elapsed speedup is claimed.

@clawsweeper

clawsweeper Bot commented Sep 1, 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 size: S maintainer Maintainer-authored PR labels Sep 1, 2026
@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 Sep 1, 2026
@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 8:25 PM ET / September 1, 2026, 00:25 UTC.

ClawSweeper review

What this changes

The PR moves malformed CI timing-field cases into direct schema tests and leaves file-read, parse, cache, and disable-switch cases with the committed timing loader.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

No blocking correctness issue found. This maintainer-labeled PR places field-validation cases at the schema boundary while retaining loader-specific fallback and cache coverage; keep it open for normal exact-head CI and maintainer handling.

Priority: P3
Reviewed head: 25e4de0e7c2b1c26938193787e6a600398e480ad

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, owner-boundary test refactor with retained integration coverage and no actionable defect found.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored, test-only refactor does not change user-visible runtime behavior; source review confirms that the production schema, loader, and downstream callers are unchanged.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored, test-only refactor does not change user-visible runtime behavior; source review confirms that the production schema, loader, and downstream callers are unchanged.
Evidence reviewed 6 items Schema owner: The schema is the direct owner of document validity: it rejects invalid shapes by throwing from parse, so the moved malformed-field cases exercise the owner rather than the loader's catch-all fallback.
Loader contract retained: The loader still catches read, JSON-parse, and schema failures as one fallback boundary; the retained cases cover missing, unreadable, truncated, and wrong-version files plus read-once and disable-switch behavior.
Downstream callers: The UI E2E sequencer and compact planner consume the loader's validated-or-empty return values, so this test-only change does not alter their runtime interface.
Findings None None.
Security None None.

How this fits together

Committed CI timing JSON is parsed by a loader and supplies advisory duration weights to UI-test sequencing and compact test planning. The schema owns validation of the timing document, while the loader owns filesystem failure handling and cached fallback behavior.

flowchart LR
  A[Committed timing JSON] --> B[Timing file loader]
  B --> C[Timing schema]
  C --> D[Validated timing data]
  D --> E[UI test sequencer]
  D --> F[Compact test planner]
Loading

Before merge

  • Complete next step (P2) - No repair lane is needed: this is a clean, maintainer-owned test refactor awaiting normal PR completion.
Agent review details

Security

None.

PR surface

Tests +8. Total +8 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 58 50 +8
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 58 50 +8

Review metrics

Metric Value Why it matters
Production vs. test delta production 0; tests +58/-50 (net +8) All changed lines are a test reorganization; no runtime, configuration, or persistent-data behavior changes.

Technical review

Best possible solution:

Land the focused boundary-preserving test refactor after the exact-head checks complete successfully.

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

Not applicable: this PR reorganizes coverage for existing CI timing validation rather than reporting a runtime defect.

Is this the best way to solve the issue?

Yes. Direct schema parsing tests the field-validation contract at its owner, while the loader tests remain focused on the distinct file-read, parse, cache, and disable behaviors.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 5dd4c6e3b087.

Labels

Label changes:

  • add P3: This is a focused test-maintenance refactor with no production behavior change.
  • 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: This maintainer-authored, test-only refactor does not change user-visible runtime behavior; source review confirms that the production schema, loader, and downstream callers are unchanged.

Label justifications:

  • P3: This is a focused test-maintenance refactor with no production behavior change.
  • 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: This maintainer-authored, test-only refactor does not change user-visible runtime behavior; source review confirms that the production schema, loader, and downstream callers are unchanged.

Evidence

What I checked:

  • Schema owner: The schema is the direct owner of document validity: it rejects invalid shapes by throwing from parse, so the moved malformed-field cases exercise the owner rather than the loader's catch-all fallback. (scripts/lib/ci-test-timings-schema.mts:69, 25e4de0e7c2b)
  • Loader contract retained: The loader still catches read, JSON-parse, and schema failures as one fallback boundary; the retained cases cover missing, unreadable, truncated, and wrong-version files plus read-once and disable-switch behavior. (scripts/lib/ci-test-timings.mts:9, 25e4de0e7c2b)
  • Downstream callers: The UI E2E sequencer and compact planner consume the loader's validated-or-empty return values, so this test-only change does not alter their runtime interface. (scripts/lib/ci-node-test-plan.mts:621, 25e4de0e7c2b)
  • Introduced test change: The verified merge-base-to-head patch only reorganizes test assertions: malformed timing fields now call the schema directly and loader cases retain file-level failure inputs. (test/scripts/ci-test-timings.test.ts:512, 25e4de0e7c2b)
  • Current-main context: The fetched current-main comparison has no changes to the timing schema, loader, or this test relative to the pinned base, so the reviewed owner boundary is current-main behavior plus this PR's test-only delta. (test/scripts/ci-test-timings.test.ts:587, 5dd4c6e3b087)
  • Area history: The immediately preceding merged timing work is commit 268833f, which is the recent feature-history context for this test surface; shallow/promisor history prevented verified source-line introduction attribution. (test/scripts/ci-test-timings.test.ts:512, 268833fc63f1)

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 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Maintainer review complete at 25e4de0. The latest ClawSweeper review has no actionable findings or additional Rank-up moves; its remaining next step is normal maintainer completion. Native prepare verified the hosted gates. Local proof remains 76 timing cases plus six downstream planner cases before and after, with the loader's file/cache/fallback boundaries retained. Landing this reviewed head.

@steipete
steipete merged commit 2fb27b8 into main Sep 1, 2026
163 checks passed
@steipete
steipete deleted the codex/test-ci-timing-schema-boundary branch September 1, 2026 00:47
@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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