KAFKA-18454 Publish build scans to develocity.apache.org (#18539)

This patch includes some maintenance updates for Develocity.

* Publish build scans to develocity.apache.org
* Update Develocity Gradle plugin to to 3.19
* Use `DEVELOCITY_ACCESS_KEY` to authenticate to `develocity.apache.org`

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>, David Arthur <mumrah@gmail.com>
This commit is contained in:
Clay Johnson 2025-01-21 12:37:27 -06:00 committed by GitHub
parent b368c38684
commit e9e03faf87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 10 additions and 10 deletions

View File

@ -889,7 +889,7 @@ def get_develocity_class_link(class_name: str, threshold_days: int, test_type: s
threshold_days: Number of days to look back in search threshold_days: Number of days to look back in search
test_type: Type of test (e.g., "quarantinedTest", "test") test_type: Type of test (e.g., "quarantinedTest", "test")
""" """
base_url = "https://ge.apache.org/scans/tests" base_url = "https://develocity.apache.org/scans/tests"
params = { params = {
"search.rootProjectNames": "kafka", "search.rootProjectNames": "kafka",
"search.tags": "github,trunk", "search.tags": "github,trunk",
@ -913,7 +913,7 @@ def get_develocity_method_link(class_name: str, method_name: str, threshold_days
threshold_days: Number of days to look back in search threshold_days: Number of days to look back in search
test_type: Type of test (e.g., "quarantinedTest", "test") test_type: Type of test (e.g., "quarantinedTest", "test")
""" """
base_url = "https://ge.apache.org/scans/tests" base_url = "https://develocity.apache.org/scans/tests"
# Extract just the method name without the class prefix # Extract just the method name without the class prefix
if '.' in method_name: if '.' in method_name:
@ -1186,7 +1186,7 @@ def main():
exit(1) exit(1)
# Configuration # Configuration
BASE_URL = "https://ge.apache.org" BASE_URL = "https://develocity.apache.org"
PROJECT = "kafka" PROJECT = "kafka"
QUARANTINE_THRESHOLD_DAYS = 7 QUARANTINE_THRESHOLD_DAYS = 7
MIN_FAILURE_RATE = 0.1 MIN_FAILURE_RATE = 0.1

View File

@ -103,7 +103,7 @@ jobs:
java-version: 23 java-version: 23
gradle-cache-read-only: ${{ !inputs.is-trunk }} gradle-cache-read-only: ${{ !inputs.is-trunk }}
gradle-cache-write-only: ${{ inputs.is-trunk }} gradle-cache-write-only: ${{ inputs.is-trunk }}
develocity-access-key: ${{ secrets.GE_ACCESS_TOKEN }} develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
- name: Compile and validate - name: Compile and validate
env: env:
SCAN_ARG: ${{ inputs.is-public-fork && '--no-scan' || '--scan' }} SCAN_ARG: ${{ inputs.is-public-fork && '--no-scan' || '--scan' }}
@ -168,7 +168,7 @@ jobs:
java-version: ${{ matrix.java }} java-version: ${{ matrix.java }}
gradle-cache-read-only: ${{ !inputs.is-trunk }} gradle-cache-read-only: ${{ !inputs.is-trunk }}
gradle-cache-write-only: ${{ inputs.is-trunk }} gradle-cache-write-only: ${{ inputs.is-trunk }}
develocity-access-key: ${{ secrets.GE_ACCESS_TOKEN }} develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
# If the load-catalog job failed, we won't be able to download the artifact. Since we don't want this to fail # If the load-catalog job failed, we won't be able to download the artifact. Since we don't want this to fail
# the overall workflow, so we'll continue here without a test catalog. # the overall workflow, so we'll continue here without a test catalog.

View File

@ -30,7 +30,7 @@ run-name: Build Scans for ${{ github.event.workflow_run.display_title}}
# #
# This "workflow_run" triggered workflow is run in a privileged context and so does have access to # This "workflow_run" triggered workflow is run in a privileged context and so does have access to
# the repository secrets. Here we can download the build scan files produced by a PR and publish # the repository secrets. Here we can download the build scan files produced by a PR and publish
# them to ge.apache.org. # them to develocity.apache.org.
# #
# If we need to do things like comment on, label, or otherwise modify PRs from public forks. This # If we need to do things like comment on, label, or otherwise modify PRs from public forks. This
# workflow is the place to do it. PR number is ${{ github.event.workflow_run.pull_requests[0].number }} # workflow is the place to do it. PR number is ${{ github.event.workflow_run.pull_requests[0].number }}
@ -59,7 +59,7 @@ jobs:
uses: ./.github/actions/setup-gradle uses: ./.github/actions/setup-gradle
with: with:
java-version: ${{ matrix.java }} java-version: ${{ matrix.java }}
develocity-access-key: ${{ secrets.GE_ACCESS_TOKEN }} develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
- name: Download build scan archive - name: Download build scan archive
id: download-build-scan id: download-build-scan
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4

View File

@ -50,7 +50,7 @@ jobs:
with: with:
java-version: ${{ inputs.java-version }} java-version: ${{ inputs.java-version }}
gradle-cache-read-only: true gradle-cache-read-only: true
develocity-access-key: ${{ secrets.GE_ACCESS_TOKEN }} develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
- name: Test - name: Test
timeout-minutes: 60 timeout-minutes: 60
id: junit-test id: junit-test

View File

@ -14,7 +14,7 @@
// limitations under the License. // limitations under the License.
plugins { plugins {
id 'com.gradle.develocity' version '3.17.6' id 'com.gradle.develocity' version '3.19'
id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.0.2' id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.0.2'
} }
@ -22,7 +22,7 @@ def isGithubActions = System.getenv('GITHUB_ACTIONS') != null
def currentJvm = JavaVersion.current() def currentJvm = JavaVersion.current()
develocity { develocity {
server = "https://ge.apache.org" server = "https://develocity.apache.org"
projectId = "kafka" projectId = "kafka"
buildScan { buildScan {
uploadInBackground = !isGithubActions uploadInBackground = !isGithubActions