Skip to content

ci: allow callers to set the Go test package timeout - #94

Merged
matthyx merged 1 commit into
mainfrom
ci/configurable-go-test-timeout
Sep 16, 2026
Merged

matthyx merged 1 commit into
mainfrom
ci/configurable-go-test-timeout

Conversation

@matthyx

@matthyx matthyx commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Large race-enabled storage suites now exceed Go's default ten-minute package timeout; kubescape/storage#402 run 35097423818 was terminated while its crash-recovery test was still running after the mixed-corpus migration passed.

Add TEST_TIMEOUT_MINUTES to the reusable Go test workflow and its incluster PR wrapper. The default remains 10 minutes; storage can opt into 30 without changing other callers. Both race and coverage runs receive a quoted -timeout argument. Invalid values fail before Go executes, and existing diagnostics/artifacts remain intact.

Validation: all 11 Python harness tests pass, including default/custom timeout, both test modes, invalid inputs, and wrapper forwarding. git diff --check passes. Actionlint reports only the existing two undeclared GH_PERSONAL_ACCESS_TOKEN references.

Preserve the ten-minute default while allowing large race-enabled suites to select a larger bounded budget. Validate positive integer minutes and preserve race, coverage, and result artifacts.

Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
@coderabbitai

coderabbitai Bot commented Sep 16, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 073bb938-7673-4ebb-8b0f-87a92a4d8246


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

Summary:

  • License scan: failure
  • Credentials scan: failure
  • Vulnerabilities scan: failure
  • Unit test: success
  • Go linting: failure

1 similar comment
@github-actions

Copy link
Copy Markdown

Summary:

  • License scan: failure
  • Credentials scan: failure
  • Vulnerabilities scan: failure
  • Unit test: success
  • Go linting: failure

@matthyx
matthyx merged commit 547a98f into main Sep 16, 2026
12 checks passed
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