Skip to content

ci: cap component-tests jobs at 30 minutes - #973

Merged
matthyx merged 1 commit into
mainfrom
ci/component-tests-timeout
Sep 10, 2026
Merged

ci: cap component-tests jobs at 30 minutes#973
matthyx merged 1 commit into
mainfrom
ci/component-tests-timeout

Conversation

@matthyx

@matthyx matthyx commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Summary

A stuck post-step (observed: actions/setup-go@v4's cache-save, unrelated to the actual test) can otherwise run for the full 6-hour hosted-runner ceiling, and GitHub never flushes a force-cancelled job's log tail — turning an unrelated infra stall into an undiagnosable multi-hour mystery instead of a quick, log-intact failure.

Change

Adds timeout-minutes: 30 to the component-tests job. go test's own --timeout=20m already bounds real test hangs; this bounds everything else around it (cluster setup, helm install, post-steps) too, with enough headroom above the slowest observed real runs (~12 min for Run test on the heaviest matrix entries).

Context

Found while investigating an apparent 6-hour hang during unrelated storage-backend validation — traced via GitHub's own per-step job metadata to this exact failure mode (job's real work completed successfully in ~9 minutes; the post-step then stalled for the remaining ~6 hours with no way to tell from the truncated log).

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01LCMGT6Po2tSr1VEDVrbbYd

https://claude.ai/code/session_01LCMGT6Po2tSr1VEDVrbbYd

AI-skills: ralplan,plan | cmds: /compact,/usage-credits

Summary by CodeRabbit

  • Chores
    • Added a 30-minute time limit for component test jobs in the automated workflow.

A stuck post-step (e.g. actions/setup-go's cache-save) can otherwise
run for the full 6-hour hosted-runner ceiling, and GitHub never
flushes a force-cancelled job's log tail -- turning an unrelated
infra stall into an undiagnosable multi-hour mystery. go test's own
--timeout=20m already bounds real test hangs; this just bounds
everything else around it too.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LCMGT6Po2tSr1VEDVrbbYd
@matthyx matthyx added the ai-assisted Created through Armosec AI tooling (armosec-shared-rules plugin) label Sep 10, 2026
@coderabbitai

coderabbitai Bot commented Sep 10, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 4b05e8dc-2a74-4b14-83f5-6ca9eca4d73e

📥 Commits

Reviewing files that changed from the base of the PR and between 349c642 and d2c2fa7.

📒 Files selected for processing (1)
  • .github/workflows/component-tests.yaml

📝 Walkthrough

Walkthrough

The component-tests workflow job now stops after 30 minutes.

Changes

Component test execution

Layer / File(s) Summary
Configure component test timeout
.github/workflows/component-tests.yaml
The component-tests job now sets timeout-minutes: 30.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: entlein

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/component-tests-timeout

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.

@matthyx
matthyx merged commit b791193 into main Sep 10, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-assisted Created through Armosec AI tooling (armosec-shared-rules plugin)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant