Yicong-Huang opened a new pull request, #60595:
URL: https://github.com/apache/spark/pull/60595

   ### What changes were proposed in this pull request?
   
   Move the eight branch-4.1 scheduled builds in `branch41_scheduler.yml` from 
three-day
   day-of-month phases to weekly schedules, the cadence branch-4.0 and 
branch-3.5 already use.
   
   Following SPARK-61159 (#60216) and the "Scheduled workflow cadence" section 
of
   `.github/workflows/README.md`, every new cron starts at minute 17 of a 
weekly hour (03, 09,
   15 or 21 UTC), uses a numeric day-of-week, and occupies a weekly slot that 
no other scheduled
   workflow on master uses:
   
   | Workflow | Before | After |
   |---|---|---|
   | maven | `17 0 3-31/3 * *` | `17 9 * * 2` (Tue 09:17) |
   | maven_java21 | `17 17 2-31/3 * *` | `17 21 * * 3` (Wed 21:17) |
   | java17 | `17 0 1-28/3 * *` | `17 15 * * 0` (Sun 15:17) |
   | java21 | `17 7 3-31/3 * *` | `17 9 * * 5` (Fri 09:17) |
   | non_ansi | `17 14 1-28/3 * *` | `17 21 * * 1` (Mon 21:17) |
   | python_3.11 | `17 22 3-31/3 * *` | `17 21 * * 0` (Sun 21:17) |
   | python_3.14 | `17 17 3-31/3 * *` | `17 3 * * 6` (Sat 03:17) |
   | python_pypy3.10 | `17 2 2-31/3 * *` | `17 15 * * 4` (Thu 15:17) |
   
   Weekly slots across all scheduled workflows on master (`+4.1` marks the new 
branch-4.1
   slots, which were free before this change; `(M)` marks Maven builds; `m` is 
master):
   
   - Sun: 03 3.5 scala213; 09 3.5 python_3.9; 15 +4.1 java17; 21 +4.1 
python_3.11
   - Mon: 03 m maven_java21_macos26 (M); 09 m sparkr_window; 15 m 
python_3.14_nogil;
     21 +4.1 non_ansi
   - Tue: 03 m uds; 09 +4.1 maven (M); 15 free; 21 4.0 python_3.11
   - Wed: 03 free; 09 4.0 java21; 15 m python_3.12_classic_only; 21 +4.1 
maven_java21 (M)
   - Thu: 03 4.0 non_ansi; 09 m python_minimum; 15 +4.1 python_pypy3.10;
     21 4.0 maven_java21 (M)
   - Fri: 03 m python_3.12_arm; 09 +4.1 java21; 15 m maven_java21_arm (M);
     21 m python_3.12_macos26
   - Sat: 03 +4.1 python_3.14; 09 4.0 maven (M); 15 4.0 java17; 21 4.0 
python_pypy3.10
   
   Before: 18 of the 28 weekly slots were used (10 free). After: 26 used; Tue 
15 and Wed 03
   stay free.
   
   - The two branch-4.1 Maven builds go to Tuesday and Wednesday, the only days 
without a weekly
     Maven build, so no day carries two weekly Maven builds. Weekly Maven 
starts are now
     Mon 03, Tue 09, Wed 21, Thu 21, Fri 15 and Sat 09.
   - Every day gets at least one branch-4.1 build; each day has three or four 
weekly starts.
     Leaving Tue 15 and Wed 03 free keeps the two new Maven days at three 
weekly starts.
   - No branch-4.1 build runs on the same weekday as the same workflow for 
branch-4.0.
   
   The cron list stays sorted, and each cron is still defined once with a YAML 
anchor, aliased
   into its job environment variable and compared with `github.event.schedule`. 
Manual dispatch
   targets, the `branch-4.1` dispatch ref, the repository guard and 
`dev/dispatch-if-changed.sh`
   usage are unchanged. The README cadence policy already covers weekly 
maintenance schedules,
   so it is not changed.
   
   ### Why are the changes needed?
   
   ASF Infrastructure has asked Spark to limit GitHub Actions runner 
consumption. The new
   branch-4.4 scheduler (SPARK-61833, #60586) adds eight three-day workflows, 
about 18.3 scheduled
   starts per week. branch-4.1 is the oldest branch still on the three-day 
cadence; moving it to
   weekly reduces its scheduled starts from about 18.3 to 8.0 per week (-10.3), 
so the net
   increase from cutting branch-4.4 drops from about +18.3 to about +8.0 starts 
per week.
   These are counts of configured starts; runner-minutes also depend on 
workload duration and
   skip-if-unchanged behavior.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. Only the cadence of scheduled CI on branch-4.1 changes. Manual dispatch 
is unchanged.
   
   ### How was this patch tested?
   
   - `yaml.safe_load` of the new file, and actionlint 1.7.12 (embedded 
ShellCheck and Pyflakes
     disabled, as in SPARK-61159) on `branch41_scheduler.yml` and all branch 
schedulers: passed.
   - A script parsed the new file and confirmed: 8 distinct crons, all weekly 
at minute 17 and
     hour 03, 09, 15 or 21 with a numeric day-of-week; each anchor equals its 
`*_CRON` env value,
     which is referenced by the `github.event.schedule` condition of exactly 
one step; each
     scheduled cron selects exactly one step; every step dispatches to 
`branch-4.1`; and the
     file is otherwise identical to the previous version once schedules and 
cron env vars are
     removed.
   - The same script enumerated the weekly slots of every scheduled workflow on 
master before
     and after the change (no slot is used twice), and counted configured 
starts per week over
     2027-2032: branch-4.1 18.29 -> 8.00, branch-4.4 18.30.
   - `git diff --check` passed; the diff only touches `branch41_scheduler.yml`.
   
   The new schedules take effect after merge.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Opus 5.5
   
   This pull request and its description were written by Isaac.
   


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