You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by gi...@apache.org on 2025/02/13 23:51:48 UTC
(kafka-merge-queue-sandbox) 01/01: Compile as part of queue job (#53)
This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch gh-readonly-queue/main/pr-53-9037ed5ed208a5e43c64b7bd58c1a2d12e01dc0b
in repository https://gitbox.apache.org/repos/asf/kafka-merge-queue-sandbox.git
commit dd1274735e017ad695ce93d0f90f7d56cfa2a372
Author: David Arthur <mu...@gmail.com>
AuthorDate: Thu Feb 13 18:51:26 2025 -0500
Compile as part of queue job (#53)
* run ci as part of queue
* remove name
* dont archive in validate job
---
.github/workflows/ci.yml | 62 +++++++++++++++++++++++++++++++++++++-----------
1 file changed, 48 insertions(+), 14 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c27f431..7837848 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -31,20 +31,54 @@ jobs:
validate-patch:
runs-on: ubuntu-latest
steps:
- - name: Checkout code
- uses: actions/checkout@v3
- with:
- fetch-depth: 0
- - name: Display info
- run: |
- pwd
- tree -a -I '.git'
- echo "Action: ${{ github.event.action }}"
- echo "Sender: ${{ github.event.sender.login }}"
- git status
- git log origin/main..HEAD
- - name: Validate files
- run: sleep 5
+ - 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: