Skip to content

chore(ci): measure earlier test starts without weakening CI Gate - #1984

Closed
shanselman wants to merge 1 commit into
openclaw:mainfrom
shanselman:shanselman-ci-overlap-candidate
Closed

shanselman wants to merge 1 commit into
openclaw:mainfrom
shanselman:shanselman-ci-overlap-candidate

Conversation

@shanselman

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Draft measurement arm: test whether overlapping selected CI test jobs with fast validation shortens full PR time-to-green. Do not merge.

User Impact

No product-visible change. All selected tests, proof checks, and CI Gate requirements stay mandatory. Earlier allocation may increase runner contention or waste work on failed fast validation.

Why This Change Was Made

Only the Core, Tray, UI, setup, revocation, and network job headers stop waiting for fast validation. Classification, selected-lane admission, and cancellation guards remain. CI Gate still waits for and requires fast-validation success. The hypothesis is at least one minute of improvement; no improvement has been measured.

Evidence

The scheduling regression rejected the original serialization and accepts all six changed headers. Existing classifier, test-inventory, artifact, fail-closed gate, and proof-routing contracts remain intact. No proof-pool-owned lines changed; textual compatibility was checked against #1886 (fix(ci): avoid Windows allocation for unneeded proof contracts), the separate proof-allocation arm.

Historical motivation only: prior-main run had 5m19s between classification completion and fast-validation completion, but several jobs queued for hours. This is not treatment evidence. The pilot uses rolling current-main snapshots without a main freeze, accepts weaker causal evidence, and separates queue time from execution time. Full PR time-to-green remains primary; no win or merge claim.

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Required proof pools

  • none: scheduling-only arm; existing hosted test/proof lanes remain unchanged. Hosted full PR-path measurement is required, not a new custom runtime pool.

Validation

Refreshed snapshot: base 6e835ec88119fcaa59af7b460a424837c362659c, head 35f1d1faabb0ba861fe7538cba0a0a03d5fbb938. Local source association is manually recorded; exact patch and fresh TRX remain in session artifacts. Commit contains the unchanged tested three-file tree.

  • .\build.ps1: passed all five projects, Debug/win-x64, including documentation validation.
  • dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore: 4,810 passed/executed, 24 ordinary opt-in skips, 0 failures; 4,834 total, 2m35s. Fresh TRX recorded with --logger "trx;LogFileName=rolling-Shared.trx" --results-directory "<session-artifacts>\rolling-results".
  • dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore: 4,788 passed/executed, 0 skips/failures, 1m59s. Fresh TRX recorded with --logger "trx;LogFileName=rolling-Tray.trx" --results-directory "<session-artifacts>\rolling-results". Tray data isolated; inherited runtime opt-ins cleared.
  • .\scripts\test-ci-workflow-contract.ps1: passed six scheduling guards and existing contracts; nested E2E hang-guard proof executed 5 cases plus real-process output-idle proofs.
  • .\scripts\test-ci-change-classifier.ps1: passed executable exact-tooling, mixed-path, real-git and malformed-diff regressions.
  • .\scripts\test-ci-gate-results.ps1: passed executable required-success, intentional-skip and failure/cancellation/malformed-result matrix.
  • git diff --check: passed.

Eight additional full PR/push fixtures rejected failure/cancelled/skipped/unknown fast-validation results while all selected lanes succeeded. Direct scope/simplification review retained only six production header edits and their focused regression/documentation; no new owner or abstraction was needed. Independent source/rubber-duck review not performed; this is a scheduling-only measurement draft, not setup or product behavior.

Real Behavior Proof

  • Environment tested: local Windows x64; hosted exploratory pilot pending.
  • PR head or commit tested: 35f1d1faabb0ba861fe7538cba0a0a03d5fbb938; actual PR checkout merge/base SHA will be recorded separately.
  • Exact steps or command run: .\scripts\test-ci-workflow-contract.ps1, classifier and gate regression scripts.
  • Evidence after fix: CI workflow contracts passed and CI Gate regressions passed; these are executable static/fixture contracts, not hosted scheduler proof.
  • Observed result: six selected lanes can be scheduled after classification while final acceptance still requires fast-validation success.
  • Screenshot or artifact links verified? (Yes/No/N/A): N/A, no visual claim.
  • Not verified or blocked: matched hosted pilot pending both treatment PRs and control readiness. Creation-triggered CI is reconnaissance, not the matched pilot. Record each attempt's actual checkout merge/base, queue/execution/CI Gate timings, failure/skip totals and full time-to-green; do not infer a causal win from unlike rolling snapshots.

