Repository navigation
ci: raise the run-tests time limit from 15 to 20 minutes - #895
Conversation
On main's last seven push runs, run-integration took up to 39.1 minutes, run-integration-sqlite up to 39.2 and mongodb-rust up to 38.7, against a 40-minute limit. cassandra-pytest took up to 41.6 minutes against 45. A run that restores no Rust cache builds for longer. The bulk put items pull request (#874) had the three 40-minute jobs cancelled at the limit. Every test that had run in them passed. These jobs now stop at 60 minutes. run-tests stops at 25 minutes instead of 15. On #874 it took 12 to 15 minutes. Its build took 5.5 minutes without a cache, where main's takes 2, and the engine's unit tests took 5 minutes on the 4-core runner. A job that hangs now holds its runner up to 20 minutes longer.
.github/workflows/integration-cassandra.yml keeps the cassandra-pytest limit of 60 minutes, which both sides set, with main's comment and its five-shard matrix. .github/workflows/integration-mongodb.yml keeps main's mongodb-rust limit of 55 minutes and its comment in place of this branch's 60. .github/workflows/integration.yml keeps main's run-integration limit of 70 minutes and run-integration-sqlite limit of 60 minutes in place of this branch's 60 for each. Main's comments and three-shard matrices on both jobs stay. The run-tests limit of 25 minutes in .github/workflows/test.yml, which merged without a conflict, is the only change this branch still makes against main.
navareamol
left a comment
There was a problem hiding this comment.
The title says "five jobs", and the diff changes only run-tests (15 to 25). The title becomes the commit subject on main. Could you change it to name the run-tests limit?
The description says "One run hit the 15-minute limit, and its re-run passed in 12m38s". Run 43913418092 hit the limit and has no second attempt. The 12m38s job is run 42240110473, an earlier head. The first passing run after the cut (43952453189) took 14m57s on the 1.88.0 leg. Which run does the 12m38s refer to?
I think the need for 25 comes from the 1.88.0 leg on #874. Main's matrix now has 1.91.1 in its place. On main, the slowest successful run-tests job in the last 60 runs is 12.9 minutes and none hit the limit. In the cut run the workspace test step ended 14 minutes in and the backup-store tests need about 85 seconds more, so it needed 15 to 16 minutes. Would 20 cover it? A hung leg holds two runners 5 minutes longer at 20 and 10 minutes longer at 25.
Could you merge main into the branch? It merges cleanly (only line 27 differs), but the last CI run is from 2026-11-14 and used the 1.88.0 toolchain leg.
I will approve once the title names one job, the 12m38s sentence points at the right run, and the limit has a measurement behind the number you pick.
Main is 40 commits ahead of the branch, and the merge is clean. In .github/workflows/test.yml main moved the second run-tests leg from 1.88.0 to 1.91.1, on the line after the limit this branch changes.
Run 43913418092 on #874 cut both run-tests legs at the 15-minute limit on 16 Nov. Their workspace tests had run 14m00s and 14m38s by then, and the backup store step after them takes 54 to 85 seconds. So the run needed 15.0 to 16.1 minutes, and 20 minutes covers it with 3.9 to spare. On main, the slowest run-tests job of the last 60 push runs took 12.2 minutes. This corrects the messages of e37eac9 and 0bb5767, which give run-tests 25 minutes. The other four limits in the message of e37eac9 are main's now, as 0bb5767 says.
|
Thanks, all four are in the new head.
|
navareamol
left a comment
There was a problem hiding this comment.
I approve. The title names the one job, the 12m38s run is named correctly, and the limit is 20 with the measurement behind it.
Main is at 5252eda. The last merge of main was at 80490c6, and main has four commits since then: #864, #895, #929 and #949. They change CI workflows, the auth and fuzz crates, a PostgreSQL test and the security manual. None of them changes a file that this branch changes, so git merged them with no conflict.
Changes since the last review
run-testsleg is now 1.91.1.What
This pull request raises the
timeout-minutesof therun-testsjob intest.yml, on both toolchains, from 15 to 20. Nothing else changes.The pull request first raised four more limits. Main raised those four itself after the pull request opened, each with its own measurement. It set
run-integrationto 70 (#740 and #411),run-integration-sqliteto 60 (#740 and #411),mongodb-rustto 55 (#411) andcassandra-pytestto 60 (#411). Main also runsrun-integration,run-integration-sqliteandcassandra-pytestas shards. The merge with main keeps main's values.Why
No issue tracks this change.
On #874, the
run-testsjobs that passed took 10.0 to 15.0 minutes, and three jobs hit the 15-minute limit:A limit of 20 minutes covers that run with 3.9 minutes to spare. On main, the slowest
run-testsjob of the last 60 push runs of Test (11 to 25 Nov) took 12.2 minutes. No job there hit the limit.The cost is that a
run-testsjob that hangs holds its runner up to 5 minutes longer.Testing done
actionlintreports the same findings fortest.ymlbefore and after the change. The findings are the custom runner labels that it does not know.yaml.safe_loadreads the file.run-testswith the new limit.Checklist
cargo test --workspace)cargo fmt --check)cargo clippy -- -W clippy::pedantic)Storagetrait, auth model, on-diskformat, or public CLI surface, an RFC has been accepted or is linked
below. Otherwise, an ADR captures the decision (link below).
ADR / RFC: n/a
By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache License 2.0 and I agree to the Developer Certificate of
Origin (DCO). See CONTRIBUTING.md for details.