You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "nevzheng (via GitHub)" <gi...@apache.org> on 2026/08/21 02:55:19 UTC
[PR] [#12544] feat(ci): aggregate reusable suites into one Required CI check [gravitino]
nevzheng opened a new pull request, #12545:
URL: https://github.com/apache/gravitino/pull/12545
### What changes were proposed in this pull request?
- New `.github/workflows/required-ci.yml` β the sole `pull_request` listener. It fans out to the public CI suites via `workflow_call` and a terminal job aggregates all results into one check named `Required CI` (green only when every applicable suite is `success`; a path-skipped suite counts as `success`).
- 14 suite workflows each gain a `workflow_call` trigger with a `required_ci` boolean input and lose their direct `pull_request` trigger (the parent is the sole listener, avoiding duplicate runs). Each keeps its `push` trigger and its own path-based skip, so branch builds and per-PR filtering are unchanged.
- `conflict-marker-check` and `asf-allowlist-check` are left standalone (deliberately independent so a path filter cannot skip them).
### Why are the changes needed?
`main` has no required status checks, so a PR can merge on review approval alone even when CI is red (#12531 was `BLOCKED` only on `REVIEW_REQUIRED` while every check was green; a failing `build` reports `UNSTABLE`, not `BLOCKED`). This lets `main` break silently and blocks any auto-merge story. One enforceable `Required CI` check lets a `main` ruleset gate merges on CI and enables auto-merge. It is also the foundation for the CI speed epic (#3834) β one reliable aggregate check lets redundant PR CI be consolidated without losing the gate.
### Does this PR introduce _any_ user-facing change?
No API or property changes. Contributor-facing only: PRs show the same per-suite checks as today, plus one `Required CI` aggregate. No contributor workflow change.
### How was this patch tested?
- YAML syntax validated for all 32 workflow files with PyYAML.
- Structural check: every `uses:` in the parent resolves to a child exposing `workflow_call` with a `required_ci` input; `push` triggers remain on all 14 children.
- Not yet exercised live. Rollout is staged: land this PR (no ruleset yet) β canary on path-skip and full-run PRs, confirming a check named exactly `Required CI` reports success and that `coverage-comment.yml`'s `workflow_run` on `build` still fires under `workflow_call` β enable the `main` ruleset requiring `Required CI` + `conflict-marker-check` (strict) and auto-merge (squash).
Fix: #12544
Nevin Sent from my π€ (Cursor)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#12544] feat(ci): aggregate reusable suites into one Required CI check [gravitino]
Posted by "nevzheng (via GitHub)" <gi...@apache.org>.
nevzheng commented on code in PR #12545:
URL: https://github.com/apache/gravitino/pull/12545#discussion_r3905978400
##########
.github/workflows/required-ci.yml:
##########
@@ -0,0 +1,187 @@
+#
+# 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.
+#
+
+# Aggregates the reusable CI suites into one stable `Required CI` check that a
+# `main` ruleset can require, so merges are gated on CI and not on review
+# alone. This parent is the sole pull-request listener; each child suite is
+# invoked via `workflow_call` and keeps its own path-based skip, so a PR that
+# touches only docs no-ops every suite but still reports a green `Required CI`.
+# Each called workflow also appears as its own check in the PR checks panel,
+# so contributors keep per-suite visibility. `push` triggers on the children
+# are unchanged, so branch builds behave exactly as before.
+#
+# Rollout is staged: land this workflow (no ruleset yet) -> canary on a few PRs
+# -> enable the `main` ruleset requiring `Required CI` (and the standalone
+# `conflict-marker-check`). Fully reversible: delete this file and restore the
+# children's `pull_request:` trigger.
+#
+# The workflow `name` is a contract: coverage-comment.yml's workflow_run
+# listener matches `Required CI`. Do not rename it without updating that file.
+name: Required CI
+
+on:
+ pull_request:
+ branches: [main, branch-*]
+ # Minimal event set: a new PR, a new push to an open PR, or a reopened PR.
+ # Excluding labeled/unlabeled/edited avoids redundant runs (upstream has
+ # no opt-in label; every PR runs CI).
+ types: [opened, synchronize, reopened]
+
+concurrency:
+ group: required-ci-${{ github.event.pull_request.number || github.ref }}
+ # Cancel the superseded PR run. Children already cancel in-progress; the
+ # parent must too or a second push waits out a full stale 14-suite run.
+ cancel-in-progress: true
+
+jobs:
+ build:
+ uses: ./.github/workflows/build.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ backend:
+ uses: ./.github/workflows/backend-integration-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ spark:
+ uses: ./.github/workflows/spark-integration-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ flink:
+ uses: ./.github/workflows/flink-integration-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ trino:
+ uses: ./.github/workflows/trino-integration-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ iceberg_rest_trino:
+ uses: ./.github/workflows/iceberg-rest-trino-integration-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ python:
+ uses: ./.github/workflows/python-integration-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ frontend:
+ uses: ./.github/workflows/frontend-integration-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ access_control:
+ uses: ./.github/workflows/access-control-integration-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ idp_basic:
+ uses: ./.github/workflows/idp-basic-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ mcp:
+ uses: ./.github/workflows/mcp-integration-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ maintenance:
+ uses: ./.github/workflows/maintenance-integration-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ contrib_catalog:
+ uses: ./.github/workflows/contrib-catalog-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ web_ui:
+ uses: ./.github/workflows/web-ui-tests.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ # Aggregate every reusable suite into one check. `if: always()` runs even
+ # when an upstream suite is skipped (path filter), because a skipped suite
+ # reports `success` and must not fail the aggregate. The job fails only if
+ # any suite reports a non-success result.
+ required_ci:
+ name: Required CI
+ if: always()
+ needs:
+ - build
+ - backend
+ - spark
+ - flink
+ - trino
+ - iceberg_rest_trino
+ - python
+ - frontend
+ - access_control
+ - idp_basic
+ - mcp
+ - maintenance
+ - contrib_catalog
+ - web_ui
Review Comment:
Done. `Test Charts` and `asf-allowlist-check` are reusable calls under Required CI (`charts`, `asf_allowlist`). Chart `lint-test` still skips when those paths miss; the reusable call stays success. Allowlist always runs. `conflict-marker-check` stays standalone.
Implemented in 8293af98b.
Nevin
Sent from my π€ (Cursor)
##########
dev/ci/test_required_ci.py:
##########
@@ -0,0 +1,292 @@
+#!/usr/bin/env python3
+# 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.
+
+"""Check the Required CI parent/child contract without starting Actions.
+
+This script does not contact GitHub. It reads the checked-in workflow
+sources and asserts the contract this PR relies on:
+
+- the parent is the sole pull_request listener for the aggregated suites
+- each suite is reusable via workflow_call + required_ci and keeps push
+- Required CI is a static always() aggregate that fails on any non-success
+- conflict-marker-check stays standalone and is not part of the aggregate
+- required-mode concurrency keys are unique per suite
+- standalone (push) keys use github.workflow, not a shared 'standalone' literal
+- the parent cancels superseded PR runs
+- web-ui path-filters inside the called workflow
+- coverage-comment listens for the Required CI parent, not a standalone build run
+"""
+
+import re
+from pathlib import Path
+
+
+REPO_ROOT = Path(__file__).resolve().parents[2]
+WORKFLOW_DIR = REPO_ROOT / ".github" / "workflows"
+REQUIRED_CI_WORKFLOW = WORKFLOW_DIR / "required-ci.yml"
+CONFLICT_MARKER_WORKFLOW = WORKFLOW_DIR / "conflict-marker-check.yml"
+COVERAGE_COMMENT_WORKFLOW = WORKFLOW_DIR / "coverage-comment.yml"
+
+SUITE_WORKFLOWS = {
Review Comment:
Done. The contract script now discovers `*.yml` and `*.yaml`, requires every `pull_request` workflow to be this parent, an aggregated suite, or an explicit allowlist (`conflict-marker-check.yml`), and runs from Required CI.
Implemented in 8293af98b.
Nevin
Sent from my π€ (Cursor)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#12544] feat(ci): aggregate reusable suites into one Required CI check [gravitino]
Posted by "nevzheng (via GitHub)" <gi...@apache.org>.
nevzheng commented on code in PR #12545:
URL: https://github.com/apache/gravitino/pull/12545#discussion_r3906020565
##########
.github/workflows/coverage-comment.yml:
##########
@@ -1,19 +1,35 @@
name: Coverage Comment
+# Sidecar that posts the Jacoco coverage comment. It must stay a separate
+# workflow: a pull_request from a fork gets a read-only GITHUB_TOKEN, so the
+# Required CI / build run cannot comment. workflow_run runs on the base repo
+# with write permission and does not check out PR code.
+#
+# Listen for the PR entry point, not `build`. After Required CI aggregation,
+# build.yml is only workflow_call on PRs; GitHub does not emit workflow_run
+# for a called workflow. Artifacts uploaded inside that call belong to the
+# caller run, so download uses this workflow_run.id (the Required CI run).
+#
+# The workflow name below must match required-ci.yml `name: Required CI`.
+# workflow_run workflows are loaded from the default branch, so this retarget
+# takes effect after merge; this PR itself still uses main's old listener.
on:
workflow_run:
- workflows: ["build"]
+ workflows: ["Required CI"]
types: [completed]
permissions:
+ actions: read
pull-requests: write
jobs:
comment:
runs-on: ubuntu-latest
- if: >
- github.event.workflow_run.event == 'pull_request' &&
- github.event.workflow_run.conclusion == 'success'
+ # Any completed PR run of Required CI. Do not require conclusion ==
+ # success: a red sibling suite (spark, etc.) must not hide a coverage
+ # report that build already uploaded. If build skipped or failed before
+ # upload, the download step fails and we post nothing.
+ if: github.event.workflow_run.event == 'pull_request'
Review Comment:
Done. Cancelled/skipped Required CI runs are ignored. The sidecar no longer reads `pr-number.txt`; it resolves the PR from `workflow_run` and posts only when the live head SHA, repo, and branch match. The comment includes the SHA.
Implemented in 188968529.
Nevin
Sent from my π€ (Cursor)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#12544] feat(ci): aggregate reusable suites into one Required CI check [gravitino]
Posted by "nevzheng (via GitHub)" <gi...@apache.org>.
nevzheng commented on code in PR #12545:
URL: https://github.com/apache/gravitino/pull/12545#discussion_r3906417843
##########
.github/workflows/coverage-comment.yml:
##########
@@ -1,19 +1,35 @@
name: Coverage Comment
+# Sidecar that posts the Jacoco coverage comment. It must stay a separate
+# workflow: a pull_request from a fork gets a read-only GITHUB_TOKEN, so the
+# Required CI / build run cannot comment. workflow_run runs on the base repo
+# with write permission and does not check out PR code.
+#
+# Listen for the PR entry point, not `build`. After Required CI aggregation,
+# build.yml is only workflow_call on PRs; GitHub does not emit workflow_run
+# for a called workflow. Artifacts uploaded inside that call belong to the
+# caller run, so download uses this workflow_run.id (the Required CI run).
+#
+# The workflow name below must match required-ci.yml `name: Required CI`.
+# workflow_run workflows are loaded from the default branch, so this retarget
+# takes effect after merge; this PR itself still uses main's old listener.
on:
workflow_run:
- workflows: ["build"]
+ workflows: ["Required CI"]
types: [completed]
permissions:
+ actions: read
pull-requests: write
jobs:
comment:
runs-on: ubuntu-latest
- if: >
- github.event.workflow_run.event == 'pull_request' &&
- github.event.workflow_run.conclusion == 'success'
+ # Any completed PR run of Required CI. Do not require conclusion ==
+ # success: a red sibling suite (spark, etc.) must not hide a coverage
+ # report that build already uploaded. If build skipped or failed before
+ # upload, the download step fails and we post nothing.
+ if: github.event.workflow_run.event == 'pull_request'
Review Comment:
Done. In `188968529` cancelled/skipped Required CI runs are ignored, the sidecar no longer reads `pr-number.txt`, and it posts only when the live head SHA, repo, and branch match. `b9cba713a` moved those rules into `coverage_comment.py` and added tests.
Nevin
Sent from my π€ (Cursor)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#12544] feat(ci): aggregate reusable suites into one Required CI check [gravitino]
Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on code in PR #12545:
URL: https://github.com/apache/gravitino/pull/12545#discussion_r3827972970
##########
design-docs/experimental-features/experimental-features.md:
##########
@@ -0,0 +1,310 @@
+<!--
+ 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.
+-->
+
+# Design: Experimental Features in Apache Gravitino
Review Comment:
This file should not be included in this PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#12544] feat(ci): aggregate reusable suites into one Required CI check [gravitino]
Posted by "nevzheng (via GitHub) via commits" <co...@gravitino.apache.org>.
nevzheng closed pull request #12545: [#12544] feat(ci): aggregate reusable suites into one Required CI check
URL: https://github.com/apache/gravitino/pull/12545
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#12544] feat(ci): aggregate reusable suites into one Required CI check [gravitino]
Posted by "nevzheng (via GitHub)" <gi...@apache.org>.
nevzheng commented on code in PR #12545:
URL: https://github.com/apache/gravitino/pull/12545#discussion_r3906539956
##########
.github/workflows/build.yml:
##########
@@ -2,20 +2,22 @@ name: build
# Controls when the workflow will run
on:
- # Triggers the workflow on push or pull request events but only for the "main" branch
+ # Triggered by the Required CI orchestrator (workflow_call) or by pushes.
+ workflow_call:
Review Comment:
Done. In `8dba85c86` `compile-check` and `build` skip when the PR is only `docs/assets/**` or `web-v2/**`. Those rules live in `build_relevant.py` and added tests.
Nevin
Sent from my π€ (Cursor)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#12544] feat(ci): aggregate reusable suites into one Required CI check [gravitino]
Posted by "nevzheng (via GitHub)" <gi...@apache.org>.
nevzheng commented on PR #12545:
URL: https://github.com/apache/gravitino/pull/12545#issuecomment-5502598374
`29e0d82d2` fixes the Required CI concurrency collision.
A callee still sees the **caller** `github` context: `event_name` stays `pull_request`, and `github.workflow` is `Required CI`. The old `event_name == 'workflow_call'` guard never fired, so every suite shared `Required CI-<pr>` with `cancel-in-progress: true`. Fifteen of sixteen jobs cancelled immediately ([run 33551140739](https://github.com/apache/gravitino/actions/runs/33551140739)).
Each suite now hardcodes a unique group (`required-build-<pr>`, `required-spark-<pr>`, β¦). Verifying on [run 33575217845](https://github.com/apache/gravitino/actions/runs/33575217845) β 0 cancelled so far.
Nevin
Sent from my π€ (Cursor)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#12544] feat(ci): aggregate reusable suites into one Required CI check [gravitino]
Posted by "nevzheng (via GitHub) via commits" <co...@gravitino.apache.org>.
nevzheng commented on PR #12545:
URL: https://github.com/apache/gravitino/pull/12545#issuecomment-6657765397
Stepping away from the project, closing as not planned.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#12544] feat(ci): aggregate reusable suites into one Required CI check [gravitino]
Posted by "nevzheng (via GitHub)" <gi...@apache.org>.
nevzheng commented on code in PR #12545:
URL: https://github.com/apache/gravitino/pull/12545#discussion_r3849993246
##########
.github/workflows/access-control-integration-test.yml:
##########
@@ -2,14 +2,19 @@ name: Access Control Integration Test
# Controls when the workflow will run
on:
- # Triggers the workflow on push or pull request events but only for the "main" branch
+ # Triggered by the Required CI orchestrator (workflow_call) or by pushes.
+ workflow_call:
+ inputs:
+ required_ci:
+ description: Run this suite as part of the Required CI orchestrator.
+ required: false
+ type: boolean
+ default: false
push:
branches: [ "main", "branch-*" ]
- pull_request:
- branches: [ "main", "branch-*" ]
concurrency:
- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ group: ${{ inputs.required_ci && 'required-access-control' || 'standalone' }}-${{ github.event.pull_request.number || github.ref }}
Review Comment:
Agreed β the shared `'standalone'` literal put every push-to-main suite in one group and cancelled all but the last starter.
Fixed in 5b48b8af1 with your suggested form: `required-<suite> || github.workflow`.
- Required path keeps the unique `required-*` literals. Inside a called workflow `github.workflow` is the caller name (`Required CI`), so using it there would collapse all 14 suites again.
- Standalone (push / dispatch) uses `github.workflow` because the child is then the entry point, so each suite gets its own name.
`dev/ci/test_required_ci.py` now rejects a shared `'standalone'` key.
Nevin
Sent from my π€ (Cursor)
##########
.github/workflows/web-ui-tests.yml:
##########
@@ -1,16 +1,18 @@
name: Web UI Tests
on:
Review Comment:
Agreed β `workflow_call` has no `paths:` filter, so the parent was running the full pnpm suite on every PR.
Fixed in 5b48b8af1: `web-ui-tests.yml` now has the same internal `changes` / `dorny/paths-filter` job as the other suites (`web/web/**` plus this workflow file). `test` skips when those paths miss. The reusable call still succeeds, so Required CI stays green on docs/Java-only PRs.
Also added the same concurrency shape (`required-web-ui` || `github.workflow`).
Nevin
Sent from my π€ (Cursor)
##########
.github/workflows/required-ci.yml:
##########
@@ -0,0 +1,179 @@
+#
+# 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.
+#
+
+# Aggregates the reusable CI suites into one stable `Required CI` check that a
+# `main` ruleset can require, so merges are gated on CI and not on review
+# alone. This parent is the sole pull-request listener; each child suite is
+# invoked via `workflow_call` and keeps its own path-based skip, so a PR that
+# touches only docs no-ops every suite but still reports a green `Required CI`.
+# Each called workflow also appears as its own check in the PR checks panel,
+# so contributors keep per-suite visibility. `push` triggers on the children
+# are unchanged, so branch builds behave exactly as before.
+#
+# Rollout is staged: land this workflow (no ruleset yet) -> canary on a few PRs
+# -> enable the `main` ruleset requiring `Required CI` (and the standalone
+# `conflict-marker-check`). Fully reversible: delete this file and restore the
+# children's `pull_request:` trigger.
+name: Required CI
+
+on:
+ pull_request:
+ branches: [main, branch-*]
+ # Minimal event set: a new PR, a new push to an open PR, or a reopened PR.
+ # Excluding labeled/unlabeled/edited avoids redundant runs (upstream has
+ # no opt-in label; every PR runs CI).
+ types: [opened, synchronize, reopened]
+
+concurrency:
+ group: required-ci-${{ github.event.pull_request.number || github.ref }}
Review Comment:
Agreed β `cancel-in-progress: false` serialized a full 14-suite run behind a stale push.
Fixed in 5b48b8af1: parent is `cancel-in-progress: true` again. The earlier `false` was avoiding a mid-flight red check; that was the wrong tradeoff. A superseded PR run should cancel so the latest commit starts immediately. Children already cancel in-progress; the parent has to as well.
Nevin
Sent from my π€ (Cursor)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#12544] feat(ci): aggregate reusable suites into one Required CI check [gravitino]
Posted by "nevzheng (via GitHub)" <gi...@apache.org>.
nevzheng commented on PR #12545:
URL: https://github.com/apache/gravitino/pull/12545#issuecomment-5406233417
@jerryshao ledger after a wider search, then the three review fixes.
**Why other CI names disappeared:** the children no longer self-listen on `pull_request`. They run as nested jobs under **Required CI**. On this PR you should still see one check per suite, nested under the parent β not 14 independent workflow runs. That is the intended shape (Marc Philipp, 2026-08-10: one required check; path filters inside jobs).
**What was actually broken (your review, 2026-08-21):**
| ID | Ask | Disposition |
| --- | --- | --- |
| J1 | Drop unrelated SPIP | Already dropped; threads left open |
| J2 | Shared `'standalone'` cancels push CI | Fixed in 5b48b8af1: `required-<suite>` \|\| `github.workflow` |
| J3 | `web-ui-tests` lost `web/web/**` | Fixed in 5b48b8af1: internal `changes` / dorny |
| J4 | Parent `cancel-in-progress: false` serializes PRs | Fixed in 5b48b8af1: `true` |
| J5 | Other CI doesn't run | Children nest under Required CI; after J2, push-to-main should stop eating sibling suites |
**Internet notes we used:** `github.event_name` inside a reusable workflow is the caller's event, never `workflow_call` (actions/runner#3146). `github.workflow` in a callee is the caller name β using it on both sides deadlocks (SO 78101326). Required path stays on unique `required-*` literals for that reason.
Source contract: `python3 dev/ci/test_required_ci.py` (passed locally; does not start Actions).
Nevin
Sent from my π€ (Cursor)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#12544] feat(ci): aggregate reusable suites into one Required CI check [gravitino]
Posted by "nevzheng (via GitHub)" <gi...@apache.org>.
nevzheng commented on PR #12545:
URL: https://github.com/apache/gravitino/pull/12545#issuecomment-5406473493
@jerryshao On the coverage-comment finding in your Aug 21 review:
We kept the sidecar (fork PRs cannot comment from the `pull_request` run). It now listens for **Required CI**, not a standalone `build` run. `build.yml` still generates and uploads `coverage-report` on PRs; that artifact sits on the parent run, which is the `run-id` the sidecar already downloads.
If the artifact is missing (path-skip, build failed before upload), the sidecar logs `ACTION=skip` / `REASON=no coverage-report artifact` and stays green. It does not fail Required CI. A red sibling suite no longer hides a report `build` already uploaded.
`python3 dev/ci/test_required_ci.py` passed locally. It now asserts the listener is `Required CI` and that the skip path exists. We cannot live-canary the post on this PR: `workflow_run` workflows are loaded from the default branch, so this retarget takes effect after merge. The next PR is the canary β Required CI completes, Coverage Comment starts, comment appears if `build` uploaded the artifact.
Nevin
Sent from my π€ (Cursor)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#12544] feat(ci): aggregate reusable suites into one Required CI check [gravitino]
Posted by "nevzheng (via GitHub)" <gi...@apache.org>.
nevzheng commented on code in PR #12545:
URL: https://github.com/apache/gravitino/pull/12545#discussion_r3849994398
##########
design-docs/experimental-features/experimental-features.md:
##########
@@ -0,0 +1,310 @@
+<!--
Review Comment:
Same as the other thread: dropped. This PR is workflows-only; the experimental SPIP stays on #12471.
Nevin
Sent from my π€ (Cursor)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#12544] feat(ci): aggregate reusable suites into one Required CI check [gravitino]
Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on code in PR #12545:
URL: https://github.com/apache/gravitino/pull/12545#discussion_r3828072624
##########
.github/workflows/required-ci.yml:
##########
@@ -0,0 +1,179 @@
+#
+# 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.
+#
+
+# Aggregates the reusable CI suites into one stable `Required CI` check that a
+# `main` ruleset can require, so merges are gated on CI and not on review
+# alone. This parent is the sole pull-request listener; each child suite is
+# invoked via `workflow_call` and keeps its own path-based skip, so a PR that
+# touches only docs no-ops every suite but still reports a green `Required CI`.
+# Each called workflow also appears as its own check in the PR checks panel,
+# so contributors keep per-suite visibility. `push` triggers on the children
+# are unchanged, so branch builds behave exactly as before.
+#
+# Rollout is staged: land this workflow (no ruleset yet) -> canary on a few PRs
+# -> enable the `main` ruleset requiring `Required CI` (and the standalone
+# `conflict-marker-check`). Fully reversible: delete this file and restore the
+# children's `pull_request:` trigger.
+name: Required CI
+
+on:
+ pull_request:
+ branches: [main, branch-*]
+ # Minimal event set: a new PR, a new push to an open PR, or a reopened PR.
+ # Excluding labeled/unlabeled/edited avoids redundant runs (upstream has
+ # no opt-in label; every PR runs CI).
+ types: [opened, synchronize, reopened]
+
+concurrency:
+ group: required-ci-${{ github.event.pull_request.number || github.ref }}
Review Comment:
**correctness:** this concurrency group is keyed only by PR number (`required-ci-${{ github.event.pull_request.number || github.ref }}`), and paired below with `cancel-in-progress: false`. So consecutive pushes to the same open PR serialize full ~14-suite CI runs instead of cancelling the stale one.
A contributor pushes twice in quick succession; the second push's Required CI run is queued and has to wait for the first (now-superseded) commit's full run to finish β potentially tens of minutes to an hour β before it even starts, delaying feedback on the latest commit and burning CI compute on an already-obsolete one. Given every child suite already cancels in-progress runs on new pushes (per the concurrency-group changes above), it seems inconsistent for the parent orchestrator not to.
##########
.github/workflows/access-control-integration-test.yml:
##########
@@ -2,14 +2,19 @@ name: Access Control Integration Test
# Controls when the workflow will run
on:
- # Triggers the workflow on push or pull request events but only for the "main" branch
+ # Triggered by the Required CI orchestrator (workflow_call) or by pushes.
+ workflow_call:
+ inputs:
+ required_ci:
+ description: Run this suite as part of the Required CI orchestrator.
+ required: false
+ type: boolean
+ default: false
push:
branches: [ "main", "branch-*" ]
- pull_request:
- branches: [ "main", "branch-*" ]
concurrency:
- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ group: ${{ inputs.required_ci && 'required-access-control' || 'standalone' }}-${{ github.event.pull_request.number || github.ref }}
Review Comment:
**correctness:** all 13 modified suite workflows (this one and backend-integration-test, build, contrib-catalog-test, flink, frontend, iceberg-rest-trino, idp-basic, maintenance, mcp, python, spark, trino) use the identical literal string `'standalone'` as the false-branch of this concurrency-group ternary, replacing the previously-unique `github.workflow` key.
On any push to `main`/`branch-*` (or `workflow_dispatch`), `inputs.required_ci` is falsy, so every one of these 13 workflows resolves its concurrency group to the same string `standalone-refs/heads/<branch>`. Since each keeps `cancel-in-progress: true`, GitHub Actions treats them as one shared queue and cancels all but the most recently started run β silently cancelling most of build/backend/spark/flink/trino/etc. on every merge to main. This reintroduces, at push-time scope, the exact cross-suite cancellation bug this PR's own last two commits were written to fix for the PR flow.
Suggest keying the standalone branch on `github.workflow` (as before) rather than a shared literal, e.g. `${{ inputs.required_ci && 'required-access-control' || github.workflow }}-...`.
##########
design-docs/experimental-features/experimental-features.md:
##########
@@ -0,0 +1,310 @@
+<!--
Review Comment:
**scope:** this 310-line SPIP design doc (an experimental-feature-gate framework) doesn't exist on `main` and is unrelated to the Required CI aggregation this PR is titled and scoped around. Bundling it in means reviewers focused on validating the CI aggregation logic are unlikely to give this draft design doc the scrutiny a standalone PR would get, and the two unrelated concerns can't be reviewed, approved, or reverted independently of each other once merged together. Worth splitting into its own PR.
##########
.github/workflows/web-ui-tests.yml:
##########
@@ -1,16 +1,18 @@
name: Web UI Tests
on:
Review Comment:
**correctness:** this workflow's `pull_request` trigger (previously gated by `paths: web/web/**`) is replaced by `workflow_call`, which doesn't support path filtering β and unlike all 13 other suites here, `web-ui-tests.yml` has no internal `changes`/`dorny/paths-filter` job to compensate.
A PR that only touches, say, Java catalog code or docs never touches `web/web/**`; previously this workflow simply wouldn't run. Now `required-ci.yml`'s `web_ui` job calls it unconditionally on every PR, so the full pnpm install/lint/prettier/`test:coverage`/build sequence runs on every single PR regardless of whether frontend files changed β contradicting this PR's own stated goal that a PR touching only docs no-ops every suite, and adding real CI time/cost to every PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#12544] feat(ci): aggregate reusable suites into one Required CI check [gravitino]
Posted by "nevzheng (via GitHub)" <gi...@apache.org>.
nevzheng commented on code in PR #12545:
URL: https://github.com/apache/gravitino/pull/12545#discussion_r3828345534
##########
design-docs/experimental-features/experimental-features.md:
##########
@@ -0,0 +1,310 @@
+<!--
+ 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.
+-->
+
+# Design: Experimental Features in Apache Gravitino
Review Comment:
Thanks Jerry β agreed. That design SPIP rode in from an accidental `feature/gravitino-experiments` base; dropped it so this PR is workflows-only. The experimental doc stays on #12471.
Nevin
Sent from my π€ (Cursor)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#12544] feat(ci): aggregate reusable suites into one Required CI check [gravitino]
Posted by "nevzheng (via GitHub)" <gi...@apache.org>.
nevzheng commented on PR #12545:
URL: https://github.com/apache/gravitino/pull/12545#issuecomment-5498495907
@jerryshao @yuqi1129 @roryqi @laserninja @bharos I addressed the review feedback. PTAL, and thanks for moving this forward.
Roku: Akshay (`@laserninja`) and Bharath (`@bharos`).
https://github.com/apache/gravitino/pull/12545 β `[#12544] feat(ci): aggregate reusable suites into one Required CI check`
**Since last time:** Jerryβs Aug 21 pass was already in. This round is Yuqiβs Aug 31 threads plus follow-up hardening:
- Charts and allowlist are in the Required CI aggregate, so the later ruleset can actually gate them.
- Coverage sidecar ignores cancelled/skipped runs, does not trust fork `pr-number.txt`, and posts only when live PR head matches. Artifact extract is isolated from the trusted sidecar script; comment body requires the coverage marker.
- `build` restores the old `docs/assets/**` / `web-v2/**` skip via `build_relevant.py`.
- Push concurrency no longer evaluates `workflow_call` `inputs`. Contract tests cover the skip/post and path models.
Another pass and approve if it looks right. Ready for review, not claiming ready-to-merge until Required CI is green on `418e1995e`.
Nevin
Sent from my π€ (Cursor)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#12544] feat(ci): aggregate reusable suites into one Required CI check [gravitino]
Posted by "nevzheng (via GitHub)" <gi...@apache.org>.
nevzheng commented on PR #12545:
URL: https://github.com/apache/gravitino/pull/12545#issuecomment-5406551034
Hi @jerryshao β I addressed your comments. Tip is d5caca427.
- Unrelated experimental SPIP β dropped. It stays on #12471.
- Shared `'standalone'` concurrency cancelled push-to-main suites β standalone now uses `github.workflow`; each suite keeps its own `required-<suite>` key on the Required CI path.
- `web-ui-tests` lost `web/web/**` β internal `changes` / dorny filter; `test` skips when those paths miss.
- Parent `cancel-in-progress: false` serialized stale 14-suite runs β parent is `true` again.
- βOther CI doesnβt run anymoreβ β intended. Suites no longer self-listen on `pull_request`. They run as nested checks under Required CI, not 14 top-level workflow runs.
- Coverage comment would never post (sidecar waited for a standalone `build` run) β it now listens for `Required CI`. Missing artifact logs `ACTION=skip` and stays green. Takes effect after merge (`workflow_run` is loaded from `main`).
Also added `dev/ci/test_required_ci.py`. It reads the workflow YAML and checks the contract without starting Actions: parent is the only suite `pull_request` listener, 14 suites stay reusable and keep `push`, `Required CI` is a static `always()` job that fails on any non-success, concurrency keys are unique, web-ui keeps an internal path filter, and the coverage listener name is `Required CI`.
Adding @jerryshao @yuqi1129 and @roryqi as reviewers. We are improving CI so `main` can later require one stable `Required CI` check instead of merging on review alone.
PTAL, thanks! If it looks good, please approve.
Nevin
Sent from my π€ (Cursor)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#12544] feat(ci): aggregate reusable suites into one Required CI check [gravitino]
Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on code in PR #12545:
URL: https://github.com/apache/gravitino/pull/12545#discussion_r3891379165
##########
.github/workflows/required-ci.yml:
##########
@@ -0,0 +1,187 @@
+#
+# 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.
+#
+
+# Aggregates the reusable CI suites into one stable `Required CI` check that a
+# `main` ruleset can require, so merges are gated on CI and not on review
+# alone. This parent is the sole pull-request listener; each child suite is
+# invoked via `workflow_call` and keeps its own path-based skip, so a PR that
+# touches only docs no-ops every suite but still reports a green `Required CI`.
+# Each called workflow also appears as its own check in the PR checks panel,
+# so contributors keep per-suite visibility. `push` triggers on the children
+# are unchanged, so branch builds behave exactly as before.
+#
+# Rollout is staged: land this workflow (no ruleset yet) -> canary on a few PRs
+# -> enable the `main` ruleset requiring `Required CI` (and the standalone
+# `conflict-marker-check`). Fully reversible: delete this file and restore the
+# children's `pull_request:` trigger.
+#
+# The workflow `name` is a contract: coverage-comment.yml's workflow_run
+# listener matches `Required CI`. Do not rename it without updating that file.
+name: Required CI
+
+on:
+ pull_request:
+ branches: [main, branch-*]
+ # Minimal event set: a new PR, a new push to an open PR, or a reopened PR.
+ # Excluding labeled/unlabeled/edited avoids redundant runs (upstream has
+ # no opt-in label; every PR runs CI).
+ types: [opened, synchronize, reopened]
+
+concurrency:
+ group: required-ci-${{ github.event.pull_request.number || github.ref }}
+ # Cancel the superseded PR run. Children already cancel in-progress; the
+ # parent must too or a second push waits out a full stale 14-suite run.
+ cancel-in-progress: true
+
+jobs:
+ build:
+ uses: ./.github/workflows/build.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ backend:
+ uses: ./.github/workflows/backend-integration-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ spark:
+ uses: ./.github/workflows/spark-integration-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ flink:
+ uses: ./.github/workflows/flink-integration-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ trino:
+ uses: ./.github/workflows/trino-integration-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ iceberg_rest_trino:
+ uses: ./.github/workflows/iceberg-rest-trino-integration-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ python:
+ uses: ./.github/workflows/python-integration-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ frontend:
+ uses: ./.github/workflows/frontend-integration-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ access_control:
+ uses: ./.github/workflows/access-control-integration-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ idp_basic:
+ uses: ./.github/workflows/idp-basic-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ mcp:
+ uses: ./.github/workflows/mcp-integration-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ maintenance:
+ uses: ./.github/workflows/maintenance-integration-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ contrib_catalog:
+ uses: ./.github/workflows/contrib-catalog-test.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ web_ui:
+ uses: ./.github/workflows/web-ui-tests.yml
+ with:
+ required_ci: true
+ secrets: inherit
+
+ # Aggregate every reusable suite into one check. `if: always()` runs even
+ # when an upstream suite is skipped (path filter), because a skipped suite
+ # reports `success` and must not fail the aggregate. The job fails only if
+ # any suite reports a non-success result.
+ required_ci:
+ name: Required CI
+ if: always()
+ needs:
+ - build
+ - backend
+ - spark
+ - flink
+ - trino
+ - iceberg_rest_trino
+ - python
+ - frontend
+ - access_control
+ - idp_basic
+ - mcp
+ - maintenance
+ - contrib_catalog
+ - web_ui
Review Comment:
Blocking: `Test Charts` is still triggered separately by `.github/workflows/chart-test.yaml` and is not among these calls or aggregate needs. `asf-allowlist-check` is also outside. The follow-up ruleset in #12544 says it will require only `Required CI` plus `conflict-marker-check`, so a chart or allowlist failure would still be mergeable and the original red-CI gap remains. Please either make these always-reporting reusable jobs and include them in the aggregate, or explicitly include equivalent always-present checks in the ruleset. In particular, a path-filtered standalone workflow cannot simply be required because its check stays pending when the workflow is skipped.
##########
.github/workflows/coverage-comment.yml:
##########
@@ -1,19 +1,35 @@
name: Coverage Comment
+# Sidecar that posts the Jacoco coverage comment. It must stay a separate
+# workflow: a pull_request from a fork gets a read-only GITHUB_TOKEN, so the
+# Required CI / build run cannot comment. workflow_run runs on the base repo
+# with write permission and does not check out PR code.
+#
+# Listen for the PR entry point, not `build`. After Required CI aggregation,
+# build.yml is only workflow_call on PRs; GitHub does not emit workflow_run
+# for a called workflow. Artifacts uploaded inside that call belong to the
+# caller run, so download uses this workflow_run.id (the Required CI run).
+#
+# The workflow name below must match required-ci.yml `name: Required CI`.
+# workflow_run workflows are loaded from the default branch, so this retarget
+# takes effect after merge; this PR itself still uses main's old listener.
on:
workflow_run:
- workflows: ["build"]
+ workflows: ["Required CI"]
types: [completed]
permissions:
+ actions: read
pull-requests: write
jobs:
comment:
runs-on: ubuntu-latest
- if: >
- github.event.workflow_run.event == 'pull_request' &&
- github.event.workflow_run.conclusion == 'success'
+ # Any completed PR run of Required CI. Do not require conclusion ==
+ # success: a red sibling suite (spark, etc.) must not hide a coverage
+ # report that build already uploaded. If build skipped or failed before
+ # upload, the download step fails and we post nothing.
+ if: github.event.workflow_run.event == 'pull_request'
Review Comment:
Correctness/security: this accepts every completed run, including cancelled superseded runs. `cancel-in-progress: true` makes those normal, and run 32459857246 is a concrete cancelled Required CI run that still produced `coverage-report`. The sidecar would therefore overwrite the comment with stale data. It also trusts the PR number from a fork-controlled artifact. Please reject cancelled or stale runs and validate that the candidate PR current head SHA, repo, and branch match `workflow_run.head_sha`, `head_repository`, and `head_branch` before posting; also include the SHA in the comment.
##########
.github/workflows/build.yml:
##########
@@ -2,20 +2,22 @@ name: build
# Controls when the workflow will run
on:
- # Triggers the workflow on push or pull request events but only for the "main" branch
+ # Triggered by the Required CI orchestrator (workflow_call) or by pushes.
+ workflow_call:
Review Comment:
Path-filter regression: the old `pull_request` trigger ignored `docs/assets/**` and `web-v2/**`, but `workflow_call` has no equivalent inner filter. When `source_changes` is false, `compile-check` runs `./gradlew assemble`, so docs-assets-only PRs now build instead of no-op; many `web-v2` changes also enter build filtering. Please add a `build_relevant_changes` output that preserves the old ignore semantics and gate the `compile-check` and `build` jobs on it.
##########
dev/ci/test_required_ci.py:
##########
@@ -0,0 +1,292 @@
+#!/usr/bin/env python3
+# 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.
+
+"""Check the Required CI parent/child contract without starting Actions.
+
+This script does not contact GitHub. It reads the checked-in workflow
+sources and asserts the contract this PR relies on:
+
+- the parent is the sole pull_request listener for the aggregated suites
+- each suite is reusable via workflow_call + required_ci and keeps push
+- Required CI is a static always() aggregate that fails on any non-success
+- conflict-marker-check stays standalone and is not part of the aggregate
+- required-mode concurrency keys are unique per suite
+- standalone (push) keys use github.workflow, not a shared 'standalone' literal
+- the parent cancels superseded PR runs
+- web-ui path-filters inside the called workflow
+- coverage-comment listens for the Required CI parent, not a standalone build run
+"""
+
+import re
+from pathlib import Path
+
+
+REPO_ROOT = Path(__file__).resolve().parents[2]
+WORKFLOW_DIR = REPO_ROOT / ".github" / "workflows"
+REQUIRED_CI_WORKFLOW = WORKFLOW_DIR / "required-ci.yml"
+CONFLICT_MARKER_WORKFLOW = WORKFLOW_DIR / "conflict-marker-check.yml"
+COVERAGE_COMMENT_WORKFLOW = WORKFLOW_DIR / "coverage-comment.yml"
+
+SUITE_WORKFLOWS = {
Review Comment:
This hardcoded inventory misses `.github/workflows/chart-test.yaml` and does not classify `asf-allowlist-check`, so the test passes even though Required CI is not the complete gate. Please discover both `*.yml` and `*.yaml` pull-request workflows dynamically and require every one to be aggregated or explicitly allowlisted. Also wire this script into CI; currently nothing invokes `test_required_ci.py`, so it cannot prevent regressions.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#12544] feat(ci): aggregate reusable suites into one Required CI check [gravitino]
Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on PR #12545:
URL: https://github.com/apache/gravitino/pull/12545#issuecomment-5367183702
Seems like other CI workflow doesn't run anymore.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org