You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by da...@apache.org on 2025/03/12 18:17:59 UTC
(kafka-merge-queue-sandbox) 01/01: create separate merge_group workflow
This is an automated email from the ASF dual-hosted git repository.
davidarthur pushed a commit to branch separate-workflow
in repository https://gitbox.apache.org/repos/asf/kafka-merge-queue-sandbox.git
commit 9127931df98f30d799af3b9367ba9e20d8ceaa26
Author: David Arthur <mu...@gmail.com>
AuthorDate: Wed Mar 12 14:17:41 2025 -0400
create separate merge_group workflow
---
.github/workflows/ci.yml | 54 ------------------------------------------------
1 file changed, 54 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7837848..ede5137 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -20,65 +20,11 @@ on:
types: [ opened, synchronize, ready_for_review, reopened ]
branches: ["main"]
- merge_group:
- types: [checks_requested]
-
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
- validate-patch:
- runs-on: ubuntu-latest
- steps:
- - name: Env
- run: printenv
- env:
- GITHUB_CONTEXT: ${{ toJson(github) }}
- - name: Checkout code
- uses: actions/checkout@v4
- with:
- persist-credentials: false
- - name: Setup Python
- uses: ./.github/actions/setup-python
- - name: Setup Gradle
- uses: ./.github/actions/setup-gradle
- with:
- java-version: 23
- gradle-cache-read-only: true
- gradle-cache-write-only: false
- develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
- - name: Compile and validate
- env:
- SCAN_ARG: '--no-scan'
- # Gradle flags
- # --build-cache: Let Gradle restore the build cache
- # --info: For now, we'll generate lots of logs while setting up the GH Actions
- # --scan: Publish the build scan. This will only work on PRs from apache/kafka and trunk
- # --no-scan: For public fork PRs, we won't attempt to publish the scan
- run: |
- ./gradlew --build-cache --info $SCAN_ARG check siteDocTar -x test
- - name: Annotate checkstyle errors
- if: failure()
- run: python .github/scripts/checkstyle.py
- env:
- GITHUB_WORKSPACE: ${{ github.workspace }}
- - name: Annotate Rat errors
- if: failure()
- run: python .github/scripts/rat.py
- env:
- GITHUB_WORKSPACE: ${{ github.workspace }}
- - name: Check generated documentation
- # Check if there are any empty files under ./site-docs/generated, If any empty files are found, print an error
- # message and list the empty files
- run: |
- tar zxvf core/build/distributions/kafka_2.13-$(./gradlew properties | grep version: | awk '{print $NF}' | head -n 1)-site-docs.tgz
- if find ./site-docs/generated -type f -exec grep -L "." {} \; | grep -q "."; then
- echo "One or more documentation files are empty!" >&2
- find ./site-docs/generated -type f -exec grep -L "." {} \; >&2
- exit 1
- fi
-
build:
uses: ./.github/workflows/build.yml
with: