Skip to content

ci(adapter): run the e2e test suites of each backend in parallel - #846

Closed
Totodore wants to merge 1 commit into
mainfrom
ci/parallel-adapter-e2e
Closed

Totodore wants to merge 1 commit into
mainfrom
ci/parallel-adapter-e2e

Conversation

@Totodore

@Totodore Totodore commented Dec 5, 2026 •

Copy link
Copy Markdown
Owner

Motivation

The adapter e2e runner (e2e/adapter/main.rs) runs its 16 binaries one after the other, although the redis, mongodb and postgres suites do not share anything.

Solution

The binaries are now grouped by backend and the three groups run concurrently, in the same CI job and with a single build:

group binaries ports
redis fred*, redis* (8) 3000-3002
mongodb mongodb-* (4) 3010-3012
postgres sqlx*, tokio-postgres* (4) 3020-3022
  • The binaries of a group still run one after the other.
  • A failing group stops at its first failed binary, the other groups finish, and the runner exits with an error listing the failed binaries.
  • The binary filter argument (cargo run -p adapter-e2e --bin main mongodb) still works.
  • The workflow file is unchanged.

A job matrix (one job per backend) would have built adapter-e2e three times, while the build is already the longest step of the job (about 1m30 without cache, against about 43s for the suites).

Results

Measured locally against the CI compose stack, with the runner pinned to 4 cores (taskset -c 0-3) to match ubuntu-latest:

runner wall clock
sequential (main) 38.3s
parallel (this PR) 19.2s, 19.3s, 19.3s

All 16 suites passed (14 tests each) in every run. The remaining time is the redis group, which has 8 binaries.

On the GitHub runner (first CI run of this PR), the suites take 27s instead of 43s. The gain is smaller than locally because the three groups compete for the 4 vCPUs: a suite takes 3.5s to 4.5s while the three groups are running, against about 2.2s when it runs alone.

🤖 Generated with Claude Code

The adapter e2e runner now groups its binaries by backend (redis,
mongodb, postgres) and runs the three groups concurrently, each one on
its own port range. The binaries of a group still run one after the
other, and a failing group no longer prevents the others from finishing.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@codspeed

codspeed Bot commented Dec 5, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ 4 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 87 untouched benchmarks


Comparing ci/parallel-adapter-e2e (ce6ce36) with main (1b387df)

Open in CodSpeed

@Totodore Totodore closed this Dec 5, 2026
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