This is an automated email from the ASF dual-hosted git repository.
hello-stephen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new a71e97f37f3 [chore](ci) Stop running CI checks on master pushes
(#70587)
a71e97f37f3 is described below
commit a71e97f37f314cba281629a1979e9bdda1f93bae
Author: Mingyu Chen (Rayner) <[email protected]>
AuthorDate: Sun Nov 15 20:00:17 2026 +0800
[chore](ci) Stop running CI checks on master pushes (#70587)
### Background
The macOS BE build, large-file check, and license check each run on
pushes to `master`. The large-file and license workflows also check pull
requests, and the macOS workflow has a daily schedule for warming its
build cache.
### What problem does this PR solve?
Issue Number: None
Related PR: #70582 (example of unnecessary post-merge checks)
PR Type: Build/CI/Chore
Problem Summary:
Every merge into `master` starts these three checks, even when the
change only updates a skills submodule, as in #70582. These post-merge
runs consume runners and can mark commits as failing because of
unrelated build problems. Remove the `push` triggers and their
event-specific code while preserving the existing PR checks and daily
macOS build.
### Details
- **Affected:** The macOS BE build on `macos-15` and the large-file and
license checks on `ubuntu-latest` in GitHub Actions.
- **Developer and release impact:** Merging into `master` no longer
starts these checks. The macOS workflow keeps its daily cache warm-up;
large-file warnings and incremental license checks still run for PRs.
Local builds and release artifacts do not change.
- **License and third-party:** None. Dependencies, license rules, and
third-party artifacts do not change.
- **Rollback:** Revert this commit to restore checks on pushes to
`master`; no cache, runner, or secret changes are required.
### Testing
- Parsed all 20 workflow YAML files locally with PyYAML and verified
that none declares a `push` event. Compared against the parent revision
to confirm that all other event definitions are preserved, including the
macOS schedule and both PR triggers.
- Checked that the large-file size and PR warning scripts and all
license-check steps are unchanged. Ran `bash -n` on all seven embedded
shell steps in the modified workflows.
- Ran actionlint v1.7.12 on the three modified workflows. Both the
parent revision and this change report the same existing
`actions/checkout@v3` deprecation; validation passes when excluding that
specific diagnostic.
- No BE or FE build was run because the change only affects workflow
triggers and removes the unused push path.
### Release note
None
### Check List (For Author)
- Behavior changed: No
- Does this need documentation: No
- Pre-submission status: Ready
### AI Disclosure
- Tool: Codex (GPT-6)
- Generated: Workflow edits and this description
- Human review: not stated
Co-authored-by: morningman <[email protected]>
---
.github/workflows/be-ut-mac.yml | 3 ---
.github/workflows/lfs-warning.yml | 26 +++-----------------------
.github/workflows/license-eyes.yml | 7 +------
3 files changed, 4 insertions(+), 32 deletions(-)
diff --git a/.github/workflows/be-ut-mac.yml b/.github/workflows/be-ut-mac.yml
index 686335c26c7..d12206af1e2 100644
--- a/.github/workflows/be-ut-mac.yml
+++ b/.github/workflows/be-ut-mac.yml
@@ -18,9 +18,6 @@
name: BE UT (macOS)
on:
- push:
- branches:
- - master
schedule:
- cron: '0 4 * * *' # daily cache warm-up; PR-level runs moved out to
relieve the macOS runner queue
diff --git a/.github/workflows/lfs-warning.yml
b/.github/workflows/lfs-warning.yml
index 3e04848e6a6..54ba7e12f99 100644
--- a/.github/workflows/lfs-warning.yml
+++ b/.github/workflows/lfs-warning.yml
@@ -19,9 +19,6 @@
name: 'Check Large File'
on:
- push:
- branches:
- - master
pull_request_target:
permissions:
@@ -43,14 +40,9 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
- if [[ "${{ github.event_name }}" == "pull_request_target" ]]; then
- PR_NUM="$(jq -r '.pull_request.number' "$GITHUB_EVENT_PATH")"
- gh api
"repos/$GITHUB_REPOSITORY/pulls/${PR_NUM}/files?per_page=100" --paginate \
- --jq '.[] | select(.status == "added") | [.filename, .raw_url] |
@tsv' > "$RUNNER_TEMP/files.tsv"
- else
- gh api "repos/$GITHUB_REPOSITORY/commits/${{ github.sha }}" \
- --jq '.files[] | select(.status == "added") | [.filename,
.raw_url] | @tsv' > "$RUNNER_TEMP/files.tsv"
- fi
+ PR_NUM="$(jq -r '.pull_request.number' "$GITHUB_EVENT_PATH")"
+ gh api "repos/$GITHUB_REPOSITORY/pulls/${PR_NUM}/files?per_page=100"
--paginate \
+ --jq '.[] | select(.status == "added") | [.filename, .raw_url] |
@tsv' > "$RUNNER_TEMP/files.tsv"
echo "Added files: $(wc -l < "$RUNNER_TEMP/files.tsv")"
- name: "Check sizes against the 1MB limit"
@@ -68,7 +60,6 @@ jobs:
echo "Oversized files: $(wc -l < "$RUNNER_TEMP/oversized.tsv")"
- name: "Warn on oversized files in pull requests"
- if: github.event_name == 'pull_request_target'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
@@ -85,14 +76,3 @@ jobs:
done < "$RUNNER_TEMP/oversized.tsv"
} > "$RUNNER_TEMP/comment.md"
gh pr comment "${PR_NUM}" --body-file "$RUNNER_TEMP/comment.md"
-
- # Unlike the previous action, a direct master push with oversized files
- # now fails the check instead of being silently ignored.
- - name: "Fail on oversized files pushed to master"
- if: github.event_name == 'push'
- run: |
- if [[ -s "$RUNNER_TEMP/oversized.tsv" ]]; then
- echo "::error::Files larger than 1MB were pushed to master:"
- cat "$RUNNER_TEMP/oversized.tsv"
- exit 1
- fi
diff --git a/.github/workflows/license-eyes.yml
b/.github/workflows/license-eyes.yml
index 5d11cf04e82..de80eafd33c 100644
--- a/.github/workflows/license-eyes.yml
+++ b/.github/workflows/license-eyes.yml
@@ -19,9 +19,6 @@
name: License Check
on:
pull_request:
- push:
- branches:
- - master
workflow_dispatch:
permissions:
@@ -35,9 +32,7 @@ jobs:
concurrency:
group: license-check-${{ github.event.pull_request.number ||
github.run_id }}-${{ github.sha }}
cancel-in-progress: true
- if: |
- (github.event_name == 'pull_request') ||
- (github.event_name == 'push' && github.ref == 'refs/heads/master')
+ if: github.event_name == 'pull_request'
steps:
- name: Verify current PR head
if: github.event_name == 'pull_request'
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]