Skip to content

ci(eql): run the EQL bench and test shards on m8a machines - #1972

Open
auxesis wants to merge 2 commits into
mainfrom
ci/eql-jobs-m8a
Open

auxesis wants to merge 2 commits into
mainfrom
ci/eql-jobs-m8a

Conversation

@auxesis

@auxesis auxesis commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Two nightly EQL jobs ran out of memory on c8a machines after #1419 moved them to RunsOn. This PR moves those jobs to m8a machines, which have twice the memory per vCPU. That is the rule in ADR 0004: "A job that fails for lack of memory moves to family=m8a".

Run Workflow Job
45927123386 Bench EQL (schedule) Bench EQL (Postgres 17)
45937486282 Test EQL (schedule) Shard PG17 1/2

Both ran on c8a.4xlarge (16 vCPU, 30.7 GiB). Both logs show the RunsOn warning "The kernel killed 1 process(es) during this job because they ran out of memory", and Postgres connections dropped mid-test. Both jobs passed every night on Blacksmith's 16 vCPU machines, which have 4 GB per vCPU. c8a has 2 GB per vCPU and m8a has 4 GB per vCPU.

Changes

In each label, family=c8a+m8a becomes family=m8a. The rest of the label is unchanged.

  • .github/workflows/bench-eql.yml: the bench job ("Bench EQL (Postgres 17)").
  • .github/workflows/test-eql.yml: the test job, which is the sharded SQLx suite. Every shard shares one runs-on, so this change covers all of them, not only Shard PG17 1/2:
    • pull requests and manual runs: PG17, 4 shards;
    • pushes to main, the merge queue and the nightly run: PG 14 to 17, 2 shards each.

Nothing else needed an update:

  • scripts/__tests__/lib/runs-on.mjs already accepts the m8a form of each ADR 0004 label.
  • ADR 0004 and .github/CONTEXT.md do not list which jobs use m8a.

Verification

  • vitest run --config scripts/vitest.config.mjs: 85 of 86 files passed. The one failure is migration-fixture-client.test.mjs. It cannot import @cipherstash/protect, which that fixture installs separately and which is not installed in my local checkout. The change does not affect it.
  • The RunsOn and EQL workflow guards pass: workflow-runs-on, workflow-docker-hub-login, workflow-mise-cache-image, eql-workflow-filters and eql-suite-ci.
  • Biome does not check YAML files, so it has nothing to check here.

How to confirm the fix on real machines:

  • Test EQL ran on this pull request. All four PG17 shards ran on m8a.4xlarge machines and passed (run 45943556169). That is the 4-shard shape. The 2-shard shape that failed runs on main after merge: this PR changes test-eql.yml, which is in the workflow's push path filter, and the nightly run follows.
  • Bench EQL does not run on pull requests. The next nightly run on main after merge confirms it. The workflow also has workflow_dispatch.

Related

Closes #1975

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated the runner family used for benchmark and test jobs to m8a. Other job settings remain unchanged.
  • User-facing changes
    • No changes to app features or behavior.

Two nightly jobs on main ran out of memory on c8a.4xlarge machines
(16 vCPU, 30.7 GiB) after the move to RunsOn in #1419:

- Bench EQL (Postgres 17), run 45927123386
- Test EQL Shard PG17 1/2, run 45937486282

Both logs carry the RunsOn warning that the kernel killed a process for
lack of memory, and Postgres connections dropped mid-test. Both jobs
passed every night on Blacksmith's 16 vCPU machines, which have 4 GB per
vCPU.

ADR 0004 says a job that fails for lack of memory moves to family=m8a,
which has 4 GB per vCPU. This changes family=c8a+m8a to family=m8a in
the bench job and in the shared runs-on of the Test EQL shard matrix.
The rest of each label is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6f74d68

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Bench EQL and Test EQL workflows now select the m8a runner family instead of c8a+m8a. Other runner settings remain unchanged.

Changes: EQL runner family updates

Layer / File(s) Summary
Select m8a for EQL jobs
.github/workflows/bench-eql.yml, .github/workflows/test-eql.yml
Both jobs now select the m8a runner family. Comments identify prior out-of-memory runs on c8a machines.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix · Severity of issue fixed: Medium

Possibly related PRs

Suggested reviewers: coderdan, tobyhede

Merge Risk: Minimal · up to 6f74d

This change moves the Bench EQL and Test EQL CI jobs to runners with more memory to avoid out-of-memory failures. It affects only CI infrastructure, not production behavior. It is low risk and easy to revert, and the post-merge nightly runs will confirm it works.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title states the primary change: the EQL bench and test CI jobs now run on m8a machines. The raw summary and objectives confirm that only the runs-on runner family changes from c8a+m8a to m8a in b…
Linked Issues check Passed Directly linked issue #1975 requires one coding change: in the runs-on label of the Bench EQL bench job and the shared Test EQL test job, replace family=c8a+m8a with family=m8a, leaving the …
Out of Scope Changes check Passed The changes are limited to runner-label edits and explanatory comments in .github/workflows/bench-eql.yml and .github/workflows/test-eql.yml. The bench file read at head shows no other behavioral …
Full details: Title check

Explanation

The title states the primary change: the EQL bench and test CI jobs now run on m8a machines. The raw summary and objectives confirm that only the runs-on runner family changes from c8a+m8a to m8a in bench-eql.yml and test-eql.yml. The title uses the conventional commit style and names both affected workflows' purpose.

Full details: Linked Issues check

Explanation

Directly linked issue #1975 requires one coding change: in the runs-on label of the Bench EQL bench job and the shared Test EQL test job, replace family=c8a+m8a with family=m8a, leaving the rest of each label unchanged. The bench change is confirmed at the reviewed head. .github/workflows/bench-eql.yml bench job reads runs-on=${{ github.run_id }}/family=m8a/cpu=16/image=ubuntu22-full-x64/volume=80gb/extras=s3-cache, and an added comment cites ADR 0004 and run 45927123386. The test change is supported by the whole-PR summary (.github/workflows/test-eql.yml, one runner-selection line changed from c8a+m8a to m8a, the shared test job). The diff read for test-eql.yml was unavailable in this pass, so that exact line was not re-read at head. The change since the previous review (commit 6f74d6800) adds comments only and does not alter runner labels. The post-merge checks (two-shard run and Bench EQL nightly) are not coding requirements and are not assessed.

Full details: Out of Scope Changes check

Explanation

The changes are limited to runner-label edits and explanatory comments in .github/workflows/bench-eql.yml and .github/workflows/test-eql.yml. The bench file read at head shows no other behavioral change in the bench job. The comments document the memory rationale for the same label change and do not add scope. The summary reports no other files changed. The test-eql.yml diff could not be read directly in this pass, so its full content relies on the whole-PR summary, which describes only the label change.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI; Enforced overrides: Organization
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a097c54e-2855-4682-b9ba-ec5abc8b1dc6
Commits

Reviewing files that changed from the base of the PR and between a1ae588 and 6f74d68.

Files selected for processing: 2

  • .github/workflows/bench-eql.yml
  • .github/workflows/test-eql.yml
Files skipped from review as they are similar to previous changes: 2

  • .github/workflows/bench-eql.yml
  • .github/workflows/test-eql.yml

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@auxesis auxesis added bug Something isn't working github-actions Pull request modifies GitHub Actions EQL labels Nov 27, 2026
@auxesis
auxesis marked this pull request as ready for review November 27, 2026 05:24
@auxesis
auxesis requested a review from a team as a code owner November 27, 2026 05:24

@cipherstash-agent cipherstash-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review attestation

Reviewed a1ae588 · posted from Claude Code · claude-opus-5-5 · effort medium
Sources: code-review · claude-opus-5-5; mattpocock-skills:code-review (Standards and Spec agents) · claude-opus-5-5; review-cross-check · claude-opus-5-5
Skills: code-review, company-skills:rust-security (not applicable: the diff has no Rust), mattpocock-skills:code-review, company-skills:review-cross-check

The change matches #1975 and ADR 0004's memory rule. Both new labels are in RUNS_ON_LABELS. workflow-runs-on.test.mjs was read but not run here (no node_modules in the review checkout). No changeset or skill update is needed.

Findings (1): 1 minor — 0 inline, 1 below.

  • .github/workflows/bench-eql.yml:96, .github/workflows/test-eql.yml:428 minor These are the only two family=m8a labels among about 55 RunsOn labels, and nothing in the YAML says why. RUNS_ON_LABELS also accepts family=c8a+m8a, so a later sweep that normalises them back passes CI and the nightly jobs run out of memory again. Add a one-line comment above each runs-on, as release.yml:220 does for its runner choice, naming ADR 0004 and the out-of-memory run (45927123386 for bench, 45937486282 for test).
    Source: mattpocock-skills:code-review (Standards) · claude-opus-5-5, verified by review-cross-check

Generated by Claude Code

These are the only RunsOn jobs on family=m8a. The label guard also
accepts family=c8a+m8a, so a later sweep could move them back without a
failing check. A comment above each runs-on names ADR 0004's memory rule
and the run that ran out of memory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@auxesis

auxesis commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Fixed in 6f74d68 (review finding on bench-eql.yml:96 and test-eql.yml:428). Each runs-on now has a comment that names ADR 0004's memory rule and the run that ran out of memory on c8a: 45927123386 for the bench job, 45937486282 for the test shards.

This branch has not been deployed

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

Labels

bug Something isn't working EQL github-actions Pull request modifies GitHub Actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants