Skip to content

test(runner): add a per-row test timeout to runner rows - #6217

Merged
matthewgrossman merged 5 commits into
mainfrom
test/5295-runner-nextest-config/matthewgrossman
Dec 5, 2026
Merged

matthewgrossman merged 5 commits into
mainfrom
test/5295-runner-nextest-config/matthewgrossman

Conversation

@matthewgrossman

@matthewgrossman matthewgrossman commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Summary

Lets a runner row raise the per-test timeout, the same way it sets test_threads, so the long Kubernetes and GPU tests ported from e2e/rust don't hit the runner's two-minute limit.

Related Issue

Closes #5295

Changes

  • openshell-test-runner run --test-timeout <secs> (1–2699) sets the openshell profile to slow-timeout = { period = "<secs>s", terminate-after = 1 }, the same shape as the conformance program's profile. Without it, the limit stays 30 s × 4. It is rejected with --program; conformance programs keep their 15-minute limit.
  • nextest reads the timeout only from its config file, so the runner now writes the nextest config for each run, copies it into the guest outside the bundle, and passes it with --config-file. Bundles no longer carry nextest.toml and are never modified after build; one left in an older bundle is ignored.
  • New optional test_timeout_secs column in .github/workflows/e2e-suites.yml. No row sets it yet, so no CI row changes. PR8 (test(e2e): port Kubernetes driver tests from e2e/rust to drivers/kubernetes #6213), the test(testkit): separate destructive tests from non-destructive ones #5527 destructive rows and PR9's GPU rows will set it.
  • TESTING.md: the limit applies to the whole row, so slow tests go in rows of their own.

The narrowed scope (no per-family nextest config, no test groups) is explained in #5295.

Testing

  • cargo test, cargo clippy --all-targets -D warnings and cargo fmt --check for tests/runner
  • Unit tests: the flag's range, its conflict with --program, and the generated nextest config for both bundle kinds
  • E2E tests added/updated (if applicable): none; no row sets the column yet

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

--test-timeout-minutes, and the test_timeout_minutes column in the
e2e-suites.yml rows, replace a nextest bundle's two-minute slow-timeout
for one run, so rows can hold the long Kubernetes and GPU tests ported
from e2e/rust. The default stays two minutes; prebuilt programs keep
their own limit.

Closes #5295

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
@matthewgrossman
matthewgrossman requested a review from a team as a code owner December 4, 2026 01:09
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Dec 4, 2026
--test-timeout <secs> and the test_timeout_secs row column match
testkit's run --timeout and the program profile, which terminate a test
after one period of that length.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

@gator-review-bot gator-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

gator-agent

PR Review Status

This change matches issue #5295's per-row timeout scope and documents the runner option in TESTING.md. A timeout override still needs to work when the prebuilt bundle's configuration is read-only.

Blocking findings:

  • GATOR-7a323700-01 Restore support for read-only nextest configurations when overriding a prebuilt bundle's timeout.

Carried findings:

  • None
Gator metadata
  • Validation: Concentrated test-runner change linked to #5295
  • Docs: Contributor workflow documented in TESTING.md
  • Checks: Required CI passed. Maintainer Approval is evaluated at handoff.
  • E2E: Test-label decision follows review clearance.
  • Head SHA: 7a323700e78c8a59959a39a34a6e1bfd578ea956
  • Base SHA: 34fc27738b50d0305342005bb83af40d687edd42
  • Merge base SHA: 34fc27738b50d0305342005bb83af40d687edd42
  • Patch ID: f1ea2dcaec21e9871bcf901326e0ca1703478455
  • Gator payload: 24
  • Review mode: initial
  • Previous reviewed SHA: none
  • Review budget exhausted: no
  • Maintainer decision required: no
  • Next state: gator:in-review

Comment thread tests/runner/src/bundle.rs Resolved
@gator-review-bot gator-review-bot Bot added the gator:in-review Gator is reviewing or awaiting PR review feedback label Dec 4, 2026
The bundle copy keeps the source file's mode, so writing the timeout
into a read-only nextest.toml failed. Write a new file and rename it
over the copy instead.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

@gator-review-bot gator-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

gator-agent

PR Review Status

Matthew Grossman, I checked your update against the read-only bundle case. Replacing the staged file handles a read-only nextest.toml when the temporary path is free, but a copied bundle entry can occupy that path.

Action required: Create the replacement configuration in a fresh temporary directory within staging and cover the collision in the regression test.

Blocking findings:

  • GATOR-1b5514e8-01 The fixed temporary path can collide with an existing bundle entry.

Carried findings:

  • GATOR-7a323700-01 The read-only bundle fix remains open pending the collision-safe replacement described inline.
Gator metadata
  • Validation: Concentrated test-runner change linked to #5295
  • Docs: Contributor runner option documented in TESTING.md
  • Checks: Required Branch Checks are running. Other reported required checks passed. Maintainer Approval is evaluated at handoff.
  • E2E: No test suite labels selected. Test-label decision follows review clearance.
  • Head SHA: 1b5514e85f71ee4509b1f7299223d8126d5dc9ff
  • Base SHA: 34fc27738b50d0305342005bb83af40d687edd42
  • Merge base SHA: 34fc27738b50d0305342005bb83af40d687edd42
  • Patch ID: 56dbe86dcc7adfe0ed2bd979b504300e04b0ac43
  • Gator payload: 24
  • Review mode: follow_up
  • Previous reviewed SHA: 7a323700e78c8a59959a39a34a6e1bfd578ea956
  • Review budget exhausted: no
  • Maintainer decision required: no
  • Next state: gator:in-review

Comment thread tests/runner/src/bundle.rs Resolved
Staging the new config under a fixed name could collide with an
existing bundle entry. Remove the copied nextest.toml and write a new
one instead; both need only the run directory's permissions.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
@gator-review-bot

Copy link
Copy Markdown

gator-agent

PR Review Status

Matthew Grossman, I checked your update that replaces the copied configuration in place. The runner can now set the timeout with a read-only source configuration and preserve an existing nextest.toml.new bundle entry. Both findings are fixed and their threads are resolved. Required Branch Checks are still running.

Blocking findings:

  • No blocking findings remain.

Carried findings:

  • None.
Gator metadata
  • Validation: Focused test-runner change implementing issue test(runner): add a per-row test timeout to runner rows #5295
  • Docs: Contributor workflow documented in TESTING.md
  • Checks: Required Branch Checks pending. Other reported required CI checks passed.
  • E2E: No additional suite selected. The workflow adds an optional setting that no existing row uses.
  • Head SHA: c8ac31370965559713de9eae2710df5177d45c73
  • Base SHA: 34fc27738b50d0305342005bb83af40d687edd42
  • Merge base SHA: 34fc27738b50d0305342005bb83af40d687edd42
  • Patch ID: e47fc531ec60aac0c72c852b16b8414e192e22a5
  • Gator payload: 24
  • Review mode: follow_up
  • Previous reviewed SHA: 1b5514e85f71ee4509b1f7299223d8126d5dc9ff
  • Review budget exhausted: no
  • Maintainer decision required: no
  • Next state: gator:watch-pipeline

@gator-review-bot gator-review-bot Bot added gator:watch-pipeline Gator is monitoring PR CI/CD status and removed gator:in-review Gator is reviewing or awaiting PR review feedback labels Dec 4, 2026
…ndle

nextest takes the per-test timeout only from its config file. Rather
than rewriting the config inside a copied bundle, which broke on
read-only copies and needed a staging name, the runner now generates
the config for each run, copies it into the guest outside the bundle,
and passes it with --config-file. Bundles no longer carry nextest.toml,
and the timeout is a run setting like --test-threads.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
@gator-review-bot

Copy link
Copy Markdown

gator-agent

PR Review Status

I reviewed the per-run nextest configuration change. The runner generates the configuration outside the bundle, so older bundles with a read-only configuration or an existing staging filename can still use a timeout override. Both earlier findings remain resolved. Required Branch Checks are pending.

Blocking findings:

  • No blocking findings remain.

Carried findings:

  • None.
Gator metadata
  • Validation: Focused test-runner change implementing issue test(runner): add a per-row test timeout to runner rows #5295
  • Docs: Contributor workflow documented in TESTING.md
  • Checks: Branch Checks pending. The other reported required CI checks passed. Maintainer Approval is evaluated at handoff.
  • E2E: No additional suite selected. This changes test-runner configuration and adds an optional workflow setting that existing rows leave unset.
  • Head SHA: 095796568d75f01eefcf5018c7287dd48e0970af
  • Base SHA: 34fc27738b50d0305342005bb83af40d687edd42
  • Merge base SHA: 34fc27738b50d0305342005bb83af40d687edd42
  • Patch ID: 717705899d42736c284abcecbb60406fcd9a3c84
  • Gator payload: 24
  • Review mode: critical_only
  • Previous reviewed SHA: c8ac31370965559713de9eae2710df5177d45c73
  • Review budget exhausted: yes
  • Maintainer decision required: no
  • Next state: gator:watch-pipeline

@gator-review-bot gator-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

gator-agent

Gator Approval

Gator review is complete and required CI has passed.

@gator-review-bot gator-review-bot Bot added gator:approval-needed Gator completed review; maintainer approval needed gator:watch-pipeline Gator is monitoring PR CI/CD status and removed gator:watch-pipeline Gator is monitoring PR CI/CD status gator:approval-needed Gator completed review; maintainer approval needed labels Dec 4, 2026
@matthewgrossman matthewgrossman added the test:e2e Requires end-to-end coverage label Dec 4, 2026
@gator-review-bot gator-review-bot Bot added gator:watch-pipeline Gator is monitoring PR CI/CD status gator:approval-needed Gator completed review; maintainer approval needed and removed gator:approval-needed Gator completed review; maintainer approval needed gator:watch-pipeline Gator is monitoring PR CI/CD status labels Dec 4, 2026
@matthewgrossman
matthewgrossman added this pull request to the merge queue Dec 4, 2026
@gator-review-bot gator-review-bot Bot added gator:merge-ready and removed gator:approval-needed Gator completed review; maintainer approval needed labels Dec 5, 2026
Merged via the queue into main with commit cf4cf4a Dec 5, 2026
508 of 523 checks passed
@matthewgrossman
matthewgrossman deleted the test/5295-runner-nextest-config/matthewgrossman branch December 5, 2026 00:17
@gator-review-bot

Copy link
Copy Markdown

gator-agent

Monitoring Complete

PR #6217 merged after Gator review, maintainer approval, and required CI passed. The active Gator label is being cleared as part of closing out monitoring.

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

Labels

state:accepted A maintainer decided OpenShell should pursue this issue test:e2e Requires end-to-end coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(runner): add a per-row test timeout to runner rows

2 participants