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 2024/09/08 00:36:08 UTC
(kafka) branch gh-publish-pr-build-scan created (now 94d41f63b90)
This is an automated email from the ASF dual-hosted git repository.
davidarthur pushed a change to branch gh-publish-pr-build-scan
in repository https://gitbox.apache.org/repos/asf/kafka.git
at 94d41f63b90 publish build scan from PRs
This branch includes the following new commits:
new 94d41f63b90 publish build scan from PRs
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(kafka) 01/01: publish build scan from PRs
Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
davidarthur pushed a commit to branch gh-publish-pr-build-scan
in repository https://gitbox.apache.org/repos/asf/kafka.git
commit 94d41f63b90881f71de39b811132fd74410df266
Author: David Arthur <mu...@gmail.com>
AuthorDate: Sat Sep 7 20:35:55 2024 -0400
publish build scan from PRs
---
.github/workflows/build.yml | 14 +++++++++--
.github/workflows/ci-complete.yml | 53 +++++++++++++++++++++++++++++++++++++++
2 files changed, 65 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index a1a94429148..37a5f3d6215 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -63,7 +63,7 @@ jobs:
# --build-cache: Let Gradle restore the build cache
# --info: For now, we'll generate lots of logs while setting up the GH Actions
# --scan: Attempt to publish build scans in PRs. This will only work on PRs from apache/kafka, not public forks.
- run: ./gradlew --build-cache --info --scan check -x test
+ run: ./gradlew --build-cache --info --no-scan check -x test
- name: Archive check reports
if: always()
uses: actions/upload-artifact@v4
@@ -79,6 +79,11 @@ jobs:
run: python .github/scripts/checkstyle.py
env:
GITHUB_WORKSPACE: ${{ github.workspace }}
+ - name: Archive scan
+ uses: actions/upload-artifact@v4
+ with:
+ name: build-scan-validate-${{ matrix.java }}
+ path: ~/.gradle/build-scan-data
test:
needs: validate
@@ -110,7 +115,7 @@ jobs:
id: junit-test
run: |
set +e
- timeout 180m ./gradlew --build-cache --scan --continue \
+ timeout 180m ./gradlew --build-cache --no-scan --continue \
-PtestLoggingEvents=started,passed,skipped,failed \
-PmaxParallelForks=2 \
-PmaxTestRetries=1 -PmaxTestRetryFailures=10 \
@@ -132,3 +137,8 @@ jobs:
GITHUB_WORKSPACE: ${{ github.workspace }}
REPORT_URL: ${{ steps.junit-upload-artifact.outputs.artifact-url }}
GRADLE_EXIT_CODE: ${{ steps.junit-test.outputs.exitcode }}
+ - name: Archive scan
+ uses: actions/upload-artifact@v4
+ with:
+ name: build-scan-test-${{ matrix.java }}
+ path: ~/.gradle/build-scan-data
diff --git a/.github/workflows/ci-complete.yml b/.github/workflows/ci-complete.yml
new file mode 100644
index 00000000000..50502266eff
--- /dev/null
+++ b/.github/workflows/ci-complete.yml
@@ -0,0 +1,53 @@
+# 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.
+
+name: CI Complete
+
+on:
+ workflow_run:
+ workflows: [CI]
+ types:
+ - completed
+
+jobs:
+ download:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ java: [ 21, 17, 11, 8 ]
+ steps:
+ - name: Env
+ run: printenv
+ env:
+ GITHUB_CONTEXT: ${{ toJson(github) }}
+ - name: Checkout code
+ uses: actions/checkout@v4
+ with:
+ persist-credentials:
+ false
+ - name: Setup Gradle
+ uses: ./.github/actions/setup-gradle
+ with:
+ java-version: ${{ matrix.java }}
+ develocity-access-key: ${{ secrets.GE_ACCESS_TOKEN }}
+ - uses: actions/download-artifact@v4
+ with:
+ github-token: ${{ github.token }}
+ run-id: ${{ github.event.workflow_run.id }}
+ name: build-scan-test-${{ matrix.java }}
+ path: ~/.gradle/build-scan-data
+ - name: Publish scan
+ run: ./gradlew --info buildScanPublishPrevious