zhengruifeng opened a new pull request, #60318:
URL: https://github.com/apache/spark/pull/60318

   ### What changes were proposed in this pull request?
   
   Add explicit timeouts to 19 jobs reached by scheduled workflows: Maven and 
hosted Python precompilation/test jobs; the shared precondition, base-image and 
buf jobs; image-cache refresh; documentation preview; release validation; 
snapshot publication; and the six branch schedulers, stale handler and 
build-status updater.
   
   Reuse the existing 60-minute precompilation, 150-minute JVM build/test, and 
120-minute PySpark/documentation limits. Add a `build_timeout_minutes` input to 
the reusable Maven workflow, defaulting to 150, and override it to 300 for 
macOS. Allow 60 minutes for image builds, 180 for release validation, and 10 
for short checks and maintenance jobs.
   
   ### Why are the changes needed?
   
   ASF Infrastructure has asked Spark to reduce consumption of shared 
GitHub-hosted runners. Several scheduled jobs currently rely on GitHub Actions' 
default six-hour timeout. Explicit limits release runner capacity sooner when 
jobs hang or run unusually long.
   
   The macOS Maven limit accommodates successful shards taking more than four 
hours. The release limit leaves headroom above successful dry runs approaching 
150 minutes. Image limits also allow for the documented roughly 50-minute 
cold-cache build.
   
   Sampled up to the latest 10 successful `master` runs per workflow on 
2026-11-11. Durations exclude queue time; each matrix shard is a separate 
observation. Some platform samples are older and predate recent precompilation 
changes, so these are observed durations rather than guarantees.
   
   | Job group | Samples | Average (min) | Maximum (min) | Timeout (min) |
   |---|---:|---:|---:|---:|
   | Maven precompilation (all platforms) | 23 | 44.5 | 55.2 | 60 |
   | Hosted Python precompilation (ARM/macOS) | 20 | 26.6 | 52.3 | 60 |
   | Maven test shards, Linux x86 | 120 | 54.5 | 126.0 | 150 |
   | Maven test shards, Linux ARM | 120 | 53.6 | 139.0 | 150 |
   | Maven test shards, macOS | 108 | 107.4 | 243.4 | 300 |
   | Hosted Python test shards, Linux ARM | 99 | 46.5 | 75.5 | 120 |
   | Hosted Python test shards, macOS | 100 | 51.4 | 84.6 | 120 |
   | Base image build | 10 | 6.2 | 25.4 | 60 |
   | Image cache refresh | 10 | 10.5 | 43.8 | 60 |
   | Documentation preview | 10 | 17.6 | 21.1 | 120 |
   | Release dry run | 10 | 116.1 | 149.9 | 180 |
   | Snapshot publication shards | 70 | 51.4 | 88.0 | 150 |
   | Precondition, buf, branch schedulers, stale, build status | 100 | 0.6 | 
3.8 | 10 |
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   - Ran actionlint 1.7.12 across all workflows, with optional shellcheck and 
pyflakes checks disabled.
   - Parsed the YAML and verified every runner job reached through local 
scheduled workflow calls now has an explicit timeout.
   - Compared parsed workflows with the base revision to verify changes are 
limited to the new timeouts, the Maven timeout input, and its macOS override.
   - Ran `git diff --check` and checked added lines for ASCII and the 
100-character limit.
   
   No Spark runtime tests were added or run because this change only adjusts 
GitHub Actions job configuration.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: OpenAI Codex CLI 0.167.0 (GPT-6)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to