Skip to content

Nightly Bench EQL and Test EQL jobs run out of memory on RunsOn c8a machines — move them to m8a #1975

In review

Description

@auxesis

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:

  1. The job starts on a c8a.4xlarge machine with 16 vCPUs and 30.7 GiB of memory.
  2. Partway through the tests, the machine runs out of memory, and the Linux kernel kills a process.
  3. 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

  1. In each job's runs-on label, change family=c8a+m8a to family=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 bench job in .github/workflows/bench-eql.yml;
    • the test job in .github/workflows/test-eql.yml. Every Test EQL shard shares this one runs-on, so the change covers all of them.
  2. Confirm the fix after merge. The Test EQL run on main and 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.4xlarge appear 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

Activity

  1. added
    bug
    github-actions
    on Nov 27, 2026
  2. self-assigned this
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

EQLbuggithub-actions

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions