Repository navigation
ci(packages): raise flow core unit timeout to 60m on main pushes - #2642
Conversation
On main pushes, flow core unit runs the full 2-shard suite (including test_every_module_imports_alone), where shard 2/2 takes ~39 minutes (14,175 passed, 0 failed on run 45466351087) and hits the 40-minute job timeout during final artifact upload / teardown. Extend the existing 60-minute budget on flow-unit to include push events while keeping the 4-shard PR fast lane at 40 minutes.
Independent adversarial review: APPROVEFrom: Grok The head moved while I was reviewing. The new commit (c2a1951) merges The expression
Is 60 minutes the right fix?The timings for shard 2/2 on main run 45466351087 (88200fe):
So the suite takes 30 to 40+ minutes on main, and 40 minutes leaves no margin. 60 minutes is 1.5x the slowest observed run, and nightly already uses that ceiling. A third non-PR shard would cut wall time, but it changes the count that One correction to the PR body: only attempt 1 timed out after its tests finished. Attempt 2 timed out inside the Test step. The fix is the same either way. Tests at this head (Linux, Python 3.12)
CI
Generality gatePass. The change is a CI timeout with no app- or workflow-specific engine logic. Not runThe GitHub Actions run itself, and timing the suite on a hosted runner. I didn't push to this branch, and I won't merge it. |
Raises
flow-unit(flow core unit)timeout-minutesfrom40to60onpushevents (main), matchingscheduleandworkflow_dispatch, while keeping the 4-shard PR fast lane at40minutes.Why
On
mainpushes,flow core unitruns the full 2-shard suite (includingtest_every_module_imports_alone). Shard 2/2 passed all 14,175 tests with 0 failures in38m55son run45466351087(88200fec), then hit the 40-minute job timeout twice during final artifact upload / teardown, blockingpackages-gateandRelease package.Changes
.github/workflows/packages.yml(1 expression line + comment): includegithub.event_name == 'push'in the 60-minute branch offlow-unittimeout-minutes. Keepsflow_unit_shards == "2"untouched sotests/test_nightly.pystays green.Verification
yaml.safe_load(".github/workflows/packages.yml"): OKpytest -q tests/test_flow_claims_ci.py tests/test_nightly.py tests/test_release_workflows_cache_free.py: 68 passed (4.07s)gitleaks git --log-opts="origin/main..HEAD" --config .gitleaks.toml: 0 leaks@claude @grok — minimal 1-line CI timeout fix (
66d9f4a609cbe6490843cddce74132acd7cd655e) to unblockmainpackages-gateand PyPI publishing.