Skip to content

Commit 9ff72ec

Browse files
committed
Merge branch 'main' into aws2-semconv
2 parents 7c7382c + a4ebb07 commit 9ff72ec

File tree

131 files changed

+1697
-845
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+1697
-845
lines changed

.github/repository-settings.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ private admin repo.
1010

1111
- `GPG_PASSWORD` - stored in OpenTelemetry-Java 1Password
1212
- `GPG_PRIVATE_KEY` - stored in OpenTelemetry-Java 1Password
13+
- `DEVELOCITY_ACCESS_KEY` - owned by [@trask](https://github.com/trask)
14+
- Generated at https://develocity.opentelemetry.io > My settings > Access keys
15+
- Format of env var is `develocity.opentelemetry.io=<access key>`,
16+
see [docs](https://docs.gradle.com/enterprise/gradle-plugin/#via_environment_variable)
1317
- `GRADLE_PUBLISH_KEY`
1418
- `GRADLE_PUBLISH_SECRET`
1519
- `NVD_API_KEY` - stored in OpenTelemetry-Java 1Password

.github/workflows/build-common.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ on:
1616
type: boolean
1717
required: false
1818
secrets:
19+
DEVELOCITY_ACCESS_KEY:
20+
required: false
1921
FLAKY_TEST_REPORTER_ACCESS_KEY:
2022
required: false
2123

@@ -43,6 +45,8 @@ jobs:
4345
cache-read-only: ${{ inputs.cache-read-only }}
4446

4547
- name: Spotless
48+
env:
49+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
4650
run: ./gradlew spotlessCheck ${{ inputs.no-build-cache && '--no-build-cache' || '' }}
4751

4852
license-check:
@@ -65,6 +69,8 @@ jobs:
6569
cache-read-only: ${{ inputs.cache-read-only }}
6670

6771
- name: Generate license report
72+
env:
73+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
6874
# with the build cache enabled occasionally produces outdated results
6975
run: ./gradlew generateLicenseReport --no-build-cache
7076

@@ -192,6 +198,8 @@ jobs:
192198
cache-read-only: ${{ inputs.cache-read-only }}
193199

194200
- name: Build
201+
env:
202+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
195203
run: ./gradlew check javadoc sourcesJar spdxSbom -x spotlessCheck -PskipTests=true ${{ inputs.no-build-cache && '--no-build-cache' || '' }}
196204

197205
- name: Check for jApiCmp diffs
@@ -275,7 +283,7 @@ jobs:
275283

276284
# vaadin 14 tests fail with node 18
277285
- name: Set up Node
278-
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
286+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
279287
with:
280288
node-version: 16
281289

@@ -296,6 +304,8 @@ jobs:
296304
cache-read-only: ${{ inputs.cache-read-only || matrix.test-java-version != 11 || matrix.vm != 'hotspot' }}
297305

298306
- name: List tests
307+
env:
308+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
299309
# "check" is needed to activate all tests for listing purposes
300310
# listTestsInPartition writes test tasks that apply to the given partition to a file named
301311
# "test-tasks.txt" and then disables all tasks (including tests) after it runs
@@ -310,6 +320,8 @@ jobs:
310320
echo "test-tasks=$(cat test-tasks.txt | xargs echo | sed 's/\n/ /g')" >> $GITHUB_ENV
311321
312322
- name: Test
323+
env:
324+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
313325
# spotless is checked separately since it's a common source of failure
314326
run: >
315327
./gradlew
@@ -432,11 +444,15 @@ jobs:
432444
cache-read-only: ${{ inputs.cache-read-only || matrix.smoke-test-suite != 'tomcat' }}
433445

434446
- name: Build
447+
env:
448+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
435449
# running suite "none" compiles everything needed by smoke tests without executing any tests
436450
# --no-daemon is used to free up the memory from the build step before running the test step below
437451
run: ./gradlew :smoke-tests:test -PsmokeTestSuite=none --no-daemon ${{ inputs.no-build-cache && ' --no-build-cache' || '' }}
438452

439453
- name: Test
454+
env:
455+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
440456
run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.smoke-test-suite }} ${{ inputs.no-build-cache && ' --no-build-cache' || '' }}
441457

442458
- name: Build scan

.github/workflows/build-daily-no-build-cache.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ jobs:
1515
with:
1616
no-build-cache: true
1717
secrets:
18+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
1819
FLAKY_TEST_REPORTER_ACCESS_KEY: ${{ secrets.FLAKY_TEST_REPORTER_ACCESS_KEY }}
1920

2021
test-latest-deps:
2122
uses: ./.github/workflows/reusable-test-latest-deps.yml
2223
with:
2324
no-build-cache: true
2425
secrets:
26+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
2527
FLAKY_TEST_REPORTER_ACCESS_KEY: ${{ secrets.FLAKY_TEST_REPORTER_ACCESS_KEY }}
2628

2729
# muzzle is not included here because it doesn't use gradle cache anyway and so is already covered

.github/workflows/build-daily.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ jobs:
1313
common:
1414
uses: ./.github/workflows/build-common.yml
1515
secrets:
16+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
1617
FLAKY_TEST_REPORTER_ACCESS_KEY: ${{ secrets.FLAKY_TEST_REPORTER_ACCESS_KEY }}
1718

1819
test-latest-deps:
1920
uses: ./.github/workflows/reusable-test-latest-deps.yml
2021
secrets:
22+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
2123
FLAKY_TEST_REPORTER_ACCESS_KEY: ${{ secrets.FLAKY_TEST_REPORTER_ACCESS_KEY }}
2224

2325
muzzle:

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
common:
1515
uses: ./.github/workflows/build-common.yml
1616
secrets:
17+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
1718
FLAKY_TEST_REPORTER_ACCESS_KEY: ${{ secrets.FLAKY_TEST_REPORTER_ACCESS_KEY }}
1819

1920
test-latest-deps:
@@ -23,6 +24,7 @@ jobs:
2324
if: "!startsWith(github.ref_name, 'release/')"
2425
uses: ./.github/workflows/reusable-test-latest-deps.yml
2526
secrets:
27+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
2628
FLAKY_TEST_REPORTER_ACCESS_KEY: ${{ secrets.FLAKY_TEST_REPORTER_ACCESS_KEY }}
2729

2830
muzzle:
@@ -80,6 +82,7 @@ jobs:
8082

8183
- name: Build and publish artifact snapshots
8284
env:
85+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
8386
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
8487
SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }}
8588
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
@@ -88,6 +91,7 @@ jobs:
8891

8992
- name: Build and publish gradle plugin snapshots
9093
env:
94+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
9195
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
9296
SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }}
9397
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
include:
3333
- language: actions
3434
- language: java
35-
runs-on: oracle-8cpu-32gb-x86-64
35+
runs-on: oracle-vm-8cpu-32gb-x86-64
3636
steps:
3737
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3838

@@ -63,7 +63,7 @@ jobs:
6363
cache-read-only: ${{ github.event_name == 'pull_request' }}
6464

6565
- name: Initialize CodeQL
66-
uses: github/codeql-action/init@755f44910c12a3d7ca0d8c6e42c048b3362f7cec # v3.30.8
66+
uses: github/codeql-action/init@16140ae1a102900babc80a33c44059580f687047 # v4.30.9
6767
with:
6868
languages: ${{ matrix.language }}
6969
# using "linked" helps to keep up with the linked Kotlin support
@@ -84,6 +84,6 @@ jobs:
8484
--no-build-cache --no-daemon
8585
8686
- name: Perform CodeQL analysis
87-
uses: github/codeql-action/analyze@755f44910c12a3d7ca0d8c6e42c048b3362f7cec # v3.30.8
87+
uses: github/codeql-action/analyze@16140ae1a102900babc80a33c44059580f687047 # v4.30.9
8888
with:
8989
category: "/language:${{matrix.language}}"

.github/workflows/documentation-synchronization-audit.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Documentation Synchronization Audit (opentelemetry.io)
22

33
on:
4-
push:
5-
tags:
6-
- 'v*' # run on release tags
4+
workflow_call:
75
workflow_dispatch:
86

97
permissions:

.github/workflows/ossf-scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ jobs:
4242
# Upload the results to GitHub's code scanning dashboard (optional).
4343
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
4444
- name: "Upload to code-scanning"
45-
uses: github/codeql-action/upload-sarif@755f44910c12a3d7ca0d8c6e42c048b3362f7cec # v3.30.8
45+
uses: github/codeql-action/upload-sarif@16140ae1a102900babc80a33c44059580f687047 # v4.30.9
4646
with:
4747
sarif_file: results.sarif

.github/workflows/pr-automation-comments.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Comment on PR
15-
uses: actions/github-script@v7
15+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
1616
with:
1717
script: |
1818
const { data: comments } = await github.rest.issues.listComments({
@@ -64,7 +64,7 @@ jobs:
6464
runs-on: ubuntu-latest
6565
steps:
6666
- name: Comment on PR
67-
uses: actions/github-script@v7
67+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
6868
with:
6969
script: |
7070
const { data: comments } = await github.rest.issues.listComments({

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ jobs:
200200
echo "version=$VERSION" >> $GITHUB_OUTPUT
201201
echo "prior-version=$PRIOR_VERSION" >> $GITHUB_OUTPUT
202202
203+
documentation-audit:
204+
needs:
205+
- release
206+
uses: ./.github/workflows/documentation-synchronization-audit.yml
207+
203208
post-release-updates:
204209
permissions:
205210
contents: write # for git push to PR branch

0 commit comments

Comments
 (0)