Skip to content

fix(ci): run PostgreSQL checks when its shard planner changes - #191963

Merged
vincentkoc merged 2 commits into
mainfrom
fix/postgres-ci-planner-routing-20261103
Nov 4, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix/postgres-ci-planner-routing-20261103

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Changes to the PostgreSQL shard planner do not select PostgreSQL conformance in PR CI.

User Impact

Planner-only changes now run the PostgreSQL checks they affect. Runtime behavior and database schemas are unchanged.

Why This Change Was Made

The runner switched to postgres-conformance-shards.mts, but CI still watched its former weighted-test-shards.mts dependency. Update the existing path rule and behavioral fixture together.

Evidence

  • Verified the current runner import and the historical switch in commit 54db475.
  • Native syntax, diff, and staged formatting checks passed. Independent review found no actionable issue.
  • At head cfb24daced03891b6202c968ad3159ea99416e3a, Blacksmith Testbox passed all 655 tests in the workflow-planning file, script and root-tooling test type checks, lint, and formatting.
  • Production/tooling: +1/-1 lines. Tests: +1/-1 lines. No schema, stored-format, configuration, or workflow-job changes.

Regression replay

On the unpatched frozen base, the new shard-planner path selected run_postgres_conformance=false and failed the expected true assertion. It passes at this PR head. Replayed with test-only overlays and unchanged production on the recorded base through Blacksmith Testbox.

Landing refresh — 2026-11-04

Current head: 09de4643d7fc769d4061eae02399db68ae2f2088. Integrated frozen main d27139b2b220327d6f65b659c6fba0b0110fad97; independent integration review found no new source defect. Earlier exact-head evidence above remains explicitly attributed and is reused only for unchanged inputs. Maintainer landing is now authorized; GitHub checks and native landing guards remain enforced.

Combined Track A candidate tree 6059134c361ed8602271261ddb940c9b9d1b413e: 1,183 tests passed, 12 intentional skips across tooling, sessions, plugin workers and Matrix. The repository transaction-boundary guard passed. Test-line total and ceiling both equal 6,447,876; allocations credit only each change’s literal added test lines. Real PostgreSQL integration recheck is in progress and is not counted as passed here.

No DDL, schema-version/fingerprint, persisted representation, retention/durability, identity, or recovery-authority changes are introduced by this PR. This is scoped functional proof, not a global PostgreSQL or performance qualification.

@vincentkoc vincentkoc self-assigned this Nov 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Nov 3, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Update PostgreSQL CI selection to watch the shard planner its runner currently imports.

Example: A PR changes only scripts/lib/postgres-conformance-shards.mts.

  • Before: run_postgres_conformance=false, so PostgreSQL conformance is skipped.
  • After: run_postgres_conformance=true, selecting the existing three conformance shards.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The repair is minimal and source-verified; behavioral evidence consists of the author's recorded production-owner fixture replay and supporting checks.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; its body records a Blacksmith manifest-fixture replay with planner-only selection false on the base and true after the fix, but supplies no separate deployed-CI trace of that scenario.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Contributors can change the PostgreSQL shard planner without running the conformance checks affected by that change.
Reason: The maintainer-authored repair restores the established dependency-selection contract with no new setting, default, API, or runtime behavior.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

✅ Ready for maintainer review

This PR makes a focused, correct repair that current main still needs; no actionable introduced defects were found.

Priority: P2
Reviewed head: 09de4643d7fc769d4061eae02399db68ae2f2088

Before merge

None.

Findings

None.

Agent review details

How this fits together

CI preflight reads changed paths, emits the PostgreSQL selection flag, and feeds the existing conformance jobs and aggregate gate.

flowchart LR
  A[Changed PR paths] --> B[CI manifest planner]
  B --> C[PostgreSQL selection flag]
  C --> D[Three conformance shards]
  D --> E[Aggregate CI gate]
Loading

Technical review

Best possible solution:

Keep the existing selection owner and replace its obsolete planner dependency together with the existing behavioral fixture.

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

Current-main source shows that a changed-path list containing only scripts/lib/postgres-conformance-shards.mts misses the PostgreSQL selection rules; the author additionally records a failing-base and passing-fix replay.

Is this the best way to solve the issue?

