Repository navigation
fix(ci): keep changed tests when selecting their consumers - #148946
Conversation
|
Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 5:16 AM ET / 09:16 UTC (Revision 2). ClawSweeper reviewWhat this changesPreserves changed tooling tests alongside their discovered consumers in CI and local test selection, with regression coverage for standalone and mixed inputs. Merge readiness✅ Ready for maintainer review This PR remains useful: current main and v2026.9.4 retain the reported omission. The previous graph prerequisite is now merged, and the reviewed files are unchanged. No actionable correctness or security findings remain. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s test selector converts changed repository paths into targeted test runs. Its shared tooling resolver combines explicit test ownership with discovered consumers before the runner executes the selected tests. flowchart TD
A[Changed repository paths] --> B[Exclude deleted tests]
B --> C[Shared tooling resolver]
C --> D[Explicit owners or discovered consumers]
C --> E[Retain eligible changed test]
D --> F[Deduplicate selected targets]
E --> F
F --> G[Targeted test runner]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +59. Total +59 across 2 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep self-selection and consumer discovery together in the shared resolver while preserving explicit ownership and existing exclusions. Do we have a high-confidence way to reproduce the issue? Yes, from source: an unowned tooling test with discovered consumers produces a nonempty mapping that bypasses self-selection on current main. The supplied regression cases cover both routes; this read-only review did not execute them. Is this the best way to solve the issue? Yes. The small shared-owner repair covers both callers without duplicating policy or changing explicit test ownership. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0eff93e4be62. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
🦞👀 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. |
|
Merged via squash.
|
Closes #148945
What Problem This Solves
Fixes precise test selection omitting a changed tooling test when other tests import or reference it.
User Impact
CI and local changed-test runs retain the changed test as well as its automatically discovered consumers. There is no runtime product change or measured speedup claim.
Why This Change Was Made
The shared tooling resolver supplies both aggregate and mixed-input selection. Keep an otherwise routable changed test when it has no explicit owner, before deduplicating it with discovered consumers. Explicit owners, live/generated exclusions, and fallback rules remain unchanged.
This is independent of the pending paired Docker/isolated CI-group change; it does not change group configuration or preparation policy.
Evidence
test/scripts/test-projects.test.ts: 735 passed.git diff --checkpassed. The test-root check required materializing a tracked Linux JSON fixture omitted by the sparse checkout; no fixture contents changed.151a13a3e7be326ceef5efa43f11a0f42b38c851for that demonstrated baseline failure. The graph boundary guard now passes. The two reviewed file contents, dependency contracts, and test wrapper remain unchanged, so the original 735-test and canonical-review evidence is retained rather than represented as a new full run. The actual PR delta remains two files.7e4d01e51121be272630994078225379f3bd8c01: https://github.com/openclaw/openclaw/actions/runs/34951116661.