Skip to content

fix(ci): avoid parsing unmatched test consumer sources - #160507

Closed
steipete wants to merge 1 commit into
mainfrom
deslop/l103-qa-catalog-ci
Closed

steipete wants to merge 1 commit into
mainfrom
deslop/l103-qa-catalog-ci

Conversation

@steipete

@steipete steipete commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Outcome

Closed as superseded by fixes already on main. #160531 (714c2c6baa8f3d2309ecfc53b3e499717e9d2421) implements the same two-pass candidate prefilter, including the Git-error fallback. #160517 (abb37032e7f7be346c8aea410ece8cd27e4f2cf2) additionally filters unmatched rows inside the canonical source-facts reader. Both commits were verified as ancestors of current origin/main. This PR will not be merged.

Original Problem

The PR-exempt ownership census could exceed its unchanged 120-second limit because the native consumer scan parsed files that matched none of its requested terms. The candidate identified matching files before parsing imports, preserving the 64-term Git cutoff, candidate ordering, per-term cache, aliases, and type-only/runtime-only admission. No product behavior, timeout, selection, concurrency, or public API changes were proposed.

Completed Candidate Evidence

On Blacksmith Testbox, candidate 9086280937ac6333203d0c1f66a8617d434e5289 against base 19f570d6fa6ac244e2f0f82dec165f4916aba9aa:

  • Four real Git/native-reader regressions failed on the original excess parsing and passed with the candidate (3 s command wall, 1.54 s Vitest duration).
  • All 906 targets and 48 emitted jobs were byte-identical; direct planning time changed from 52.457 to 19.073 seconds.
  • The original three-file CI group passed three times (123/128/113 s command wall). The unchanged census passed 20/20 repetitions (21–28 s each).
  • Planner siblings passed 2,655 tests across seven reported files (470 s command wall).
  • Managed Codex review through P2 found no actionable findings.
  • Changed-file checks passed through script/root-test types, core graph boundary, coercion guard, and dead exports. The continuation passed production lint, Docker E2E lint, and the HTTP/2 import guard, then found a callback-shadowing lint issue in this PR's new test. The full changed check was therefore not green. Completing that redundant test-only correction was stopped once the replacement fixes on main were verified.

These results qualify the superseded candidate, not the replacement commits. No hosted CI success or merge readiness is claimed for this closed PR.

@clawsweeper

clawsweeper Bot commented Sep 28, 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.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed September 28, 2026, 11:14 AM ET / 15:14 UTC.

ClawSweeper review

What this changes

The branch uses the existing source matcher to filter broad CI test-consumer candidates before parsing imports and adds four Git-backed regression cases.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Current main still parses unmatched source files during broad consumer scans. This focused PR addresses the remaining CI planning slowdown, and the inspected patch has no actionable correctness finding.

Priority: P2
Reviewed head: 9086280937ac6333203d0c1f66a8617d434e5289

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused patch, meaningful regressions, and reported real-checkout parity support a good review rating; the promised repeated qualification is still underway.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The changed CI planner filters source candidates before import parsing. The captured PR body reports a real Linux checkout planning call improving from 52.457 to 19.073 seconds with 906 targets and 48 jobs unchanged, plus one completed Testbox CI group; further repeated qualification remains pending. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The changed CI planner filters source candidates before import parsing. The captured PR body reports a real Linux checkout planning call improving from 52.457 to 19.073 seconds with 906 targets and 48 jobs unchanged, plus one completed Testbox CI group; further repeated qualification remains pending. No stored-data contract changes.
Evidence reviewed 8 items Current main behavior: For more than 64 terms, Git search is skipped and the full tracked candidate inventory is passed to import-edge reading.
Introduced fix: The introduced hunk filters large-search candidates by native term matches before requesting import edges; the Git-result and Git-error paths retain their prior candidate handling.
Reader contract: The native reader obtains literal term matches from source text and parses imports only when requested, supporting a match-only prepass.
Findings None None.
Security None None.

How this fits together

OpenClaw's CI test planner takes changed paths and tracked source files, finds import consumers, and emits affected test jobs. Large searches use a native source reader when Git's per-term search would be too costly.

flowchart LR
A[Changed paths] --> B[CI test planner]
B --> C{Search size}
C -->|Small| D[Git candidate search]
C -->|Large| E[Native source match]
D --> F[Import graph]
E --> F
F --> G[Selected test jobs]
Loading

Before merge

  • Complete next step (P2) - Finish the stated Testbox qualification, record its result, and mark the draft ready for review before merge.
Agent review details

Security

None.

PR surface

Tests +93. Total +93 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 94 1 +93
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 94 1 +93

Review metrics

Metric Value Why it matters
Reported planning time 52.457 s to 19.073 s The PR body measures the actual planning call affected by the prefilter.
Reported selection parity 906 targets and 48 jobs unchanged The claimed speedup retained the emitted test plan in the real-checkout comparison.
Production versus test LOC tooling +10 net, tests +83 The bounded prefilter accounts for tooling growth, while four regression cases account for the new test file.

Technical review

Best possible solution:

Keep consumer selection under the existing planner and native matcher, parsing only matching files while preserving the current fallback and emitted jobs.

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

Yes. Current main's greater-than-64-term path visibly sends every tracked candidate to import parsing, and the PR reports a Linux timeout on the unchanged ownership check; this read-only review did not execute it.

Is this the best way to solve the issue?

Yes. The existing reader can match terms without parsing imports, so the prepass addresses the measured cost within the current planner owner and preserves its Git fallback.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 1a94ee9ed7e2.

Labels

Label changes:

  • add P2: This is a bounded CI planning timeout repair with limited impact outside test selection.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The changed CI planner filters source candidates before import parsing. The captured PR body reports a real Linux checkout planning call improving from 52.457 to 19.073 seconds with 906 targets and 48 jobs unchanged, plus one completed Testbox CI group; further repeated qualification remains pending. No stored-data contract changes.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The changed CI planner filters source candidates before import parsing. The captured PR body reports a real Linux checkout planning call improving from 52.457 to 19.073 seconds with 906 targets and 48 jobs unchanged, plus one completed Testbox CI group; further repeated qualification remains pending. No stored-data contract changes.

Label justifications:

  • P2: This is a bounded CI planning timeout repair with limited impact outside test selection.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The changed CI planner filters source candidates before import parsing. The captured PR body reports a real Linux checkout planning call improving from 52.457 to 19.073 seconds with 906 targets and 48 jobs unchanged, plus one completed Testbox CI group; further repeated qualification remains pending. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed CI planner filters source candidates before import parsing. The captured PR body reports a real Linux checkout planning call improving from 52.457 to 19.073 seconds with 906 targets and 48 jobs unchanged, plus one completed Testbox CI group; further repeated qualification remains pending. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: 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.

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. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts 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