Skip to content

ci: downsize pg/integration/ai test tiers from 4vcpu to 2vcpu#1406

Merged
pyramation merged 1 commit into
mainfrom
chore/ci-downsize-runners
Jul 21, 2026
Merged

ci: downsize pg/integration/ai test tiers from 4vcpu to 2vcpu#1406
pyramation merged 1 commit into
mainfrom
chore/ci-downsize-runners

Conversation

@pyramation

Copy link
Copy Markdown
Contributor

Summary

Drops the pg-tests, integration-tests, and ai-tests tiers in run-tests.yaml from blacksmith-4vcpu-ubuntu-2404 to blacksmith-2vcpu-ubuntu-2404. On a recent main run these ~30 matrix jobs each spend only 1–21s in the actual Test step — the ~45–60s of fixed setup (artifact download, pnpm install, Postgres tune/seed, fixtures:install) dominates. They are not CPU-bound, so 4vCPU is wasted spend; 2vCPU should roughly halve their cost with negligible wall-clock change.

Also pins NODE_OPTIONS=--max-old-space-size=4096 on those tiers, since on smaller runners Node's memory-derived default heap can land near ~2GB and OOM Jest (observed in constructive-db's equivalent experiment).

Unchanged: build and unit-tests stay on ubuntu-latest.

Follow-up worth considering (not in this PR): the many tiny pg/integration jobs each re-pay ~45s of fixed overhead; batching them (like the unit-tests tier already does) would cut cost further than runner sizing alone.

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

@pyramation pyramation self-assigned this Jul 21, 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 d6e4fa2 into main Jul 21, 2026
38 checks passed
@pyramation
pyramation deleted the chore/ci-downsize-runners branch July 21, 2026 09:37
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