Skip to content

fix(ci): increase devstack wait timeout and add failure diagnostics#3156

Merged
npow merged 1 commit into
masterfrom
fix-devstack-timeout
May 6, 2026
Merged

fix(ci): increase devstack wait timeout and add failure diagnostics#3156
npow merged 1 commit into
masterfrom
fix-devstack-timeout

Conversation

@npow

@npow npow commented Apr 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Increase WAIT_TIMEOUT from 600s to 900s for the full-stack Kubernetes test — CI runners are slow and generate-configs intermittently times out
  • Add timeout-minutes: 30 to the job (was using the 6-hour GitHub default)
  • Add diagnostic step on failure: dumps tilt resource status and recent logs
  • Run teardown with if: always() so cleanup happens even on failure

Test plan

  • Verify the test job in "Test Metaflow with complete Kubernetes stack" no longer times out on generate-configs
  • Confirm tilt diagnostics appear in logs on any future failure

🤖 Generated with Claude Code

The full-stack-test workflow was timing out on generate-configs with
WAIT_TIMEOUT=600 (10 min). CI runners are slow and services sometimes
need longer to initialize.

- Increase WAIT_TIMEOUT from 600 to 900 (15 min)
- Add timeout-minutes: 30 to prevent runaway jobs (was using 6h default)
- Add diagnostic step on failure: dump tilt resource status and recent logs
- Run teardown with if: always() so cleanup happens on failure too

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@greptile-apps

greptile-apps Bot commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR improves the full-stack CI job by increasing WAIT_TIMEOUT to 900 s, adding failure diagnostics via tilt, and ensuring teardown always runs. One concern: the new timeout-minutes: 30 job ceiling leaves very little room once the 15-minute environment wait is accounted for.

  • P1: timeout-minutes: 30 combined with WAIT_TIMEOUT=900 (15 min) means ~15 minutes remain for pip install, the Kubernetes flow run, and teardown — likely insufficient on a slow runner, risking the same spurious timeout failures this PR aims to fix.

Confidence Score: 3/5

The 30-minute job timeout is likely too tight given the 15-minute environment wait, and could cause the same class of intermittent CI failures this PR is trying to fix.

A single P1 finding: the job-level timeout and WAIT_TIMEOUT interact in a way that may still produce spurious timeout failures. Score pulled down from the P1 ceiling of 4 because the fix directly targets CI reliability, and this interaction undermines that goal.

.github/workflows/full-stack-test.yml — job timeout value needs to be revisited

Important Files Changed

Filename Overview
.github/workflows/full-stack-test.yml Adds 30-min job timeout, increases WAIT_TIMEOUT to 900s, adds failure diagnostics, and ensures teardown always runs — but the 30-min job ceiling is likely too tight given the 15-min environment wait alone.

Reviews (1): Last reviewed commit: "fix(ci): increase devstack wait timeout ..." | Re-trigger Greptile

jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Job timeout too tight given WAIT_TIMEOUT

timeout-minutes: 30 gives the entire job 30 minutes, but WAIT_TIMEOUT=900 (line 29) alone already reserves up to 15 minutes just for the environment to become ready. The remaining ~15 minutes must cover pip install (~1-2 min), the Kubernetes flow run (variable, often several minutes on a slow runner), the diagnostic step, and teardown — leaving very little headroom. A slow runner that hits near the 15-minute wait would almost certainly cause the job to be killed by the job-level timeout before the flow even finishes.

Consider raising this to at least 60 minutes to match the realistic worst-case path, or lower WAIT_TIMEOUT to free up more budget for the actual test run.

@npow
npow merged commit 8088947 into master May 6, 2026
45 checks passed
@npow
npow deleted the fix-devstack-timeout branch May 6, 2026 17:06
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