Repository navigation
Description
Problem
A pull request that is ready for review starts about 42 jobs, and I wait a median of 70.9 minutes for the last one (112.9 at the 90th percentile, 121.4 at worst). 46% of the job time is spent waiting for a runner, because the organisation shares its runners with ArcadeData/arcadedb. A macOS job waits 8.1 minutes at the median and 45.7 at the 90th percentile.
What a pull request costs today
From the Actions API: the pushes to ready (not draft) pull requests among the 48 most recent commits with a completed Test JVM run, 2026-11-14 to 2026-11-22, first attempts only. That is 12 pushes, 35 runs of the three test workflows and 471 jobs. Wall time is from the push to the end of the last job. Queue time is from the creation of a job to its start.
| Pull-request pushes | Count | Jobs (median) | Wall time, min (median) | Wall time, min (p90) | Wall time, min (max) |
|---|---|---|---|---|---|
| all sampled | 12 | 42 | 70.9 | 112.9 | 121.4 |
| all three test workflows ran | 8 | 43 | 51.8 | 112.9 | 112.9 |
| native did not run | 4 | 31 | 97.6 | 121.4 | 121.4 |
| Workflow | Runs | Jobs per run (median) | Wall time, min (median) | Wall time, min (max) | Job time queued, % |
|---|---|---|---|---|---|
Test JVM (arcadedb-jvm) |
14 | 18 | 39.5 | 121.4 | 57 |
Test Python Examples |
12 | 10 | 70.3 | 111.7 | 28 |
Test native (arcadedb) |
9 | 11 | 35.6 | 73.5 | 45 |
| Runner | Jobs | Queue, min (median) | Queue, min (p90) | Run, min (median) | Job time queued, % |
|---|---|---|---|---|---|
| Linux x86_64 | 273 | 0.1 | 13.4 | 0.9 | 48 |
| Linux arm64 | 66 | 0.1 | 19.7 | 7.6 | 35 |
| macOS | 66 | 8.1 | 45.7 | 8.3 | 61 |
| Windows | 66 | 0.1 | 19.5 | 13.1 | 23 |
| all | 471 | 46 |
The twelve jobs with the longest median queue plus run time:
| Job | n | Queue, min (median) | Run, min (median) | In the fast tier |
|---|---|---|---|---|
Test Python Examples (darwin/arm64, Python 3.14) |
12 | 11.6 | 35.8 | no |
Test Python Examples (windows/amd64, Python 3.14) |
12 | 0.1 | 27.8 | no |
Examples on the installed wheel (linux-x86_64, Python 3.12) |
9 | 0.1 | 24.1 | yes |
Test Python Examples (linux/arm64, Python 3.14) |
12 | 0.2 | 23.6 | no |
Test arcadedb (darwin/arm64, Python 3.14) |
14 | 14.1 | 9.4 | no |
Test arcadedb (darwin/arm64, Python 3.11) |
14 | 10.9 | 8.4 | no |
Test Python Examples (linux/amd64, Python 3.14) |
12 | 0.5 | 17.8 | yes |
Test arcadedb (windows/amd64, Python 3.14) |
14 | 0.1 | 14.0 | no |
Test arcadedb (windows/amd64, Python 3.11) |
14 | 0.1 | 13.6 | no |
Build wheel for examples (darwin/arm64) |
12 | 9.5 | 0.8 | no |
Parity against the installed wheel (linux-x86_64, Python 3.12) |
9 | 0.1 | 9.1 | yes |
Test arcadedb (linux/amd64, Python 3.14) |
14 | 0.1 | 9.1 | yes |
Every job name
| Job | n | Queue, min (median) | Run, min (median) | In the fast tier |
|---|---|---|---|---|
Test Python Examples (darwin/arm64, Python 3.14) |
12 | 11.6 | 35.8 | no |
Test Python Examples (windows/amd64, Python 3.14) |
12 | 0.1 | 27.8 | no |
Examples on the installed wheel (linux-x86_64, Python 3.12) |
9 | 0.1 | 24.1 | yes |
Test Python Examples (linux/arm64, Python 3.14) |
12 | 0.2 | 23.6 | no |
Test arcadedb (darwin/arm64, Python 3.14) |
14 | 14.1 | 9.4 | no |
Test arcadedb (darwin/arm64, Python 3.11) |
14 | 10.9 | 8.4 | no |
Test Python Examples (linux/amd64, Python 3.14) |
12 | 0.5 | 17.8 | yes |
Test arcadedb (windows/amd64, Python 3.14) |
14 | 0.1 | 14.0 | no |
Test arcadedb (windows/amd64, Python 3.11) |
14 | 0.1 | 13.6 | no |
Build wheel for examples (darwin/arm64) |
12 | 9.5 | 0.8 | no |
Parity against the installed wheel (linux-x86_64, Python 3.12) |
9 | 0.1 | 9.1 | yes |
Test arcadedb (linux/amd64, Python 3.14) |
14 | 0.1 | 9.1 | yes |
Image and wheel (linux-x86_64) |
9 | 0.1 | 8.7 | yes |
Build arcadedb-jvm wheel (darwin/arm64) |
14 | 7.3 | 0.8 | no |
Test arcadedb (linux/arm64, Python 3.14) |
14 | 0.1 | 7.8 | no |
Test arcadedb (linux/arm64, Python 3.11) |
14 | 0.1 | 7.8 | no |
Test arcadedb (linux/amd64, Python 3.12) |
14 | 0.1 | 7.4 | no |
Test arcadedb (linux/amd64, Python 3.13) |
14 | 0.1 | 6.9 | no |
Test arcadedb (linux/amd64, Python 3.11) |
14 | 0.1 | 6.4 | yes |
Build wheel for examples (linux/amd64) |
12 | 0.3 | 1.3 | yes |
Build arcadedb-jvm wheel (linux/amd64) |
14 | 0.1 | 1.3 | yes |
Build wheel for examples (linux/arm64) |
12 | 0.1 | 1.1 | no |
Build arcadedb-jvm wheel (linux/arm64) |
14 | 0.1 | 1.1 | no |
Build wheel for examples (windows/amd64) |
12 | 0.1 | 1.0 | no |
Build arcadedb-jvm wheel (windows/amd64) |
14 | 0.1 | 1.0 | no |
Python 3.11 on the wheel (linux-x86_64) |
9 | 0.1 | 0.9 | no |
Python 3.14 on the wheel (linux-x86_64) |
9 | 0.1 | 0.9 | no |
Python 3.13 on the wheel (linux-x86_64) |
9 | 0.1 | 0.9 | no |
Python 3.14t on the wheel (linux-x86_64) |
9 | 0.1 | 0.8 | no |
Python 3.15 on the wheel (linux-x86_64) |
9 | 0.1 | 0.8 | no |
Download ArcadeDB JARs |
26 | 0.1 | 0.4 | yes |
Bandit security scan |
14 | 0.1 | 0.3 | yes |
Dependency floor audit |
14 | 0.1 | 0.3 | yes |
Report parity crashes |
9 | 0.1 | 0.1 | yes |
Plan the legs |
9 | 0.1 | 0.1 | yes |
Examples summary |
9 | 0.1 | 0.1 | yes |
Test Summary |
14 | 0.1 | 0.1 | yes |
Examples Test Summary |
12 | 0.1 | 0.1 | yes |
What only the other platforms caught in 30 days
I took every red run of the three test workflows since 2026-10-24 on a pull request, on a push to main and in the nightly run, and grouped them by commit. "Fast-tier job" means one of the Linux x86-64 jobs that a pull request ran in the first version of the proposal (with the examples).
| Event | Commits with a red test workflow | A fast-tier job was red | Only full-tier legs were red | No job started (workflow file error) |
|---|---|---|---|---|
pull_request |
70 | 55 | 4 | 11 |
push |
25 | 7 | 18 | 0 |
schedule |
4 | 2 | 2 | 0 |
The 4 pull-request commits where only another platform was red:
| Date | Pull request or branch | Job | What failed |
|---|---|---|---|
| 2026-10-28 | docs/table-cols-uv |
Test arcadedb (windows/amd64, Python 3.14) |
test_vector.py::TestLSMVectorIndex::test_lsm_vector_search_approximate_persistence read other vectors than it stored |
| 2026-10-28 | chore/uv-user-facing |
Test arcadedb (windows/amd64, Python 3.11) |
the same test, the same assertion |
| 2026-10-30 | docs/26111-vector-changes |
Test arcadedb (windows/amd64, Python 3.14) |
test_vector_index_introspection.py::TestFindNearestApproximate::test_returns_the_nearest_record_and_its_distance, assert 'y' == 'x' |
| 2026-11-22 | #441 (Dependabot, actions/setup-java) |
Test arcadedb (darwin/arm64, Python 3.11) |
test_vector_read_your_writes.py, RecordNotFoundException in a vector search (the family of #409) |
In each of the four runs the other Python of the same platform passed. Three of the four are docs or tooling branches and the fourth is a Dependabot bump of an action, so these look like intermittent vector failures that the pull request did not cause. In this count no pull request had another platform catch a bug of its own change.
The legs that were red on main while the fast-tier jobs of the same commit were green:
| Job only the full tier runs | Commits red on a pull request | Commits red on main (push) |
Nights red (schedule) |
|---|---|---|---|
Parity against the installed wheel (windows-x64, Python 3.14) |
0 | 8 | 1 |
Parity against the installed wheel (windows-x64, Python 3.12) |
0 | 3 | 1 |
Parity against the installed wheel (macos-arm64, Python 3.12) |
0 | 2 | 1 |
Parity against the installed wheel (macos-arm64, Python 3.14) |
0 | 2 | 1 |
Test arcadedb (windows/amd64, Python 3.14) |
2 | 1 | 0 |
Test Python Examples (windows/amd64, Python 3.13) |
0 | 2 | 1 |
Test Python Examples (windows/amd64, Python 3.12) |
0 | 2 | 0 |
Test arcadedb (linux/arm64, Python 3.11) |
0 | 1 | 0 |
Test arcadedb (windows/amd64, Python 3.11) |
1 | 0 | 0 |
Test Python Examples (windows/amd64, Python 3.14) |
0 | 1 | 0 |
Test arcadedb (linux/arm64, Python 3.14) |
0 | 1 | 0 |
Test Python Examples (linux/amd64, Python 3.13) |
0 | 1 | 0 |
Test arcadedb (darwin/arm64, Python 3.11) |
1 | 0 | 0 |
Most of these are native parity legs on Windows and macOS and Windows example legs on Python 3.12 and 3.13. No pull request ran those legs before either: a pull request builds the native wheel for Linux x86-64 only and runs the examples on Python 3.14 only. The three known Windows problems were all first seen outside a pull request: #295 on a push to main, #352 on a manual run and #409 in a nightly run.
Limits of this count: a run that was re-run until it passed is not in it (the API keeps the last attempt, which is how the nightly run of #409 is missing), and I read the log of the four pull-request failures and of a few of the main failures, not of all of them.
The same count for the final fast tier, without the example jobs
| Event | Commits with a red test workflow | A job of the final fast tier was red | Only example jobs were red | Example jobs and another platform | Only another platform or Python | No job started |
|---|---|---|---|---|---|---|
pull_request |
70 | 53 | 2 | 0 | 4 | 11 |
push |
25 | 7 | 5 | 1 | 12 | 0 |
schedule |
4 | 2 | 1 | 0 | 1 | 0 |
The 2 pull-request commits where only example jobs were red:
| Date | Branch | Commit | Jobs | What failed |
|---|---|---|---|---|
| 2026-11-02 | ci/192-native-examples |
e4d0dbc1 |
Examples on the installed wheel (linux-x86_64, Python 3.12) |
several examples could not run on the native wheel (No module named 'jpype', No JAR files found); by its name this is the branch that added the native examples job |
| 2026-11-09 | perf/317-native-one-row-crossings |
3d092217 |
Test Python Examples on all four platforms |
in the linux/amd64 log examples 15 and 16 fail with SchemaException: Type with name 'Bench01' was not found and Type with name 'Node' was not found, while the unit tests of the commit were green |
The second one is what leaving the examples out of a pull request costs: one commit in these 30 days where the examples were the only jobs that caught what looks like a bug of the change itself. With the final fast tier that commit has no red job on the pull request, and the examples are red on main after the merge, or before it with the label ci:full. The native pyver legs that leave a pull request (3.13, 3.15, free-threaded 3.14t) were red on five commits in these 30 days, and on all five the parity suite on Linux x86-64 was red too.
Proposal
Two tiers.
- Fast tier, every pull request: the static checks as today, and on Linux x86-64 only: the
arcadedb-jvmwheel with the tests on Python 3.11 and 3.14 and, when a native path changed, the native image and wheel with the parity suite on Python 3.12 and the shortpyversubset on Python 3.11 and 3.14. No example job, unless the pull request changes a file underexamples/(notexamples/README.md),scripts/run_examples.sh,scripts/native_examples_skip.txtortest-python-examples.yml: then the example legs of Linux x86-64 run too. The path filters and the draft rule stay as they are. - Full tier: a push to
main, the nightly run, a manual run and a release, each with the legs it has today, the examples among them. A pull request runs the legs of a push tomainwhen it carries the labelci:full(add it, then push or re-run), so a risky change can be checked on every platform before the merge. Dependabot pull requests always run the full tier, because the hourly job merges them without a reader. - Nightly: the three schedules stay between 03:00 and 04:00 UTC. In the sample the jobs created in the hour from 04:00 UTC waited 0.1 minutes at the median, and those created in the hour from 11:00 UTC waited 20.4.
- A red
main: the README has a badge fortest-jvm.ymlandtest-native.yml. I add one fortest-python-examples.yml, so each of the three workflows shows its last run onmain. No new notification. - Not changed: the release workflows, the rule that no test is skipped, the tests inside a leg.
Jobs of a ready pull request, counted from the leg planners (scripts/select_matrix.py, scripts/select_native_matrix.py):
| Workflow | Jobs today | Jobs in the fast tier | Jobs with ci:full |
|---|---|---|---|
test-jvm.yml |
18 | 7 | 18 |
test-python-examples.yml |
10 | 2 | 22 |
test-native.yml (when a native path changed) |
11 | 7 | 27 |
pre-commit.yml, dependency-review.yml, gitignore-hygiene.yml |
3 | 3 | 3 |
| Total | 42 | 19 | 70 |
| Total when no native path changed | 31 | 12 | 43 |
main has no branch protection and the repository has no ruleset, so no required check has to change.
Measured on #443
| Version | Jobs that ran | Wall time, min |
|---|---|---|
| Before: median of the sampled pushes | 42 | 70.9 |
First version of #443 (Linux x86-64 only, with the examples), 794acd8 |
21 | 31.8 |
Final version (no example leg on a pull request), f83a5db |
20 | 17.2 |
Final version when the pull request changes the examples (both example legs run), c420873 |
23 | 25.1 |
The counts include the Docs job, because #443 changes a docs page. Every job of the final run, in the order they finished:
| Job | Result | Queue, s | Run, min | Done after, min | Three longest steps |
|---|---|---|---|---|---|
Dependency review |
success | 2 | 0.1 | 0.1 | Set up job 1 s; Checkout code 1 s; Review the dependency changes 1 s |
No tracked file matches .gitignore |
success | 2 | 0.1 | 0.1 | Set up job 1 s; Checkout code 1 s; Assert no tracked file is matched by an ignore pattern 0 s |
Download ArcadeDB JARs [Test Python Examples] |
success | 2 | 0.1 | 0.2 | Set up job 2 s; Checkout code 1 s; Select the test matrix 1 s |
Plan the legs |
success | 2 | 0.1 | 0.2 | Set up job 1 s; Run actions/checkout 1 s; Choose the legs 1 s |
Examples Test Summary |
success | 3 | 0.1 | 0.3 | Check test results 1 s; Set up job 0 s; Complete job 0 s |
Bandit security scan |
success | 2 | 0.3 | 0.3 | Run Bandit on src and tests (must be clean) 6 s; Run Bandit on examples (must be clean at medium+/high-confidence) 3 s; Set up job 1 s |
Build docs site |
success | 2 | 0.4 | 0.4 | Build with Antora 6 s; Run actions/checkout 4 s; Run actions/setup-node 4 s |
Dependency floor audit |
success | 3 | 0.3 | 0.4 | Audit declared dependency floors on every supported interpreter 10 s; Checkout code 4 s; Set up job 2 s |
Download ArcadeDB JARs [Test JVM (arcadedb-jvm)] |
success | 2 | 0.5 | 0.5 | Set up Docker Buildx 8 s; Upload JARs as artifact 7 s; Download JARs from ArcadeDB Docker image 6 s |
Run pre-commit on all files |
success | 2 | 1.6 | 1.6 | Run pre-commit on all files 88 s; Set up job 1 s; Checkout code 1 s |
Build arcadedb-jvm wheel (linux/amd64) |
success | 3 | 1.4 | 1.9 | Build arcadedb (linux/amd64) 55 s; Set up Docker Buildx (Linux only) 9 s; Download ArcadeDB JARs artifact 4 s |
Test arcadedb (linux/amd64, Python 3.11) |
success | 3 | 6.9 | 8.8 | Run pytest on host 378 s; Install and run the wheel in manylinux_2_28 (Linux only) 22 s; Set up job 3 s |
Image and wheel (linux-x86_64) |
success | 2 | 8.8 | 9.0 | Build the native image in manylinux_2_28 496 s; Build the wheel 12 s; Download GraalVM CE and verify its sha256 5 s |
Examples summary |
success | 2 | 0.1 | 9.2 | Set up job 1 s; Check the examples legs 1 s; Complete job 0 s |
Test arcadedb (linux/amd64, Python 3.14) |
success | 3 | 7.3 | 9.3 | Run pytest on host 390 s; Install and run the wheel in manylinux_2_28 (Linux only) 27 s; Download the wheel of linux/amd64 6 s |
Test Summary |
success | 3 | 0.1 | 9.4 | Check test results 2 s; Set up job 0 s; Complete job 0 s |
Python 3.11 on the wheel (linux-x86_64) |
success | 3 | 0.9 | 9.9 | Run the subset against the installed wheel 39 s; Run actions/download-artifact 3 s; Run actions/checkout 2 s |
Python 3.14 on the wheel (linux-x86_64) |
success | 3 | 1.1 | 10.1 | Run the subset against the installed wheel 48 s; Run actions/download-artifact 4 s; Run actions/checkout 2 s |
Parity against the installed wheel (linux-x86_64, Python 3.12) |
success | 3 | 7.9 | 17.0 | Run the parity suite 465 s; Run actions/download-artifact 2 s; Run actions/upload-artifact 2 s |
Report parity crashes |
success | 3 | 0.1 | 17.2 | Run actions/checkout 5 s; Set up job 2 s; Run actions/download-artifact 1 s |
Build wheel for examples (<platform>) |
skipped | ||||
Test Python Examples (<platform>, Python <version>) |
skipped | ||||
Examples on the installed wheel (<platform>, Python <version>) |
skipped |
The target was about 15 minutes. The run without example legs took 17.2 minutes. What is left is the part to keep on every pull request: the native wheel built from the pull request and the parity suite against it. The two jobs run one after the other, and neither can be dropped or started earlier. All three runs of #443 have this chain:
| Run | Image and wheel, min |
of which the native image build, s | Parity, min |
of which the parity suite, s | Parity done after, min |
|---|---|---|---|---|---|
794acd8 |
11.4 | 654 | 9.2 | 537 | 20.8 |
f83a5db |
8.8 | 496 | 7.9 | 465 | 17.0 |
c420873 |
6.9 | 385 | 6.8 | 392 | 13.9 |
So the wait of a pull request is this chain: between 13.9 and 20.8 minutes in these 3 runs, 1 of them under 15 minutes. The three commits build the same native sources, so the spread is the runner: the native image build took between 385 and 654 s and the parity suite between 392 and 537 s. About 15 minutes is reached on a fast runner and missed on a slow one, and I stop here, because the next step is not to build the image for every pull request (see below), which is a decision and not a cheap fix. The two steps are close in size: the image build was the longer one in 2 of the 3 runs. The arcadedb-jvm side was done after 9.4 minutes (Test Summary), so a pull request that changes no native path waits about that long.
What I looked at and did not change:
- The native image build. It is the same library for every pull request that changes only Python files, so it could be restored from a cache keyed on the files the image is built from, and only the wheel rebuilt (
Build the wheeltook 12 s). That could bring such a pull request under 15 minutes. I did not try it: a wrong key means a stale library is tested, so it needs its own issue and decision. Download datasetsis the longest step of both example jobs (891 s and 608 s in the first run, against 849 s and 490 s forRun all examples). It is not download time. In the log of the native example job of the first run the last download progress line comes 10 s into the step, the embedding model is loaded after 21 s, and the step ends after 608 s with 19,591 vectors built on the CPU. A cache of the built dataset would save that, but it needs care: I did not check whetherexamples/download_data.pyreuses vectors that are already there, a dataset whose host was down must not be cached as complete, and the size of the cache on four platforms is unknown. It no longer costs a pull request anything. Onmainevery example leg still pays it.Download ArcadeDB JARsruns twice becausetest-jvm.ymlandtest-python-examples.ymlare two workflows: each downloads the jars and builds its own wheel. In the fast tier the second one now only chooses the legs and neither downloads nor builds. Onmainboth still do.- Dependency installs: no install step is among the three longest steps of any job, so I added no cache.
- The parity suite runs its test files one after the other (
native/wheel/parity_wheel.py). Splitting it into parallel legs would shorten the chain, but the release reads one marker for each parity leg, so I left it.
Both shapes of the example jobs ran on #443. In f83a5db there is no example leg: the example jobs are skipped and Examples Test Summary and Examples summary are green. In c420873 the pull request changes test-python-examples.yml, which starts the example legs: Test Python Examples (linux/amd64, Python 3.14) took 21.2 minutes and Examples on the installed wheel (linux-x86_64, Python 3.12) took 17.8, and both summaries are green.
Edited 2026-11-22: the target for a pull request became about 15 minutes, so the examples left the fast tier (they run on main, in the nightly run, with ci:full, and when a pull request changes them), the native pyver subset on a pull request is Python 3.11 and 3.14, and the estimate of the wall time is replaced by the measured runs of #443.
Activity
CI: the examples leave the fast tier, the native pull-request leg kee…
CI: a change to test-python-examples.yml starts the example legs of a…
CI: run Linux x86-64 on every pull request and the full platform matr…