dongjoon-hyun opened a new pull request, #60569:
URL: https://github.com/apache/spark/pull/60569

   ### What changes were proposed in this pull request?
   
   This PR makes the job timeout of the `build` job in `build_and_test.yml` 
overridable per matrix entry, and raises it from 150 to 180 minutes for the 
`sql - other tests` entry only.
   
   ```diff
   -    timeout-minutes: 150
   +    timeout-minutes: ${{ matrix.timeout-minutes || 150 }}
   ...
                excluded-tags: 
org.apache.spark.tags.ExtendedSQLTest,org.apache.spark.tags.SlowSQLTest
                comment: "- other tests"
   +            # This group often runs close to the default 150 minutes.
   +            timeout-minutes: 180
   ```
   
   All the other matrix entries have no `timeout-minutes` key, so they keep the 
current 150 minutes.
   
   ### Why are the changes needed?
   
   On `branch-4.3`, `sql - other tests` is the only job that hits the 
150-minute limit. It is cancelled with `The job has exceeded the maximum 
execution time of 2h30m0s`, for example in [this run on 
2026-11-10](https://github.com/apache/spark/actions/runs/42890354295) and [this 
run on 2026-11-11](https://github.com/apache/spark/actions/runs/42948731209).
   
   - Since 2026-09-28, at least 9 runs of this job were cancelled at 150-151 
minutes: 10-02, 10-09, 10-21, 10-22, 10-23, 10-27, 10-29, 11-10 and 11-11. The 
count comes from every run since 2026-11-08 and about a quarter of the earlier 
runs, so the real number is higher. No other job was cancelled by the timeout.
   - In the week of 2026-11-09, 12 of the 30 runs took 140 minutes or more, 
with an average of about 130 minutes.
   - `branch-4.3` keeps receiving backports (253 commits since 2026-09-20, 127 
of them touching SQL test directories), so the group keeps growing.
   
   The cancelled runs were not hung. I compared the sbt suite headers of the 
two cancelled runs above with a successful run of the same job, which took 136 
minutes of suite time. The 2026-11-11 run had started 1000 of 1006 suites, 
about 2 minutes short. The 2026-11-10 run was about 17 minutes short 
(estimated). The suite time of the same job varies by about 15% between runs, 
so 180 minutes leaves a margin for this variation.
   
   Other options were not used:
   - `master` has the `build_timeout_minutes` input (SPARK-58833), but it is 
missing in `branch-4.3` and applies to the whole workflow, not to one job.
   - Splitting the SQL test groups, as in `master`, is too large a change for a 
release branch.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. This is a CI-only change.
   
   ### How was this patch tested?
   
   This changes a GitHub Actions workflow, so there is no unit test. I checked 
that the workflow YAML parses, and that exactly one matrix entry (`sql - other 
tests`) sets `timeout-minutes` as an integer. GitHub Actions in my fork 
accepted the workflow file and started [the 
build](https://github.com/dongjoon-hyun/spark/actions/runs/43951914420) of this 
commit. The CI of this PR exercises the changed expression.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Sonnet 5.5
   


-- 
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