You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by pk...@apache.org on 2026/09/16 11:44:39 UTC
(logging-flume-mongodb) branch main updated: Add `build-result` job to collect matrix results (#14)
This is an automated email from the ASF dual-hosted git repository.
ppkarwasz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/logging-flume-mongodb.git
The following commit(s) were added to refs/heads/main by this push:
new a2a0bc1 Add `build-result` job to collect matrix results (#14)
a2a0bc1 is described below
commit a2a0bc153dfaef262b20fb77269cd11f2d976bfa
Author: Piotr P. Karwasz <pk...@apache.org>
AuthorDate: Wed Sep 16 13:44:34 2026 +0200
Add `build-result` job to collect matrix results (#14)
* Add `build-result` job to collect matrix results
The `build` matrix runs on all three platforms and passes reliably, so all of
them can be required. Instead of listing each platform in the ruleset, add a
single `build-result` job that fails unless the whole matrix succeeded, and
require that check in `.asf.yaml`.
Assisted-By: Claude Fable 5.1 <no...@anthropic.com>
* fix: required workflow name
---
.asf.yaml | 2 +-
.github/workflows/build.yaml | 16 ++++++++++++++++
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/.asf.yaml b/.asf.yaml
index 23487df..eb4d1be 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -72,7 +72,7 @@ github:
required_status_checks:
# The GitHub Actions app
- app_slug: github-actions
- name: "build / build (ubuntu-latest)"
+ name: "build-result"
# The GitHub Advanced Security app
- app_slug: github-advanced-security
name: "CodeQL"
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index bbade2b..dc7f44f 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -41,6 +41,22 @@ jobs:
with:
java-version: 17
+ # Collects the results of the `build` matrix into a single check.
+ # This is the only check that needs to be listed as required in `.asf.yaml`.
+ build-result:
+ needs: build
+ # Run even if `build` failed or was canceled, so that the check is always reported.
+ if: always()
+ runs-on: ubuntu-slim
+ steps:
+ - name: Verify build result
+ env:
+ # `success` only if all the jobs of the matrix succeeded.
+ BUILD_RESULT: ${{ needs.build.result }}
+ run: |
+ echo "Build result: $BUILD_RESULT"
+ test "$BUILD_RESULT" = "success"
+
deploy-snapshot:
needs: build
if: github.repository == 'apache/logging-flume-mongodb' && github.ref_name == 'main'