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

   ### What changes were proposed in this pull request?
   
   Move 70 scheduled workloads on master and maintenance branches to a common 
three-day calendar cadence. Spread their triggers across hourly UTC slots at 
minute 17, with 24 starts in phase 1 and 23 starts in each of phases 2 and 3.
   
   - Phase 1: dates 1, 4, 7, ... (`1-31/3`).
   - Phase 2: dates 2, 5, 8, ... (`2-31/3`).
   - Phase 3: dates 3, 6, 9, ... (`3-31/3`).
   
   Update the six maintenance-branch schedulers and all 41 matching 
`github.event.schedule` conditions so each cron dispatches exactly one variant. 
The schedulers remain on master and dispatch the workflow definitions from 
their target branches; this scheduling change does not require backports.
   
   For example, Java 21 and Java 25 on master currently both trigger at 04:00 
on odd dates. They move to 03:17 in phase 1 and 13:17 in phase 3, respectively.
   
   The build-status updater retains its schedule. Manual dispatch, other event 
triggers, target branches, and skip-if-unchanged checks are preserved. Update 
the workflow README and the Pages scheduling comments to describe the new 
cadence.
   
   <details>
   <summary>Complete proposed schedule (UTC; branch in parentheses)</summary>
   
   Every entry starts at the listed time on its phase dates. Phase 2 at 06:17 
and phase 3 at 18:17 are idle.
   
   | UTC | Phase 1: dates 1, 4, 7... | Phase 2: dates 2, 5, 8... | Phase 3: 
dates 3, 6, 9... |
   | --- | --- | --- | --- |
   | 00:17 | Java 17 (4.1) | Maven (4.2) | Maven (4.1) |
   | 01:17 | Python ARM (master) | Non-ANSI (4.3) | Java 21 (4.x) |
   | 02:17 | Python 3.14 (4.2) | PyPy 3.10 (4.1) | SparkR Windows (master) |
   | 03:17 | Java 21 (master) | Python 3.13 (master) | Non-ANSI (4.0) |
   | 04:17 | Maven Java 21 (4.0) | Java 21 (4.2) | Maven macOS (master) |
   | 05:17 | Base image cache (master) | Python 3.14 (master) | PyPy 3.10 (4.0) 
|
   | 06:17 | Codegen JDK (master) | Idle | Maven Java 25 (master) |
   | 07:17 | Python 3.14 (4.x) | Maven (4.0) | Java 21 (4.1) |
   | 08:17 | Python 3.11 (master) | Unix domain socket (master) | Connect 4.0 
client (master) |
   | 09:17 | Java 17 (4.2) | Maven Java 21 (4.x) | Maven (4.3) |
   | 10:17 | Release dry run (master) | GitHub Pages (master) | RocksDB UI 
(master) |
   | 11:17 | Java 21 (4.3) | Java 25 (4.2) | Python 3.14 (4.1) |
   | 12:17 | Maven (4.x) | Java 8 / Scala 2.13 (3.5) | Python 3.11 (4.3) |
   | 13:17 | Python Connect (master) | Python no-GIL (master) | Java 25 
(master) |
   | 14:17 | Non-ANSI (4.1) | Non-ANSI (4.x) | Maven Java 21 (4.2) |
   | 15:17 | Java 17 (4.3) | Python 3.15 (master) | Publish snapshots (master) |
   | 16:17 | Close stale PRs (master) | Java 21 (4.0) | Java 17 (4.x) |
   | 17:17 | Java 25 (4.3) | Maven ARM (master) | Python 3.9 (3.5) |
   | 18:17 | Maven (master) | Python 3.11 (4.2) | Idle |
   | 19:17 | Python 3.11 (4.0) | Java 25 (4.x) | Python classic (master) |
   | 20:17 | Python coverage (master) | Maven Java 21 (4.1) | Python 3.14 (4.3) 
|
   | 21:17 | Maven Java 21 (4.3) | Python macOS (master) | Non-ANSI (master) |
   | 22:17 | Java 17 (4.0) | Non-ANSI (4.2) | Python 3.11 (4.1) |
   | 23:17 | Python/Pandas 3 (master) | Python 3.11 (4.x) | Python min deps 
(master) |
   
   </details>
   
   ### Why are the changes needed?
   
   ASF Infrastructure has asked Spark to reduce GitHub-hosted runner 
consumption and concurrent job pressure. Many scheduled variants currently run 
on the same odd dates, and several trigger in the same hour. A common three-day 
cadence reduces the frequency of the two-day variants, while hourly slots 
spread scheduled starts across all three phases.
   
   This also moves workloads currently scheduled every four or six days to 
three days, and daily scheduled workloads to three days. The tradeoff is a 
uniform cadence across all branches rather than retaining less frequent 
coverage for older variants.
   
   Cron day-of-month phases restart monthly, so intervals are approximately 
three days, not a strict rolling 72 hours. The hourly slots still remain at 
least 60 minutes apart across month boundaries. GitHub can delay scheduled 
events, and multi-hour runs can overlap; this change does not impose a global 
concurrency limit or alter `build_main.yml`.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   - Actionlint 1.7.11 passed for all 35 changed workflow files (embedded 
ShellCheck and Pyflakes checks disabled).
   - Parsed the before/after YAML and verified all 70 workloads against the 
proposed schedule. Each branch cron matches exactly one dispatch condition; 
manual dispatch choices, target branches, repository guards, and all other YAML 
settings are unchanged.
   - Enumerated 59,700 configured starts across 2,557 calendar days (2026-01-01 
through 2032-12-31), including leap years and month boundaries: zero 
simultaneous starts, with gaps of 60 or 120 minutes.
   - `git diff --check` passed. Confirmed the main CI workflow and build-status 
updater are byte-for-byte unchanged.
   
   No Spark runtime tests were run because this change only updates workflow 
schedules, their dispatch conditions, and documentation.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: OpenAI Codex (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