Skip to content

ci: tune Postgres durability in pg test jobs#1337

Merged
pyramation merged 1 commit into
mainfrom
fix/ci-pgpm-tune
Jul 7, 2026
Merged

ci: tune Postgres durability in pg test jobs#1337
pyramation merged 1 commit into
mainfrom
fix/ci-pgpm-tune

Conversation

@pyramation

Copy link
Copy Markdown
Contributor

Summary

Adds a Tune Postgres for CI (disable durability) step before Seed app_user in the three Postgres-backed jobs (pg-tests, integration-tests, ai-tests) of run-tests.yaml. Solves the self-referential case by invoking the workspace-built CLI — pnpm --filter pgpm exec node dist/index.js tune --yes — which exists since #1336 and is built by the upstream build job, so no npm release dependency.

Tuning applies fsync/synchronous_commit/full_page_writes = off, checkpoint_timeout = 30min, max_wal_size = 8GB via ALTER SYSTEM + pg_reload_conf(), eliminating checkpoint I/O stalls on CI runners (root cause of flakiness fixed in constructive-io/constructive-db#1925).

Link to Devin session: https://app.devin.ai/sessions/7943c7526d254aa4828be110fbb3f272
Requested by: @pyramation

@pyramation pyramation self-assigned this Jul 7, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@pyramation pyramation merged commit 378c222 into main Jul 7, 2026
36 checks passed
@pyramation pyramation deleted the fix/ci-pgpm-tune branch July 7, 2026 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant