Skip to content

ci: raise the run-tests time limit from 15 to 20 minutes - #895

Merged
LeeroyHannigan merged 4 commits into
mainfrom
ci/raise-job-time-limits
Nov 25, 2026
Merged

LeeroyHannigan merged 4 commits into
mainfrom
ci/raise-job-time-limits

Conversation

@LeeroyHannigan

@LeeroyHannigan LeeroyHannigan commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Changes since the last review

  • 6284053 merges main, 40 commits, with no conflict. The second run-tests leg is now 1.91.1.
  • a0e3005 sets the limit to 20 minutes, the number the review proposed. Its message corrects the 25 minutes in the messages of e37eac9 and 0bb5767.
  • The title names the one job that changes, and Why names the runs it measures.

What

This pull request raises the timeout-minutes of the run-tests job in test.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-integration to 70 (#740 and #411), run-integration-sqlite to 60 (#740 and #411), mongodb-rust to 55 (#411) and cassandra-pytest to 60 (#411). Main also runs run-integration, run-integration-sqlite and cassandra-pytest as shards. The merge with main keeps main's values.

Why

No issue tracks this change.

On #874, the run-tests jobs that passed took 10.0 to 15.0 minutes, and three jobs hit the 15-minute limit:

  • Run 42240110473, 6 Nov: attempt 1 cut the stable leg (15:07:41 to 15:22:56 UTC). The re-run of that job passed in 12m38s.
  • Run 43913418092, 16 Nov: both legs were cut, at 15.1 and 15.3 minutes, with no re-run. Their workspace tests had run 14m00s and 14m38s by then. The backup store step after them takes 54 to 85 seconds. So this run needed 15.0 to 16.1 minutes.

A limit of 20 minutes covers that run with 3.9 minutes to spare. On main, the slowest run-tests job 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-tests job that hangs holds its runner up to 5 minutes longer.

Testing done

  • actionlint reports the same findings for test.yml before and after the change. The findings are the custom runner labels that it does not know. yaml.safe_load reads the file.
  • The durations come from the GitHub Actions API, for the runs on feat: add StartBulkPutItems and the bulk operation APIs #874 and for main's last 60 push runs of Test.
  • The CI of this pull request runs run-tests with the new limit.

Checklist

  • I have read CONTRIBUTING.md
  • All tests pass (cargo test --workspace)
  • Code is formatted (cargo fmt --check)
  • Clippy is clean (cargo clippy -- -W clippy::pedantic)
  • I have added or updated tests for new functionality
  • I have updated documentation if behavior changed
  • Breaking changes are noted below (if any)
  • If this changes the wire protocol, Storage trait, auth model, on-disk
    format, 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.

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 navareamol left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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.
@LeeroyHannigan LeeroyHannigan changed the title ci: raise the time limits of five jobs that run near them ci: raise the run-tests time limit from 15 to 20 minutes Nov 25, 2026
@LeeroyHannigan

Copy link
Copy Markdown
Collaborator Author

Thanks, all four are in the new head.

  1. The title now names the one job and its new limit.
  2. The 12m38s is run 42240110473 on feat: add StartBulkPutItems and the bulk operation APIs #874. Its attempt 1 cut the stable leg at the limit (15:07:41 to 15:22:56 UTC on 6 Nov). The re-run of that job passed in 12m38s. 43913418092 is a second cut, on 16 Nov, on both legs, with no re-run. The description now names both runs.
  3. Yes, 20 covers it. In 43913418092 the workspace tests had run 14m00s and 14m38s when the limit came. The backup store step after them takes 54 to 85 seconds, so that run needed 15.0 to 16.1 minutes. The stable leg hit the limit twice on feat: add StartBulkPutItems and the bulk operation APIs #874, so it was not only the 1.88.0 leg. a0e3005 sets 20.
  4. 6284053 merges main, so CI now runs the 1.91.1 leg.

@navareamol navareamol left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I approve. The title names the one job, the 12m38s run is named correctly, and the limit is 20 with the measurement behind it.

@LeeroyHannigan
LeeroyHannigan added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 76b5828 Nov 25, 2026
52 checks passed
@LeeroyHannigan
LeeroyHannigan deleted the ci/raise-job-time-limits branch November 25, 2026 12:27
LeeroyHannigan added a commit that referenced this pull request Nov 25, 2026
Main is at 5252eda, four commits after the last merge (#864, #895,
#929 and #949). No file conflicted. Main and this branch change no
common file.
LeeroyHannigan added a commit that referenced this pull request Nov 25, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants