Skip to content

fix(tests): give Forge worker fixture 15s budget for torch import under CI load - #684

Merged
martyn merged 1 commit into
developfrom
fix/forge-worker-budget-ci
Nov 26, 2026
Merged

martyn merged 1 commit into
developfrom
fix/forge-worker-budget-ci

Conversation

@martyn

@martyn martyn commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Fixes the single remaining CI shard-1 failure on PR #631 (test_real_worker_records_logs_receipt_and_releases_claim exiting with code 1).

worker_request defaulted to budget=3 seconds while the child subprocess imports torch through experiments/forge/execution_policy.py. Under 4-worker CPU contention on GitHub Actions, import torch occasionally exceeds 3s so experiments/forge/worker.py terminates the child with attempt_status='timeout' (exit code 1). Raising the default budget to 15s (still well inside campaign(budget=100), adding zero runtime to fast-completing tests) and giving the timeout/cancel tests 6s/15s room eliminates the flake.

…er CI load

worker_request defaulted to budget=3s, causing test_real_worker_records_logs_receipt_and_releases_claim
to hit worker wall-time timeout (exit code 1) when importing torch in a
subprocess under 4-worker CPU contention on GitHub Actions.
@martyn
martyn merged commit 8fb79a8 into develop Nov 26, 2026
6 checks passed
@martyn
martyn deleted the fix/forge-worker-budget-ci branch November 26, 2026 20:03
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