This is an automated email from the ASF dual-hosted git repository.
zhengruifeng pushed a commit to branch branch-4.x
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-4.x by this push:
new 58921e836873 [MINOR][INFRA][4.x] Fix `branch` input default in
build_and_test.yml
58921e836873 is described below
commit 58921e836873825f8e9a7420a6c4f7e555a2b1d7
Author: Ruifeng Zheng <[email protected]>
AuthorDate: Mon May 11 19:29:13 2026 +0800
[MINOR][INFRA][4.x] Fix `branch` input default in build_and_test.yml
### What changes were proposed in this pull request?
Update the default value of the `branch` workflow input in
`.github/workflows/build_and_test.yml` from `master` to `branch-4.x`, and drop
the stale `# Change 'master' to 'branch-4.0' in branch-4.0 branch after cutting
it.` comment.
### Why are the changes needed?
When `branch-4.x` was cut from master, the comment in `build_and_test.yml`
flagged that the default should be updated, but it wasn't. As a result, the
`Build` workflow on pushes to `branch-4.x` invokes the reusable
`build_and_test.yml` without an explicit `branch` input, which falls back to
the default `master`. The `precondition` job then runs `actions/checkout` with
`ref: master` against `apache/spark`, so the CI tests `master` rather than
`branch-4.x`.
The same misconfiguration was observed on `branch-4.2` ([example CI
run](https://github.com/apache/spark/actions/runs/25591666487/job/75130390722))
and is fixed there in a sibling PR. The same fix was already applied on
`branch-4.0` and `branch-4.1`.
### Does this PR introduce _any_ user-facing change?
No. CI-only.
### How was this patch tested?
GitHub Actions on this PR. The default takes effect on subsequent pushes to
`branch-4.x`.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Code
Closes #55797 from zhengruifeng/fix-branch-default-4.x.
Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>
---
.github/workflows/build_and_test.yml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/.github/workflows/build_and_test.yml
b/.github/workflows/build_and_test.yml
index ffcc49eaec1b..10d33ae365dc 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -30,8 +30,7 @@ on:
description: Branch to run the build against
required: false
type: string
- # Change 'master' to 'branch-4.0' in branch-4.0 branch after cutting
it.
- default: master
+ default: branch-4.x
hadoop:
description: Hadoop version to run with. HADOOP_PROFILE environment
variable should accept it.
required: false
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]