Security Impact

  • New permissions or capabilities? (Yes/No): No
  • Secrets or tokens handling changed? (Yes/No): No
  • New or changed network calls? (Yes/No): No
  • Command or tool execution surface changed? (Yes/No): No
  • Data access scope changed? (Yes/No): No
  • If any answer is Yes, explain the risk and mitigation: N/A

Compatibility and Migration

  • Backward compatible? (Yes/No): Yes
  • Config or environment changes? (Yes/No): No
  • Migration needed? (Yes/No): No
  • If yes, list the exact upgrade steps: N/A

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

Preserve classifier admission and all final CI Gate requirements. Measurement-only arm; no runtime or proof-pool changes.

Co-authored-by: Copilot App <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

🦞👀
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 P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 2026

Copy link
Copy Markdown

Codex review: needs maintainer review before merge.

What this changes

This PR lets six selected CI test jobs overlap fast validation while preserving final CI Gate requirements.

Example: A workflow change selects Core, Tray, UI, setup, revocation, and network tests.

  • Before: All six jobs wait for both classification and fast validation to succeed.
  • After: All six become eligible after successful classification, while CI Gate still requires fast-validation success.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch is correct on inspection and hosted scheduling is demonstrated, but the experiment has not established the performance value needed to justify landing.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): Current-head GitHub Actions run 41575853288 exercises the changed workflow: all six selected Windows jobs start after classification and before fast validation finishes; this is reconnaissance evidence for scheduling, not the matched pilot or a speedup claim.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Contributors wait for selected test jobs that cannot start until fast validation completes.
Reason: The existing CI owner explicitly authorizes this narrow measurement experiment and records its resource tradeoff; a merge-worthy performance gain is not yet established.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored measurement draft open and honor its explicit do-not-merge instruction; the focused scheduling change has no identified correctness defect, but its performance value remains unmeasured.

Priority: P3
Reviewed head: 35f1d1faabb0ba861fe7538cba0a0a03d5fbb938

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The matched hosted performance comparison remains pending; the existing run proves overlap but does not establish improved total time-to-green.
Agent review details

How this fits together

The GitHub Actions workflow turns classified changes into selected Windows validation jobs and aggregates their results into the required CI Gate.

flowchart TD
  A[Repository change] --> B[Change classification]
  A --> C[Fast validation]
  B --> D[Six selected test lanes]
  B --> E[Other required lanes]
  C --> F[CI Gate]
  D --> F
  E --> F
Loading

Technical review

Best possible solution:

Retain the six focused scheduling edits as a draft until the planned hosted comparison establishes whether they improve total PR time-to-green.

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

This is a performance experiment rather than a reported product bug; source verifies the existing serialization, and hosted job metadata verifies the proposed overlap.

Is this the best way to solve the issue?

The diff is the smallest complete scheduling change using the existing workflow and gate owners, although only the planned comparison can establish its performance benefit.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 6e835ec88119.

Provenance checked

  • Core, Tray, UI, revocation, and network scheduling changes intended behavior with a stated reason (969fe6d: The earlier CI fast-path change split validation into conservative classifier-selected lanes while preserving fail-closed acceptance.)
  • Setup E2E scheduling changes intended behavior with a stated reason (5d19239: The docs-only fast path serialized full validation behind fast validation and introduced the stable fail-closed CI Gate; the current proposal explains why scheduling may overlap without changing acceptance.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Review metrics

Metric Value Why it matters
Change footprint Workflow +12/-12; tests +20; documentation +6 The production edits are limited to six job headers, with focused coverage and explanatory documentation; no additional runtime machinery is introduced.

Labels

Label changes:

  • add P3: This is a CI scheduling experiment with no product behavior change or demonstrated urgent regression.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; 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.

Label justifications:

  • P3: This is a CI scheduling experiment with no product behavior change or demonstrated urgent regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; 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.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete the planned hosted comparison, separating queue delay from execution and evaluating full PR time-to-green.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 2, 2026, 11:16 PM ET / November 3, 2026, 04:16 UTC.

@shanselman

Copy link
Copy Markdown
Collaborator Author

Closing this CI measurement draft. Its findings were captured (the reconnect-race fix landed in #1986). Closed by a Copilot triage agent, not Scott.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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