Repository navigation
Description
Background
This repository runs its CI (continuous integration) jobs on RunsOn. RunsOn starts an AWS machine for each job. PR #1419 moved every job from Blacksmith, the previous runner provider, to a RunsOn machine with the same number of vCPUs (virtual CPUs). ADR 0004 (docs/adr/0004-same-size-swap-from-blacksmith-to-runs-on.md) records that decision.
RunsOn first tries c8a machines. A c8a machine has 2 GB of memory per vCPU. Blacksmith's machines had 4 GB per vCPU. So a 16 vCPU job now gets about 32 GB, not 64 GB.
ADR 0004 gives the remedy: "A job that fails for lack of memory moves to family=m8a". m8a machines have 4 GB per vCPU.
EQL (Encrypt Query Language) is the SQL library this repository ships. Two of its nightly jobs run large test suites against a Postgres database.
Problem
On 27 November 2026, after #1419 merged, two nightly EQL jobs on main ran out of memory:
| Run | Workflow | Job | Machine |
|---|---|---|---|
| 45927123386 | Bench EQL (schedule) | Bench EQL (Postgres 17) | c8a.4xlarge |
| 45937486282 | Test EQL (schedule) | Shard PG17 1/2 | c8a.4xlarge |
What happens:
- The job starts on a c8a.4xlarge machine with 16 vCPUs and 30.7 GiB of memory.
- Partway through the tests, the machine runs out of memory, and the Linux kernel kills a process.
- Postgres connections drop, so the remaining tests fail with "expected to read 5 bytes, got 0 bytes at EOF". In Bench EQL, 13 of 2,445 property tests failed this way.
Both logs contain this RunsOn warning:
The kernel killed 1 process(es) during this job because they ran out of memory. This runner has 30.7 GiB RAM
Impact: the nightly Bench EQL and Test EQL runs on main fail. Test EQL's ci-required summary job fails with them. Both workflows passed every night before #1419, on Blacksmith's 16 vCPU machines.
Why nothing caught it: the trial before #1419 ran 44 jobs on c8a machines, and none ran out of memory. These two nightly jobs did not run in that trial.
Proposal
- In each job's
runs-onlabel, changefamily=c8a+m8atofamily=m8a. Change nothing else in the label. PR ci(eql): run the EQL bench and test shards on m8a machines #1972 does this for:- the
benchjob in.github/workflows/bench-eql.yml; - the
testjob in.github/workflows/test-eql.yml. Every Test EQL shard shares this oneruns-on, so the change covers all of them.
- the
- Confirm the fix after merge. The Test EQL run on
mainand the next nightly runs of both workflows should pass, with no out-of-memory warning in the logs.
Evidence
- Verified: the RunsOn warning and
RUNS_ON_INSTANCE_TYPE=c8a.4xlargeappear in the failed job logs of both runs (gh run view <run> --log-failed). - Verified: ADR 0004's "Memory" bullet gives the 2 GB and 4 GB per vCPU figures and the move to
family=m8a. - Plausible: the killed process was the Postgres container. The logs do not name the process. The dropped Postgres connections suggest it.
Relationship to other work
- ci(runners): move every Blacksmith job to a RunsOn machine of the same size #1419 moved every Blacksmith job to RunsOn. This issue follows from that change.
- ci(eql): run the EQL bench and test shards on m8a machines #1972 makes the change in the proposal.
Activity