Skip to content

ci: shard weekly PostgreSQL qualification - #178223

Merged
steipete merged 1 commit into
mainfrom
pgprep/pgqual-weekly-shards
Oct 20, 2026
Merged

steipete merged 1 commit into
mainfrom
pgprep/pgqual-weekly-shards

Conversation

@steipete

@steipete steipete commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The first weekly qualification took 45m 15s on PostgreSQL 16, leaving too little headroom under its 60-minute job limit. Related: #178034.

User Impact

PostgreSQL 16 and 18 retain full weekly/manual conformance coverage with smaller jobs and bounded runner concurrency. PR CI remains unchanged.

Why This Change Was Made

The weekly workflow expands to six version × shard jobs, using the same three shard arguments, committed timing weights, shared action, and 30-minute job budget as PostgreSQL 17 PR CI. At most three jobs run at once. The image digests, main-only admission, schedule, failure behavior, and max_locks_per_transaction=512 remain unchanged. No scheduler or conformance-test changes.

Evidence

  • Workflow validation, including actionlint and zizmor, passed.
  • PostgreSQL workflow guards: 32 passed in 13.86s; the updated weekly guard failed on the original workflow.
  • The existing runner assigns all 100 targets once across its three shards (34/33/33); the workflow expands to all six version × shard combinations.
  • Focused lint, formatting, and root test typecheck passed; PR CI, the shared action, scheduler, and timing data are byte-identical to the base.
  • Independent review found no actionable P0–P2 issues. Final-head CI run 39386447196 passed; its pg17 job was path-skipped.
  • The required local full pg17 run on rebased head 1ace3f2d78fb5ae6b1a0f4efd5be632422ad480d passed 569 tests, but had five test timeouts and two setup-hook timeouts across six infrastructure files (738.55 seconds). It stopped after the infrastructure group. These are not claimed as passes or fixed failures. The six affected files passed on clean main (36 tests, 261.86 seconds). A second full local attempt passed 573 tests but had a missing-unaccent SQL statement timeout and a memory cleanup-hook timeout. Full clean-main conformance then passed 959 tests with 37 expected skips across all eight groups in 618.40 seconds. No conformance tests, runtime policy, assertions, or timeouts were changed; these local timing failures remain recorded, not claimed fixed.
  • Exact-head pg17 proof on Blacksmith Testbox run 39389865122: 959 passed, 37 expected skips, all eight groups in 1391.60 seconds, wrapper exit 0. It used the same pinned CI image, extensions, and lock setting on a runner reporting four CPUs and 15788 MiB RAM. The first payload stopped before tests because its source check used the source SHA instead of the verified carrier tree; the corrected source-tree check passed on the same lease.
  • Post-merge dispatch run 39393830074 passed all six jobs on merge commit 2e750ba704a3026d396181ff157135162162f12c, attempt 1, without reruns. Whole-job durations (setup included; queue time excluded): pg16 shard 1/3 15m 05s, 2/3 24m 25s, 3/3 16m 00s; pg18 shard 1/3 14m 48s, 2/3 15m 13s, 3/3 16m 07s. Every shard finished under 25 minutes; the longest leaves 5m 35s under the 30-minute job limit.

@clawsweeper

clawsweeper Bot commented Oct 20, 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.

@steipete
steipete marked this pull request as ready for review October 20, 2026 07:22
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T07:30:35.013324Z 1ace3f2 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS labels Oct 20, 2026
@steipete
steipete force-pushed the pgprep/pgqual-weekly-shards branch from 55fbb72 to 1ace3f2 Compare October 20, 2026 07:25
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. 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. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Splits weekly PostgreSQL 16 and 18 qualification into three shards per version, with at most three jobs running concurrently.

Example: Weekly PostgreSQL 16 and 18 qualification on main

  • Before: Two sequential full-suite jobs each have a 60-minute limit.
  • After: Six version-and-shard jobs each have a 30-minute limit, with three running concurrently.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, correct workflow change with green exact-head checks; confidence in endpoint shard execution remains limited until its planned qualification run.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored CI PR is outside the ordinary contributor proof gate; workflow guards and green exact-head CI support the change, but the changed six-job qualification workflow has not run, and the earlier unsharded qualification proves only the motivation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Long weekly PostgreSQL qualification jobs leave limited headroom for detecting supported-version regressions reliably.
Reason: The maintainer-authored direction addresses observed CI runtime with existing machinery while retaining endpoint coverage and bounded concurrency.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR makes a useful, focused CI improvement that main does not yet contain; no actionable correctness or security defect was found, and exact-head CI is green.

Priority: P2
Reviewed head: 1ace3f2d78fb5ae6b1a0f4efd5be632422ad480d

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The six PostgreSQL 16/18 shard jobs have no completed execution evidence; the maintainer explicitly schedules their first dispatch after merge.
Agent review details

How this fits together

GitHub Actions admits scheduled or manual main-branch qualification, starts disposable PostgreSQL containers through the shared action, passes shard arguments to the existing conformance runner, and reports job results.

flowchart TD
  A[Weekly or manual trigger] --> B[Main branch admission]
  B --> C[Six version and shard jobs]
  C --> D[Three concurrent hosted runners]
  D --> E[Shared PostgreSQL action]
  E --> F[Weighted conformance runner]
  F --> G[Results and container cleanup]
Loading

Technical review

Best possible solution:

Reuse the existing three-shard conformance path for both weekly PostgreSQL versions with bounded hosted concurrency.

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

This is CI maintenance rather than a runtime bug; the predecessor's completed qualification run independently confirms the long unsharded PostgreSQL 16 job.

Is this the best way to solve the issue?

The diff is the smallest complete workflow change: preserve complete inventory through the existing allocator, reuse the shared action, and update its existing guard and documentation.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Weekly PostgreSQL qualification layout changes intended behavior with a stated reason (e1dad1b: Add full weekly PostgreSQL 16/18 qualification sequentially without expanding PostgreSQL 17 PR CI.)
  • Conformance sharding and shared allocation keeps the original intent (58ef51f: Balance PostgreSQL conformance across three timed shards while preserving the complete inventory.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit e1dad1b adds .github/workflows/postgres-conformance-weekly.yml:17 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e1dad1bd0288; files: .github/workflows/postgres-conformance-weekly.yml)
  • Vincent Koc: Raw commit 9384365 adds scripts/lib/weighted-test-shards.mts:16 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 93843651aa71; files: scripts/lib/weighted-test-shards.mts)

PR surface

Tests +9, Docs +1, Config +3. Total +13 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 12 3 +9
Docs 1 3 2 +1
Config 1 6 3 +3
Generated 0 0 0 0
Other 0 0 0 0
Total 3 21 8 +13

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Improves recurring database qualification headroom without changing production behavior or ordinary PR fanout.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

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

  • Use the planned first qualification run to confirm all six jobs complete within their budgets.

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 October 20, 2026, 3:40 AM ET / 07:40 UTC.

@steipete
steipete merged commit 2e750ba into main Oct 20, 2026
118 checks passed
@steipete
steipete deleted the pgprep/pgqual-weekly-shards branch October 20, 2026 08:29
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Labels

docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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