This is the smallest complete repair: the selection dependency must follow the runner's actual import, and both changed lines serve that invariant without adding machinery.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • PostgreSQL planner dependency selection and its regression fixture keeps the original intent (58ef51f: Select PostgreSQL conformance when its weighted allocator changes; the runner subsequently adopted the dedicated cost-model planner in 54db475.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned introduced change: The introduced patch replaces one obsolete dependency path in the existing selection owner and its behavioral fixture; it introduces no additional routing mechanism. (scripts/ci-build-manifest.mjs:1098, 09de4643d7fc)
  • Current main still needs the repair: Fetched main still watches weighted-test-shards.mts, while its PostgreSQL runner imports postgres-conformance-shards.mts. (scripts/ci-build-manifest.mjs:1098, eee9925e84f3)
  • Original selection intent: The original timed-sharding change added the weighted allocator to PostgreSQL selection when that allocator was the runner's dependency; this PR preserves that intent. (scripts/ci-build-manifest.mjs:1098, 58ef51f9ecf6)
  • Verified planner transition: The runner switched to the dedicated PostgreSQL allocator and estimator to account for configuration, worker queues, and shared preparation costs. Historical patch contents were verified through GitHub REST after local historical-object access reported a lazy-fetch limitation. (scripts/test-database-conformance.mjs:11, 54db47573b45)
  • Behavioral regression and prior review follow-up: The existing fixture executes the manifest and checks its emitted selection flag. The PR body now records the requested planner-only replay failing on the unpatched base and passing with the fix; this is reported harness evidence, not an independently inspected deployed-CI trace. (test/scripts/ci-workflow-planning.test.ts:228, 09de4643d7fc)
  • Existing workflow boundary: The selection flag controls the existing three-shard PostgreSQL job, which retains contents-read permission, its runner, deadline, and aggregate-gate integration. (.github/workflows/ci.yml:4702, 09de4643d7fc)

Likely related people:

  • Peter Steinberger: Raw commit 54db475 adds scripts/lib/postgres-conformance-shards.mts:10 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 54db47573b45; files: scripts/lib/postgres-conformance-shards.mts)
  • Vincent Koc: Raw commit 9384365 adds scripts/lib/weighted-test-shards.mts:7 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 93843651aa71; files: scripts/lib/weighted-test-shards.mts)

PR surface

Tests 0, Other 0. Total 0 across 2 files. Added test files: 0.

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

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.

Label justifications:

  • P2: Planner-only changes currently miss their PostgreSQL checks, creating a limited developer-facing CI coverage gap.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-03T14:40:59.925Z sha cfb24da :: needs maintainer review before merge. :: none

Reviewed November 3, 2026, 7:16 PM ET / November 4, 2026, 00:16 UTC (Revision 2).

@vincentkoc
vincentkoc marked this pull request as ready for review November 3, 2026 23:54
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review current head 09de4643d7fc769d4061eae02399db68ae2f2088. Integrated main d27139b2b220327d6f65b659c6fba0b0110fad97; preserved the scoped schema-neutral repair and original recorded runtime/base-regression proof. Test-line allocation covers only this PR’s added test lines. Independent integration review found no new source issue. Updated combined SQLite/PostgreSQL qualification is running; CI remains a separate landing gate. No schema version, DDL, stored representation, or recovery-authority change is introduced.

@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 4, 2026
@vincentkoc
vincentkoc merged commit 9f9395d into main Nov 4, 2026
123 checks passed
@vincentkoc
vincentkoc deleted the fix/postgres-ci-planner-routing-20261103 branch November 4, 2026 00:23
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 4, 2026
vincentkoc added a commit that referenced this pull request Nov 4, 2026
* commit 'b4ebd3673fea4932296b92bbc07b7abc4bdc792d':
  fix(ci): allow serial SDK API reports to finish (#192196)
  fix(ci): run PostgreSQL checks when its shard planner changes (#191963)
  fix(ci): model native Linux updater asset entry
  improve(test): speed up config and device binding browser tests (#192404)
  improve(ui): show arrivals top right with a contextual session status (#192016)
  improve(ui): mark error toasts and split two-sentence copy (#192015)
  fix(sandbox): give dependency builders a writable home (#192390)
  fix(worktrees): keep archive manifest checks off the main thread (#192358)
  fix(cron): preserve admitted runs and pacing across unrelated MCP reloads (#192399)
  improve(ui): stack toasts in a center lane and an arrivals lane (#192014)
  fix: reclaim abandoned read-only database snapshots (#192368)
  improve(ui): rebuild the toast on one component with variants and a hover dismiss (#192013)
  docs: consolidate team server and team setup into one Multiplayer page
  fix(ci): reconcile remaining unallocated test lines
  feat: run admitted MCP tools on the worker node that hosts them (#191387)
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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XS 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