This is an automated email from the ASF dual-hosted git repository.
zhengruifeng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 49620b990ae9 [SPARK-61159][INFRA] Reduce and stagger scheduled
workflow runs
49620b990ae9 is described below
commit 49620b990ae9069507bf7e629fb6b0162497bfe4
Author: Ruifeng Zheng <[email protected]>
AuthorDate: Tue Nov 10 18:27:51 2026 +0800
[SPARK-61159][INFRA] Reduce and stagger scheduled workflow runs
### What changes were proposed in this pull request?
Reduce scheduled runner consumption and spread scheduled starts across
master and maintenance branches. The 70 target workloads use 3 daily, 49
three-day, and 18 weekly schedules; the build-status updater retains its
separate 15-minute schedule.
- Move most two-day variants to three-day calendar phases. Move existing
four- and six-day variants, plus Python 3.12 macOS26, minimum-dependency
Python, and SparkR Windows, to weekly schedules.
- Use phase 1 dates `1-28/3`, phase 2 dates `2-31/3`, and phase 3 dates
`3-31/3`. The phases contain 16, 17, and 16 workloads. The ten three-day Maven
variants are distributed 3/3/4, with the two branch-4.x Maven variants in
different phases.
- Spread the Maven starts at 06:17/13:17/20:17 in phase 1,
06:17/11:17/17:17 in phase 2, and 00:17/06:17/13:17/19:17 in phase 3.
- Restore the daily cache to 04:00 UTC and Pages to 12:30 UTC, preserving
an 8.5-hour gap and the Pages comment explaining the ordering. Run daily stale
cleanup at 04:30 UTC. Reserve 04 and 12 UTC for daily jobs; three-day builds
use the remaining hours outside the weekly slots.
- Keep weekly starts at 03:17, 09:17, 15:17, or 21:17 UTC, spread across
all seven days using numeric day-of-week crons. Split branch 3.5's Scala 2.13
and Python 3.9 dispatches into Sunday 03:17 and 09:17 respectively.
- Define each maintenance-branch cron once using a YAML anchor. Alias it
into a job environment variable and compare `github.event.schedule` with that
variable, keeping the 41 dispatch conditions consistent with their triggers.
Preserve manual target choices, target branches, repository guards, and
skip-if-unchanged commands.
- Document the cadence rationale and scheduling guidelines concisely in
`.github/workflows/README.md`, following its existing paragraph style. Build
assignments distribute demand without a general importance ranking; individual
intervals can be shortened if faster feedback is needed.
Use minute 17 for rescheduled builds to avoid GitHub's busy [start-of-hour
scheduling
period](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#schedule);
the specific minute is arbitrary. Cache and Pages keep their original starts.
The maintenance schedulers run on master and dispatch workflows to their
target branches, so the schedule changes require one master PR. This PR does
not change main CI job selection, matrix concurrency, or timeouts.
JIRA: [SPARK-61159](https://issues.apache.org/jira/browse/SPARK-61159)
### Why are the changes needed?
ASF Infrastructure has asked Spark to reduce GitHub-hosted Actions runner
consumption and simultaneous job pressure. Reducing run frequency saves
aggregate runner-minutes; distributing starts spreads runner demand.
An earlier duration-weighted model estimated roughly 35-37% savings in
scheduled runner-minutes (excluding the build-status updater), or about 19% of
total CI runner-minutes at the observed usage mix. That estimate used
scheduled-run measurements from 2026-10-06 through 2026-11-04 and the November
1-8 dashboard snapshot, assuming similar runtimes, branch activity, and
skip-if-unchanged behavior. It predates the final phase-1 date cap and phase
rebalancing; those changes have not been [...]
Calendar enumeration gives 7,881 scheduled target starts in 2026, versus
12,080 with the original schedules and 8,001 in the preceding PR revision.
These are counts of configured target starts; their runner-minute cost varies
by workload and skip behavior.
The three-day phases restart each month. Capping phase 1 at day 28 removes
consecutive 31st-to-1st starts, but February 28 to March 1 remains a one-day
gap in non-leap years. Phase 1 gaps range from one to four days, phase 2 from
two to four days, and phase 3 from three to five days. Weekly schedules retain
seven-day intervals. GitHub scheduling delays and multi-hour runs can still
produce overlapping execution.
### Does this PR introduce _any_ user-facing change?
Yes. Scheduled SNAPSHOT publishing for master and the six maintenance
branches moves from every odd date to dates 3, 6, ..., 30 of each month.
Downstream users receive new ASF SNAPSHOT artifacts less frequently: usually
every three days, with four-day gaps after 31-day months and non-leap-year
Februaries, and a five-day gap across leap-year February. Manual publishing
remains available. Released Spark APIs and runtime behavior are unchanged.
### How was this patch tested?
- Actionlint 1.7.11 passed for all 35 managed workflow files, including
restored daily workflows (embedded ShellCheck and Pyflakes checks disabled).
- Parsed the before/after YAML for all 70 target workloads. Confirmed the 3
daily / 49 three-day / 18 weekly inventory, phase counts 16/17/16, Maven counts
3/3/4, and all reserved-hour assignments.
- Verified all 41 anchored cron bindings and evaluated every dispatch
expression for each scheduled trigger, each individual manual target, the
manual `all` target, and an unrelated event. Each scheduler trigger selects
exactly one intended target.
- Compared all non-schedule YAML settings against the previous revision,
allowing only the new cron environment bindings and equivalent dispatch
expressions. Manual choices, target branches, guards, and skip-if-unchanged
commands are preserved. Main CI and the build-status updater are byte-for-byte
unchanged from the original PR base.
- Enumerated 55,210 configured starts across 2,557 dates from 2026-01-01
through 2032-12-31. Checked 6,558 exact seven-day gaps, no identical configured
trigger times, and that phase-1 one-day gaps occur only from February 28 to
March 1 in non-leap years.
- Verified README paragraph style and the Pages ordering comment; `git diff
--check` passed.
No Spark runtime tests were needed for schedule metadata and documentation
changes. The new scheduled events will run after merge.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: OpenAI Codex (GPT-6)
Closes #60216 from zhengruifeng/ci/stagger-scheduled-builds-three-days.
Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>
skip-checks: true
---
.github/workflows/README.md | 8 +++++
.github/workflows/branch35_scheduler.yml | 9 +++--
.github/workflows/branch40_scheduler.yml | 33 +++++++++++-------
.github/workflows/branch41_scheduler.yml | 40 +++++++++++++---------
.github/workflows/branch42_scheduler.yml | 40 +++++++++++++---------
.github/workflows/branch43_scheduler.yml | 40 +++++++++++++---------
.github/workflows/branch4x_scheduler.yml | 40 +++++++++++++---------
.github/workflows/build_codegen_jdk.yml | 2 +-
.github/workflows/build_coverage.yml | 2 +-
.github/workflows/build_java21.yml | 2 +-
.github/workflows/build_java25.yml | 2 +-
.github/workflows/build_maven.yml | 2 +-
.github/workflows/build_maven_java21_arm.yml | 2 +-
.github/workflows/build_maven_java21_macos26.yml | 2 +-
.github/workflows/build_maven_java25.yml | 2 +-
.github/workflows/build_non_ansi.yml | 2 +-
.github/workflows/build_python_3.11.yml | 2 +-
.github/workflows/build_python_3.12_arm.yml | 2 +-
.../workflows/build_python_3.12_classic_only.yml | 2 +-
.github/workflows/build_python_3.12_macos26.yml | 2 +-
.github/workflows/build_python_3.12_pandas_3.yml | 2 +-
.github/workflows/build_python_3.13.yml | 2 +-
.github/workflows/build_python_3.14.yml | 2 +-
.github/workflows/build_python_3.14_nogil.yml | 2 +-
.github/workflows/build_python_3.15.yml | 2 +-
.github/workflows/build_python_connect.yml | 2 +-
.github/workflows/build_python_connect40.yml | 2 +-
.github/workflows/build_python_minimum.yml | 2 +-
.github/workflows/build_rockdb_as_ui_backend.yml | 2 +-
.github/workflows/build_sparkr_window.yml | 2 +-
.github/workflows/build_uds.yml | 2 +-
.github/workflows/publish_snapshot.yml | 2 +-
.github/workflows/release.yml | 2 +-
.github/workflows/stale.yml | 2 +-
34 files changed, 158 insertions(+), 106 deletions(-)
diff --git a/.github/workflows/README.md b/.github/workflows/README.md
index 63d73edb4b49..fe3c8573f4ac 100644
--- a/.github/workflows/README.md
+++ b/.github/workflows/README.md
@@ -11,6 +11,14 @@ The Apache Software Foundation (ASF) imposes [resource usage
limits][limit] on G
[limit]: https://infra.apache.org/github-actions-policy.html
[usage]: https://github.com/apache/spark/actions/metrics/usage
+### Scheduled workflow cadence
+
+Use daily maintenance schedules and three-day or weekly build schedules to
limit runner consumption while retaining regular coverage. Reserve 04 and 12
UTC for daily workflows and 03, 09, 15, and 21 UTC for weekly workflows;
distribute three-day workflows across the remaining hours and day-of-month
phases, and spread weekly workflows across the days of the week. Balance
expensive builds across phases and start times, and use minute 17 for
rescheduled builds to avoid GitHub Actions' busy [...]
+
+These assignments spread runner demand without ranking jobs by importance, and
individual intervals can be shortened when faster feedback is needed.
Day-of-month phases restart monthly, so intervals vary at month boundaries, and
delayed starts or long runs can still overlap.
+
+[schedule-event]:
https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#schedule
+
### Push heavy workflows out to forks
Workflows triggered by `on: pull_request` [count against the base repo's (i.e.
this repo's) activity limits][base]. For this reason it's [important] to use
`on: push` for heavy workflows. `on: push` workflows count against the fork's
limits and not ours, enabling more jobs to run concurrently.
diff --git a/.github/workflows/branch35_scheduler.yml
b/.github/workflows/branch35_scheduler.yml
index 687efb5c290d..27459845a6e4 100644
--- a/.github/workflows/branch35_scheduler.yml
+++ b/.github/workflows/branch35_scheduler.yml
@@ -21,7 +21,8 @@ name: "Branch-3.5 CI Scheduler"
on:
schedule:
- - cron: '0 11 */4 * *'
+ - cron: &scala213_cron '17 3 * * 0'
+ - cron: &python_3_9_cron '17 9 * * 0'
workflow_dispatch:
inputs:
target:
@@ -40,6 +41,8 @@ jobs:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ SCALA213_CRON: *scala213_cron
+ PYTHON_3_9_CRON: *python_3_9_cron
permissions:
actions: write
contents: read
@@ -50,14 +53,14 @@ jobs:
sparse-checkout: dev
- name: Scala 2.13 Build
if: >-
- github.event.schedule == '0 11 */4 * *' ||
+ github.event.schedule == env.SCALA213_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'scala213' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_scala213.yml branch-3.5
- name: Python 3.9 Build
if: >-
- github.event.schedule == '0 11 */4 * *' ||
+ github.event.schedule == env.PYTHON_3_9_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'python_3.9' || inputs.target == 'all'))
run: |
diff --git a/.github/workflows/branch40_scheduler.yml
b/.github/workflows/branch40_scheduler.yml
index ef619dd44791..9355ee8b784f 100644
--- a/.github/workflows/branch40_scheduler.yml
+++ b/.github/workflows/branch40_scheduler.yml
@@ -21,11 +21,13 @@ name: "Branch-4.0 CI Scheduler"
on:
schedule:
- - cron: '0 2 */4 * *'
- - cron: '0 5 */4 * *'
- - cron: '0 12 */4 * *'
- - cron: '0 14 */4 * *'
- - cron: '0 16 */4 * *'
+ - cron: &java17_cron '17 15 * * 6'
+ - cron: &python_3_11_cron '17 21 * * 2'
+ - cron: &maven_java21_cron '17 21 * * 4'
+ - cron: &python_pypy3_10_cron '17 21 * * 6'
+ - cron: &non_ansi_cron '17 3 * * 4'
+ - cron: &java21_cron '17 9 * * 3'
+ - cron: &maven_cron '17 9 * * 6'
workflow_dispatch:
inputs:
target:
@@ -49,6 +51,13 @@ jobs:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ MAVEN_CRON: *maven_cron
+ MAVEN_JAVA21_CRON: *maven_java21_cron
+ JAVA17_CRON: *java17_cron
+ JAVA21_CRON: *java21_cron
+ NON_ANSI_CRON: *non_ansi_cron
+ PYTHON_3_11_CRON: *python_3_11_cron
+ PYTHON_PYPY3_10_CRON: *python_pypy3_10_cron
permissions:
actions: write
contents: read
@@ -59,49 +68,49 @@ jobs:
sparse-checkout: dev
- name: Maven Build
if: >-
- github.event.schedule == '0 14 */4 * *' ||
+ github.event.schedule == env.MAVEN_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'maven' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_maven.yml branch-4.0
- name: Maven Java 21 Build
if: >-
- github.event.schedule == '0 14 */4 * *' ||
+ github.event.schedule == env.MAVEN_JAVA21_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'maven_java21' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_maven_java21.yml branch-4.0
- name: Java 17 Build
if: >-
- github.event.schedule == '0 12 */4 * *' ||
+ github.event.schedule == env.JAVA17_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'java17' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_java17.yml branch-4.0
- name: Java 21 Build
if: >-
- github.event.schedule == '0 5 */4 * *' ||
+ github.event.schedule == env.JAVA21_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'java21' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_java21.yml branch-4.0
- name: Non-ANSI Build
if: >-
- github.event.schedule == '0 2 */4 * *' ||
+ github.event.schedule == env.NON_ANSI_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'non_ansi' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_non_ansi.yml branch-4.0
- name: Python 3.11 Build
if: >-
- github.event.schedule == '0 12 */4 * *' ||
+ github.event.schedule == env.PYTHON_3_11_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'python_3.11' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_python_3.11.yml branch-4.0
- name: Python PyPy 3.10 Build
if: >-
- github.event.schedule == '0 16 */4 * *' ||
+ github.event.schedule == env.PYTHON_PYPY3_10_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'python_pypy3.10' || inputs.target == 'all'))
run: |
diff --git a/.github/workflows/branch41_scheduler.yml
b/.github/workflows/branch41_scheduler.yml
index 2106a559b1b8..d7fd8938d0e9 100644
--- a/.github/workflows/branch41_scheduler.yml
+++ b/.github/workflows/branch41_scheduler.yml
@@ -21,14 +21,14 @@ name: "Branch-4.1 CI Scheduler"
on:
schedule:
- - cron: '0 2 */2 * *'
- - cron: '0 5 */2 * *'
- - cron: '0 9 */2 * *'
- - cron: '0 10 */2 * *'
- - cron: '0 12 */2 * *'
- - cron: '0 13 */2 * *'
- - cron: '0 15 */2 * *'
- - cron: '0 17 */2 * *'
+ - cron: &java17_cron '17 0 1-28/3 * *'
+ - cron: &maven_cron '17 0 3-31/3 * *'
+ - cron: &non_ansi_cron '17 14 1-28/3 * *'
+ - cron: &maven_java21_cron '17 17 2-31/3 * *'
+ - cron: &python_3_14_cron '17 17 3-31/3 * *'
+ - cron: &python_pypy3_10_cron '17 2 2-31/3 * *'
+ - cron: &python_3_11_cron '17 22 3-31/3 * *'
+ - cron: &java21_cron '17 7 3-31/3 * *'
workflow_dispatch:
inputs:
target:
@@ -53,6 +53,14 @@ jobs:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ MAVEN_CRON: *maven_cron
+ MAVEN_JAVA21_CRON: *maven_java21_cron
+ JAVA17_CRON: *java17_cron
+ JAVA21_CRON: *java21_cron
+ NON_ANSI_CRON: *non_ansi_cron
+ PYTHON_3_11_CRON: *python_3_11_cron
+ PYTHON_3_14_CRON: *python_3_14_cron
+ PYTHON_PYPY3_10_CRON: *python_pypy3_10_cron
permissions:
actions: write
contents: read
@@ -63,56 +71,56 @@ jobs:
sparse-checkout: dev
- name: Maven Build
if: >-
- github.event.schedule == '0 13 */2 * *' ||
+ github.event.schedule == env.MAVEN_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'maven' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_maven.yml branch-4.1
- name: Maven Java 21 Build
if: >-
- github.event.schedule == '0 15 */2 * *' ||
+ github.event.schedule == env.MAVEN_JAVA21_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'maven_java21' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_maven_java21.yml branch-4.1
- name: Java 17 Build
if: >-
- github.event.schedule == '0 12 */2 * *' ||
+ github.event.schedule == env.JAVA17_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'java17' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_java17.yml branch-4.1
- name: Java 21 Build
if: >-
- github.event.schedule == '0 5 */2 * *' ||
+ github.event.schedule == env.JAVA21_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'java21' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_java21.yml branch-4.1
- name: Non-ANSI Build
if: >-
- github.event.schedule == '0 2 */2 * *' ||
+ github.event.schedule == env.NON_ANSI_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'non_ansi' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_non_ansi.yml branch-4.1
- name: Python 3.11 Build
if: >-
- github.event.schedule == '0 9 */2 * *' ||
+ github.event.schedule == env.PYTHON_3_11_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'python_3.11' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_python_3.11.yml branch-4.1
- name: Python 3.14 Build
if: >-
- github.event.schedule == '0 10 */2 * *' ||
+ github.event.schedule == env.PYTHON_3_14_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'python_3.14' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_python_3.14.yml branch-4.1
- name: Python PyPy 3.10 Build
if: >-
- github.event.schedule == '0 17 */2 * *' ||
+ github.event.schedule == env.PYTHON_PYPY3_10_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'python_pypy3.10' || inputs.target == 'all'))
run: |
diff --git a/.github/workflows/branch42_scheduler.yml
b/.github/workflows/branch42_scheduler.yml
index a83a6b7e1555..8ca6a229423d 100644
--- a/.github/workflows/branch42_scheduler.yml
+++ b/.github/workflows/branch42_scheduler.yml
@@ -21,14 +21,14 @@ name: "Branch-4.2 CI Scheduler"
on:
schedule:
- - cron: '0 3 */2 * *'
- - cron: '0 6 */2 * *'
- - cron: '0 8 */2 * *'
- - cron: '0 13 */2 * *'
- - cron: '0 15 */2 * *'
- - cron: '0 17 */2 * *'
- - cron: '0 18 */2 * *'
- - cron: '0 20 */2 * *'
+ - cron: &java17_cron '17 11 1-28/3 * *'
+ - cron: &java25_cron '17 13 2-31/3 * *'
+ - cron: &python_3_11_cron '17 18 2-31/3 * *'
+ - cron: &maven_java21_cron '17 19 3-31/3 * *'
+ - cron: &python_3_14_cron '17 2 1-28/3 * *'
+ - cron: &non_ansi_cron '17 22 2-31/3 * *'
+ - cron: &maven_cron '17 6 2-31/3 * *'
+ - cron: &java21_cron '17 7 2-31/3 * *'
workflow_dispatch:
inputs:
target:
@@ -53,6 +53,14 @@ jobs:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ MAVEN_CRON: *maven_cron
+ MAVEN_JAVA21_CRON: *maven_java21_cron
+ JAVA17_CRON: *java17_cron
+ JAVA21_CRON: *java21_cron
+ JAVA25_CRON: *java25_cron
+ NON_ANSI_CRON: *non_ansi_cron
+ PYTHON_3_11_CRON: *python_3_11_cron
+ PYTHON_3_14_CRON: *python_3_14_cron
permissions:
actions: write
contents: read
@@ -63,56 +71,56 @@ jobs:
sparse-checkout: dev
- name: Maven Build
if: >-
- github.event.schedule == '0 15 */2 * *' ||
+ github.event.schedule == env.MAVEN_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'maven' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_maven.yml branch-4.2
- name: Maven Java 21 Build
if: >-
- github.event.schedule == '0 17 */2 * *' ||
+ github.event.schedule == env.MAVEN_JAVA21_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'maven_java21' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_maven_java21.yml branch-4.2
- name: Java 17 Build
if: >-
- github.event.schedule == '0 13 */2 * *' ||
+ github.event.schedule == env.JAVA17_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'java17' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_java17.yml branch-4.2
- name: Java 21 Build
if: >-
- github.event.schedule == '0 6 */2 * *' ||
+ github.event.schedule == env.JAVA21_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'java21' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_java21.yml branch-4.2
- name: Java 25 Build
if: >-
- github.event.schedule == '0 8 */2 * *' ||
+ github.event.schedule == env.JAVA25_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'java25' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_java25.yml branch-4.2
- name: Non-ANSI Build
if: >-
- github.event.schedule == '0 3 */2 * *' ||
+ github.event.schedule == env.NON_ANSI_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'non_ansi' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_non_ansi.yml branch-4.2
- name: Python 3.11 Build
if: >-
- github.event.schedule == '0 18 */2 * *' ||
+ github.event.schedule == env.PYTHON_3_11_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'python_3.11' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_python_3.11.yml branch-4.2
- name: Python 3.14 Build
if: >-
- github.event.schedule == '0 20 */2 * *' ||
+ github.event.schedule == env.PYTHON_3_14_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'python_3.14' || inputs.target == 'all'))
run: |
diff --git a/.github/workflows/branch43_scheduler.yml
b/.github/workflows/branch43_scheduler.yml
index 6ee39d6b4a72..e8db22c0b57a 100644
--- a/.github/workflows/branch43_scheduler.yml
+++ b/.github/workflows/branch43_scheduler.yml
@@ -21,14 +21,14 @@ name: "Branch-4.3 CI Scheduler"
on:
schedule:
- - cron: '0 0 */2 * *'
- - cron: '0 1 */2 * *'
- - cron: '0 6 */2 * *'
- - cron: '0 8 */2 * *'
- - cron: '0 10 */2 * *'
- - cron: '0 14 */2 * *'
- - cron: '0 20 */2 * *'
- - cron: '0 23 */2 * *'
+ - cron: &non_ansi_cron '17 0 2-31/3 * *'
+ - cron: &java17_cron '17 1 1-28/3 * *'
+ - cron: &maven_cron '17 13 3-31/3 * *'
+ - cron: &python_3_14_cron '17 14 3-31/3 * *'
+ - cron: &java25_cron '17 17 1-28/3 * *'
+ - cron: &python_3_11_cron '17 18 3-31/3 * *'
+ - cron: &java21_cron '17 19 1-28/3 * *'
+ - cron: &maven_java21_cron '17 20 1-28/3 * *'
workflow_dispatch:
inputs:
target:
@@ -53,6 +53,14 @@ jobs:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ MAVEN_CRON: *maven_cron
+ MAVEN_JAVA21_CRON: *maven_java21_cron
+ JAVA17_CRON: *java17_cron
+ JAVA21_CRON: *java21_cron
+ JAVA25_CRON: *java25_cron
+ NON_ANSI_CRON: *non_ansi_cron
+ PYTHON_3_11_CRON: *python_3_11_cron
+ PYTHON_3_14_CRON: *python_3_14_cron
permissions:
actions: write
contents: read
@@ -63,56 +71,56 @@ jobs:
sparse-checkout: dev
- name: Maven Build
if: >-
- github.event.schedule == '0 10 */2 * *' ||
+ github.event.schedule == env.MAVEN_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'maven' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_maven.yml branch-4.3
- name: Maven Java 21 Build
if: >-
- github.event.schedule == '0 14 */2 * *' ||
+ github.event.schedule == env.MAVEN_JAVA21_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'maven_java21' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_maven_java21.yml branch-4.3
- name: Java 17 Build
if: >-
- github.event.schedule == '0 8 */2 * *' ||
+ github.event.schedule == env.JAVA17_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'java17' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_java17.yml branch-4.3
- name: Java 21 Build
if: >-
- github.event.schedule == '0 1 */2 * *' ||
+ github.event.schedule == env.JAVA21_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'java21' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_java21.yml branch-4.3
- name: Java 25 Build
if: >-
- github.event.schedule == '0 6 */2 * *' ||
+ github.event.schedule == env.JAVA25_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'java25' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_java25.yml branch-4.3
- name: Non-ANSI Build
if: >-
- github.event.schedule == '0 0 */2 * *' ||
+ github.event.schedule == env.NON_ANSI_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'non_ansi' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_non_ansi.yml branch-4.3
- name: Python 3.11 Build
if: >-
- github.event.schedule == '0 20 */2 * *' ||
+ github.event.schedule == env.PYTHON_3_11_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'python_3.11' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_python_3.11.yml branch-4.3
- name: Python 3.14 Build
if: >-
- github.event.schedule == '0 23 */2 * *' ||
+ github.event.schedule == env.PYTHON_3_14_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'python_3.14' || inputs.target == 'all'))
run: |
diff --git a/.github/workflows/branch4x_scheduler.yml
b/.github/workflows/branch4x_scheduler.yml
index 8331ef11d548..5e6db6469964 100644
--- a/.github/workflows/branch4x_scheduler.yml
+++ b/.github/workflows/branch4x_scheduler.yml
@@ -21,14 +21,14 @@ name: "Branch-4.x CI Scheduler"
on:
schedule:
- - cron: '0 4 */2 * *'
- - cron: '0 7 */2 * *'
- - cron: '0 11 */2 * *'
- - cron: '0 16 */2 * *'
- - cron: '0 18 */2 * *'
- - cron: '0 19 */2 * *'
- - cron: '0 21 */2 * *'
- - cron: '0 22 */2 * *'
+ - cron: &maven_java21_cron '17 11 2-31/3 * *'
+ - cron: &non_ansi_cron '17 14 2-31/3 * *'
+ - cron: &java17_cron '17 16 3-31/3 * *'
+ - cron: &java25_cron '17 19 2-31/3 * *'
+ - cron: &python_3_11_cron '17 23 2-31/3 * *'
+ - cron: &maven_cron '17 6 1-28/3 * *'
+ - cron: &python_3_14_cron '17 7 1-28/3 * *'
+ - cron: &java21_cron '17 8 3-31/3 * *'
workflow_dispatch:
inputs:
target:
@@ -53,6 +53,14 @@ jobs:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ MAVEN_CRON: *maven_cron
+ MAVEN_JAVA21_CRON: *maven_java21_cron
+ JAVA17_CRON: *java17_cron
+ JAVA21_CRON: *java21_cron
+ JAVA25_CRON: *java25_cron
+ NON_ANSI_CRON: *non_ansi_cron
+ PYTHON_3_11_CRON: *python_3_11_cron
+ PYTHON_3_14_CRON: *python_3_14_cron
permissions:
actions: write
contents: read
@@ -63,56 +71,56 @@ jobs:
sparse-checkout: dev
- name: Maven Build
if: >-
- github.event.schedule == '0 16 */2 * *' ||
+ github.event.schedule == env.MAVEN_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'maven' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_maven.yml branch-4.x
- name: Maven Java 21 Build
if: >-
- github.event.schedule == '0 18 */2 * *' ||
+ github.event.schedule == env.MAVEN_JAVA21_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'maven_java21' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_maven_java21.yml branch-4.x
- name: Java 17 Build
if: >-
- github.event.schedule == '0 11 */2 * *' ||
+ github.event.schedule == env.JAVA17_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'java17' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_java17.yml branch-4.x
- name: Java 21 Build
if: >-
- github.event.schedule == '0 7 */2 * *' ||
+ github.event.schedule == env.JAVA21_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'java21' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_java21.yml branch-4.x
- name: Java 25 Build
if: >-
- github.event.schedule == '0 22 */2 * *' ||
+ github.event.schedule == env.JAVA25_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'java25' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_java25.yml branch-4.x
- name: Non-ANSI Build
if: >-
- github.event.schedule == '0 4 */2 * *' ||
+ github.event.schedule == env.NON_ANSI_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'non_ansi' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_non_ansi.yml branch-4.x
- name: Python 3.11 Build
if: >-
- github.event.schedule == '0 19 */2 * *' ||
+ github.event.schedule == env.PYTHON_3_11_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'python_3.11' || inputs.target == 'all'))
run: |
./dev/dispatch-if-changed.sh build_python_3.11.yml branch-4.x
- name: Python 3.14 Build
if: >-
- github.event.schedule == '0 21 */2 * *' ||
+ github.event.schedule == env.PYTHON_3_14_CRON ||
(github.event_name == 'workflow_dispatch' &&
(inputs.target == 'python_3.14' || inputs.target == 'all'))
run: |
diff --git a/.github/workflows/build_codegen_jdk.yml
b/.github/workflows/build_codegen_jdk.yml
index 5f49d740b978..1b0a3ce7916f 100644
--- a/.github/workflows/build_codegen_jdk.yml
+++ b/.github/workflows/build_codegen_jdk.yml
@@ -29,7 +29,7 @@ name: "Build / Codegen JDK backend (master, Scala 2.13, JDK
21)"
on:
schedule:
- - cron: '37 8 */2 * *'
+ - cron: '17 16 1-28/3 * *'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_coverage.yml
b/.github/workflows/build_coverage.yml
index d792753e2aa3..5e4354f9d72d 100644
--- a/.github/workflows/build_coverage.yml
+++ b/.github/workflows/build_coverage.yml
@@ -21,7 +21,7 @@ name: "Build / Python Coverage (Python 3.12)"
on:
schedule:
- - cron: '0 10 */2 * *'
+ - cron: '17 22 1-28/3 * *'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_java21.yml
b/.github/workflows/build_java21.yml
index ac03c8c85f58..3a16e0ed879e 100644
--- a/.github/workflows/build_java21.yml
+++ b/.github/workflows/build_java21.yml
@@ -21,7 +21,7 @@ name: "Build / Java21 (Scala 2.13, JDK 21)"
on:
schedule:
- - cron: '0 4 */2 * *'
+ - cron: '17 8 1-28/3 * *'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_java25.yml
b/.github/workflows/build_java25.yml
index 2b17811f9541..6e66f4847989 100644
--- a/.github/workflows/build_java25.yml
+++ b/.github/workflows/build_java25.yml
@@ -21,7 +21,7 @@ name: "Build / Java25 (Scala 2.13, JDK 25)"
on:
schedule:
- - cron: '0 4 */2 * *'
+ - cron: '17 11 3-31/3 * *'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_maven.yml
b/.github/workflows/build_maven.yml
index ee38a36579c5..1fc64e29f333 100644
--- a/.github/workflows/build_maven.yml
+++ b/.github/workflows/build_maven.yml
@@ -21,7 +21,7 @@ name: "Build / Maven (Scala 2.13, JDK 21)"
on:
schedule:
- - cron: '0 13 */2 * *'
+ - cron: '17 13 1-28/3 * *'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_maven_java21_arm.yml
b/.github/workflows/build_maven_java21_arm.yml
index 51f2b61b09b0..0dc29651691d 100644
--- a/.github/workflows/build_maven_java21_arm.yml
+++ b/.github/workflows/build_maven_java21_arm.yml
@@ -21,7 +21,7 @@ name: "Build / Maven (Scala 2.13, JDK 21, ARM)"
on:
schedule:
- - cron: '0 15 */4 * *'
+ - cron: '17 15 * * 5'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_maven_java21_macos26.yml
b/.github/workflows/build_maven_java21_macos26.yml
index da52d79805d8..91325251b5b4 100644
--- a/.github/workflows/build_maven_java21_macos26.yml
+++ b/.github/workflows/build_maven_java21_macos26.yml
@@ -21,7 +21,7 @@ name: "Build / Maven (Scala 2.13, JDK 21, MacOS-26)"
on:
schedule:
- - cron: '0 20 */4 * *'
+ - cron: '17 3 * * 1'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_maven_java25.yml
b/.github/workflows/build_maven_java25.yml
index 9794c21bb4e3..0ebf83bdcde8 100644
--- a/.github/workflows/build_maven_java25.yml
+++ b/.github/workflows/build_maven_java25.yml
@@ -21,7 +21,7 @@ name: "Build / Maven (Scala 2.13, JDK 25)"
on:
schedule:
- - cron: '0 14 */2 * *'
+ - cron: '17 6 3-31/3 * *'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_non_ansi.yml
b/.github/workflows/build_non_ansi.yml
index 14daac8eb2e6..7a6c43a7bc3d 100644
--- a/.github/workflows/build_non_ansi.yml
+++ b/.github/workflows/build_non_ansi.yml
@@ -21,7 +21,7 @@ name: "Build / Non-ANSI (JDK 21, Scala 2.13)"
on:
schedule:
- - cron: '0 1 */2 * *'
+ - cron: '17 20 3-31/3 * *'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_python_3.11.yml
b/.github/workflows/build_python_3.11.yml
index 9627e5143728..a07103b88f66 100644
--- a/.github/workflows/build_python_3.11.yml
+++ b/.github/workflows/build_python_3.11.yml
@@ -21,7 +21,7 @@ name: "Build / Python-only (Python 3.11)"
on:
schedule:
- - cron: '0 19 */2 * *'
+ - cron: '17 10 2-31/3 * *'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_python_3.12_arm.yml
b/.github/workflows/build_python_3.12_arm.yml
index 718c9b7ab1de..98bce249aac4 100644
--- a/.github/workflows/build_python_3.12_arm.yml
+++ b/.github/workflows/build_python_3.12_arm.yml
@@ -21,7 +21,7 @@ name: "Build / Python-only (Python 3.12, ARM)"
on:
schedule:
- - cron: '0 22 */6 * *'
+ - cron: '17 3 * * 5'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_python_3.12_classic_only.yml
b/.github/workflows/build_python_3.12_classic_only.yml
index d73c628c24c0..ccde533a762f 100644
--- a/.github/workflows/build_python_3.12_classic_only.yml
+++ b/.github/workflows/build_python_3.12_classic_only.yml
@@ -21,7 +21,7 @@ name: "Build / Python-only, Classic-only (Python 3.12)"
on:
schedule:
- - cron: '0 0 */6 * *'
+ - cron: '17 15 * * 3'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_python_3.12_macos26.yml
b/.github/workflows/build_python_3.12_macos26.yml
index c18e54c2a101..f8b0b904f5b5 100644
--- a/.github/workflows/build_python_3.12_macos26.yml
+++ b/.github/workflows/build_python_3.12_macos26.yml
@@ -21,7 +21,7 @@ name: "Build / Python-only (Python 3.12, MacOS26)"
on:
schedule:
- - cron: '0 23 */2 * *'
+ - cron: '17 21 * * 5'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_python_3.12_pandas_3.yml
b/.github/workflows/build_python_3.12_pandas_3.yml
index f8d1cf915ced..f8eb38c325b6 100644
--- a/.github/workflows/build_python_3.12_pandas_3.yml
+++ b/.github/workflows/build_python_3.12_pandas_3.yml
@@ -21,7 +21,7 @@ name: "Build / Python-only (Python 3.12, Pandas 3)"
on:
schedule:
- - cron: '0 21 */2 * *'
+ - cron: '17 23 1-28/3 * *'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_python_3.13.yml
b/.github/workflows/build_python_3.13.yml
index 281225b15502..b98dbb6d1b9c 100644
--- a/.github/workflows/build_python_3.13.yml
+++ b/.github/workflows/build_python_3.13.yml
@@ -21,7 +21,7 @@ name: "Build / Python-only (Python 3.13)"
on:
schedule:
- - cron: '0 20 */2 * *'
+ - cron: '17 8 2-31/3 * *'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_python_3.14.yml
b/.github/workflows/build_python_3.14.yml
index 559556b06008..7a4071f062c0 100644
--- a/.github/workflows/build_python_3.14.yml
+++ b/.github/workflows/build_python_3.14.yml
@@ -21,7 +21,7 @@ name: "Build / Python-only (Python 3.14)"
on:
schedule:
- - cron: '0 21 */2 * *'
+ - cron: '17 5 2-31/3 * *'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_python_3.14_nogil.yml
b/.github/workflows/build_python_3.14_nogil.yml
index aae911398d37..f2ddbab5983a 100644
--- a/.github/workflows/build_python_3.14_nogil.yml
+++ b/.github/workflows/build_python_3.14_nogil.yml
@@ -21,7 +21,7 @@ name: "Build / Python-only (Python 3.14, no GIL)"
on:
schedule:
- - cron: '0 20 */6 * *'
+ - cron: '17 15 * * 1'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_python_3.15.yml
b/.github/workflows/build_python_3.15.yml
index 55cba6647c34..ff610ae8f5f0 100644
--- a/.github/workflows/build_python_3.15.yml
+++ b/.github/workflows/build_python_3.15.yml
@@ -21,7 +21,7 @@ name: "Build / Python-only (Python 3.15)"
on:
schedule:
- - cron: '0 22 */2 * *'
+ - cron: '17 1 2-31/3 * *'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_python_connect.yml
b/.github/workflows/build_python_connect.yml
index 90fbdd346d4f..e432ffedf1e5 100644
--- a/.github/workflows/build_python_connect.yml
+++ b/.github/workflows/build_python_connect.yml
@@ -21,7 +21,7 @@ name: Build / Python-only, Connect-only (Python 3.11)
on:
schedule:
- - cron: '0 19 */2 * *'
+ - cron: '17 20 2-31/3 * *'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_python_connect40.yml
b/.github/workflows/build_python_connect40.yml
index 426191fb774c..3a61deb88dc2 100644
--- a/.github/workflows/build_python_connect40.yml
+++ b/.github/workflows/build_python_connect40.yml
@@ -21,7 +21,7 @@ name: Build / Python-only, Connect-only (branch-4.0-client,
Python 3.11)
on:
schedule:
- - cron: '0 20 */2 * *'
+ - cron: '17 5 3-31/3 * *'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_python_minimum.yml
b/.github/workflows/build_python_minimum.yml
index 9ad0f9d342e9..7ec0fb5ff36b 100644
--- a/.github/workflows/build_python_minimum.yml
+++ b/.github/workflows/build_python_minimum.yml
@@ -21,7 +21,7 @@ name: "Build / Python-only (Minimum dependencies of PySpark)"
on:
schedule:
- - cron: '0 9 */2 * *'
+ - cron: '17 9 * * 4'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_rockdb_as_ui_backend.yml
b/.github/workflows/build_rockdb_as_ui_backend.yml
index 0f1844228537..5e2d90d45d56 100644
--- a/.github/workflows/build_rockdb_as_ui_backend.yml
+++ b/.github/workflows/build_rockdb_as_ui_backend.yml
@@ -21,7 +21,7 @@ name: "Build / RocksDB as UI Backend (JDK 21, Scala 2.13)"
on:
schedule:
- - cron: '0 6 */2 * *'
+ - cron: '17 10 3-31/3 * *'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_sparkr_window.yml
b/.github/workflows/build_sparkr_window.yml
index aa8ff04bde25..c9dcda579ea9 100644
--- a/.github/workflows/build_sparkr_window.yml
+++ b/.github/workflows/build_sparkr_window.yml
@@ -20,7 +20,7 @@ name: "Build / SparkR-only (4.4.3, windows-2025)"
on:
schedule:
- - cron: '0 17 */2 * *'
+ - cron: '17 9 * * 1'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/build_uds.yml b/.github/workflows/build_uds.yml
index e23d3acea928..02e18b1de291 100644
--- a/.github/workflows/build_uds.yml
+++ b/.github/workflows/build_uds.yml
@@ -21,7 +21,7 @@ name: "Build / Unix Domain Socket (JDK 21, Scala 2.13)"
on:
schedule:
- - cron: '0 1 */6 * *'
+ - cron: '17 3 * * 2'
workflow_dispatch:
jobs:
diff --git a/.github/workflows/publish_snapshot.yml
b/.github/workflows/publish_snapshot.yml
index 07b5b662b879..1808f8da0aa8 100644
--- a/.github/workflows/publish_snapshot.yml
+++ b/.github/workflows/publish_snapshot.yml
@@ -21,7 +21,7 @@ name: Publish snapshot
on:
schedule:
- - cron: '0 0 */2 * *'
+ - cron: '17 1 3-31/3 * *'
workflow_dispatch:
inputs:
branch:
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 235754d9e447..73eb92da0b5f 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -74,7 +74,7 @@ name: Release Apache Spark
on:
schedule:
- - cron: '0 7 */2 * *'
+ - cron: '17 10 1-28/3 * *'
workflow_dispatch:
inputs:
branch:
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index 091701026e14..e1cce8e0c49b 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -21,7 +21,7 @@ name: Close stale PRs
on:
schedule:
- - cron: "0 0 * * *"
+ - cron: "30 4 * * *"
jobs:
stale:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]