This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new b31fb0565bb HDDS-17537. Replace per-commit build on master with
scheduled one (#11839)
b31fb0565bb is described below
commit b31fb0565bb2c01835eec550867ee62d5fbbbe08
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Wed Nov 4 11:41:40 2026 +0100
HDDS-17537. Replace per-commit build on master with scheduled one (#11839)
---
.github/workflows/ci.yml | 22 ++++----
.github/workflows/post-commit.yml | 6 +--
.github/workflows/schedule-main-build.yml | 86 +++++++++++++++++++++++++++++++
3 files changed, 98 insertions(+), 16 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6df048746d5..a44e8f0e6af 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -44,7 +44,7 @@ env:
# MAVEN_ARGS and MAVEN_OPTS are duplicated in several workflows, please keep
in sync
MAVEN_ARGS: --batch-mode --settings ${{ github.workspace
}}/dev-support/ci/maven-settings.xml -Ddevelocity.user.config=${{
github.workspace }}/.mvn/develocity-asf.xml
MAVEN_OPTS: -Daether.connector.http.connectionMaxTtl=25
-Daether.connector.http.retryHandler.count=5
-Daether.connector.http.retryHandler.intervalMax=30000
- OZONE_WITH_COVERAGE: ${{ github.event_name == 'push' }}
+ OZONE_WITH_COVERAGE: ${{ github.event_name != 'pull_request' }}
permissions: { }
@@ -73,25 +73,25 @@ jobs:
java-version: ${{ env.TEST_JAVA_VERSION }}
with-coverage: ${{ env.OZONE_WITH_COVERAGE }}
steps:
- - name: "Checkout ${{ github.ref }} / ${{ github.sha }} (push)"
+ - name: "Checkout ${{ github.ref }} / ${{ github.sha }} (${{
github.event_name }})"
uses: actions/checkout@v7
with:
persist-credentials: false
- if: github.event_name == 'push'
+ if: github.event_name != 'pull_request' && inputs.ref == ''
- name: "Checkout ${{ github.sha }} with its parent (pull request)"
uses: actions/checkout@v7
with:
ref: ${{ github.sha }}
fetch-depth: 2
persist-credentials: false
- if: github.event_name == 'pull_request'
- - name: "Checkout ${{ inputs.ref }} given in workflow input (manual
dispatch)"
+ if: github.event_name == 'pull_request'
+ - name: "Checkout ${{ inputs.ref }} given in workflow input (${{
github.event_name }})"
uses: actions/checkout@v7
with:
ref: ${{ inputs.ref }}
persist-credentials: false
- if: github.event_name == 'workflow_dispatch'
- - name: Get SHA of ${{ inputs.ref || github.ref }}
+ if: github.event_name != 'pull_request' && inputs.ref != ''
+ - name: Get SHA
id: get-sha
run: |
if [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]]; then
@@ -152,10 +152,6 @@ jobs:
needs:
- build-info
- build
- if: |
- needs.build-info.outputs.needs-build == 'true' &&
- (github.repository != 'apache/ozone' || github.event_name ==
'pull_request' ||
- (github.event_name == 'push' && github.ref_name == 'master'))
uses: $/.github/workflows/generate-config-doc.yml
with:
sha: ${{ needs.build-info.outputs.sha }}
@@ -164,7 +160,7 @@ jobs:
needs:
- generate-config-doc
if: |
- github.event_name == 'push' &&
+ github.event_name != 'pull_request' &&
github.repository == 'apache/ozone' &&
github.ref_name == 'master'
uses: $/.github/workflows/update-ozone-site-config-doc.yml
@@ -477,7 +473,7 @@ jobs:
coverage:
runs-on: ubuntu-24.04
timeout-minutes: 30
- if: github.event_name == 'push'
+ if: github.event_name != 'pull_request'
needs:
- build-info
- acceptance
diff --git a/.github/workflows/post-commit.yml
b/.github/workflows/post-commit.yml
index bd9023c03a2..53d8a324615 100644
--- a/.github/workflows/post-commit.yml
+++ b/.github/workflows/post-commit.yml
@@ -17,6 +17,9 @@ on:
pull_request:
types: [opened, ready_for_review, synchronize]
push:
+ branches-ignore:
+ - master
+ - 'dependabot**'
paths-ignore:
# ignore files/dirs irrelevant for CI
- '.asf.yaml'
@@ -47,9 +50,6 @@ permissions:
contents: read
jobs:
CI:
- if: github.event_name == 'pull_request'
- || (github.repository == 'apache/ozone' && !startsWith(github.ref_name,
'dependabot'))
- || (github.repository != 'apache/ozone' && github.ref_name != 'master')
uses: $/.github/workflows/ci.yml
secrets:
DEVELOCITY_ACCESS_KEY: ${{ secrets.OZONE_DEVELOCITY_ACCESS_KEY }}
diff --git a/.github/workflows/schedule-main-build.yml
b/.github/workflows/schedule-main-build.yml
new file mode 100644
index 00000000000..ec80d1ca5f9
--- /dev/null
+++ b/.github/workflows/schedule-main-build.yml
@@ -0,0 +1,86 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# This workflow runs CI on the default branch periodically.
+
+name: build-default-branch
+
+on:
+ schedule:
+ - cron: '33 */4 * * *'
+ workflow_dispatch:
+ # manual trigger: for testing in forks, and safety net in apache
+
+concurrency:
+ # only one build at a time
+ group: scheduled-build
+ cancel-in-progress: false
+
+permissions:
+ contents: read
+
+env:
+ MARKER_FILE: scheduled-build
+ STASH_KEY: scheduled-build-${{ github.sha }}
+
+run-name: CI for ${{ github.sha }} on ${{ github.event_name }}
+
+jobs:
+ pre-check:
+ runs-on: ubuntu-slim
+ if: github.repository_owner == 'apache' || github.event_name ==
'workflow_dispatch'
+ outputs:
+ hit: ${{ steps.stash.outputs.stash-hit || 'false' }}
+ steps:
+ - name: Check for previous successful build of ${{ github.sha }}
+ id: stash
+ uses: apache/infrastructure-actions/stash/restore@restore/v1
+ with:
+ clean: true
+ path: ${{ env.MARKER_FILE }}
+ key: ${{ env.STASH_KEY }}
+ continue-on-error: true
+ - name: Debug
+ id: debug
+ run: |
+ echo "Found successful build of $GITHUB_SHA: $found"
+ env:
+ found: ${{ steps.stash.outputs.stash-hit == 'true' }}
+
+ CI:
+ needs: pre-check
+ # no scheduled run in forks
+ if: needs.pre-check.outputs.hit != 'true' || github.event_name ==
'workflow_dispatch'
+ uses: $/.github/workflows/ci.yml
+ secrets:
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.OZONE_DEVELOCITY_ACCESS_KEY }}
+ OZONE_WEBSITE_BUILD: ${{ secrets.OZONE_WEBSITE_BUILD }}
+ SONARCLOUD_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
+
+ store-success:
+ needs: CI
+ runs-on: ubuntu-slim
+ steps:
+ - name: Create marker file
+ run: |
+ echo "$GITHUB_SHA" > "$MARKER_FILE"
+
+ - name: Record successful build of ${{ github.sha }}
+ uses: apache/infrastructure-actions/stash/save@save/v1
+ with:
+ path: ${{ env.MARKER_FILE }}
+ key: ${{ env.STASH_KEY }}
+ retention-days: 90
+ continue-on-error: true
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]