Skip to content

Commit e9e03fa

Browse files
authored
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 <[email protected]>, David Arthur <[email protected]>
1 parent b368c38 commit e9e03fa

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.github/scripts/develocity_reports.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ def get_develocity_class_link(class_name: str, threshold_days: int, test_type: s
889889
threshold_days: Number of days to look back in search
890890
test_type: Type of test (e.g., "quarantinedTest", "test")
891891
"""
892-
base_url = "https://ge.apache.org/scans/tests"
892+
base_url = "https://develocity.apache.org/scans/tests"
893893
params = {
894894
"search.rootProjectNames": "kafka",
895895
"search.tags": "github,trunk",
@@ -913,7 +913,7 @@ def get_develocity_method_link(class_name: str, method_name: str, threshold_days
913913
threshold_days: Number of days to look back in search
914914
test_type: Type of test (e.g., "quarantinedTest", "test")
915915
"""
916-
base_url = "https://ge.apache.org/scans/tests"
916+
base_url = "https://develocity.apache.org/scans/tests"
917917

918918
# Extract just the method name without the class prefix
919919
if '.' in method_name:
@@ -1186,7 +1186,7 @@ def main():
11861186
exit(1)
11871187

11881188
# Configuration
1189-
BASE_URL = "https://ge.apache.org"
1189+
BASE_URL = "https://develocity.apache.org"
11901190
PROJECT = "kafka"
11911191
QUARANTINE_THRESHOLD_DAYS = 7
11921192
MIN_FAILURE_RATE = 0.1

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
java-version: 23
104104
gradle-cache-read-only: ${{ !inputs.is-trunk }}
105105
gradle-cache-write-only: ${{ inputs.is-trunk }}
106-
develocity-access-key: ${{ secrets.GE_ACCESS_TOKEN }}
106+
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
107107
- name: Compile and validate
108108
env:
109109
SCAN_ARG: ${{ inputs.is-public-fork && '--no-scan' || '--scan' }}
@@ -168,7 +168,7 @@ jobs:
168168
java-version: ${{ matrix.java }}
169169
gradle-cache-read-only: ${{ !inputs.is-trunk }}
170170
gradle-cache-write-only: ${{ inputs.is-trunk }}
171-
develocity-access-key: ${{ secrets.GE_ACCESS_TOKEN }}
171+
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
172172

173173
# If the load-catalog job failed, we won't be able to download the artifact. Since we don't want this to fail
174174
# the overall workflow, so we'll continue here without a test catalog.

.github/workflows/ci-complete.yml

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

.github/workflows/deflake.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
with:
5151
java-version: ${{ inputs.java-version }}
5252
gradle-cache-read-only: true
53-
develocity-access-key: ${{ secrets.GE_ACCESS_TOKEN }}
53+
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
5454
- name: Test
5555
timeout-minutes: 60
5656
id: junit-test

settings.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
// limitations under the License.
1515

1616
plugins {
17-
id 'com.gradle.develocity' version '3.17.6'
17+
id 'com.gradle.develocity' version '3.19'
1818
id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.0.2'
1919
}
2020

2121
def isGithubActions = System.getenv('GITHUB_ACTIONS') != null
2222
def currentJvm = JavaVersion.current()
2323

2424
develocity {
25-
server = "https://ge.apache.org"
25+
server = "https://develocity.apache.org"
2626
projectId = "kafka"
2727
buildScan {
2828
uploadInBackground = !isGithubActions

0 commit comments

Comments
 (0)