Skip to content

Commit fb64f80

Browse files
Merge upstream
2 parents bd36567 + f930598 commit fb64f80

File tree

185 files changed

+2962
-231
lines changed

Some content is hidden

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

185 files changed

+2962
-231
lines changed

.fossa.yml

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ targets:
4949
- type: gradle
5050
path: ./
5151
target: ':testing:agent-for-testing'
52+
- type: gradle
53+
path: ./
54+
target: ':instrumentation:activej-http-6.0:javaagent'
5255
- type: gradle
5356
path: ./
5457
target: ':instrumentation:alibaba-druid-1.0:javaagent'

.github/repository-settings.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,26 @@ settings](https://github.com/open-telemetry/community/blob/main/docs/how-to-conf
3232
- `release/*`
3333
- Branch rules
3434
- Restrict deletions: CHECKED
35-
- Require linear history: CHECKED
3635
- Require a pull request before merging: CHECKED
3736
- Required approvals: 1
3837
- Require review from Code Owners: CHECKED
3938
- Allowed merge methods: Squash
4039
- Require status checks to pass
41-
- EasyCLA
42-
- `required-status-check`
43-
- `gradle-wrapper-validation`
40+
- Do not require status checks on creation: CHECKED
41+
- Status checks that are required
42+
- EasyCLA
43+
- `required-status-check`
44+
- `gradle-wrapper-validation`
4445
- Block force pushes: CHECKED
4546
- Require code scanning results: CHECKED
4647
- CodeQL
4748
- Security alerts: High or higher
4849
- Alerts: Errors
4950

51+
> [!NOTE]
52+
> This repository can't "require linear history" because there is an old merge commit on `main`
53+
> (and so also on the release branches).
54+
5055
### `cloudfoundry` branch
5156

5257
- Targeted branches:

.github/scripts/check-latest-dep-test-overrides.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# all missing version coverage should be documented in supported-libraries.md
44

55
if grep -r --include build.gradle.kts latestDepTestLibrary instrumentation \
6-
| grep -v :+\" \
6+
| grep -v -e :+\" -e :latest.release\" \
77
| grep -v "// see .* module" \
88
| grep -v "// see test suite below" \
99
| grep -v "// no longer applicable" \

.github/workflows/auto-update-otel-sdk.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
- name: Use CLA approved bot
8585
run: .github/scripts/use-cla-approved-bot.sh
8686

87-
- uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
87+
- uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1.11.5
8888
id: otelbot-token
8989
with:
9090
app-id: ${{ vars.OTELBOT_APP_ID }}

.github/workflows/backport.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Use CLA approved bot
3030
run: .github/scripts/use-cla-approved-bot.sh
3131

32-
- uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
32+
- uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1.11.5
3333
id: otelbot-token
3434
with:
3535
app-id: ${{ vars.OTELBOT_APP_ID }}
@@ -48,7 +48,14 @@ jobs:
4848
4949
git checkout -b $branch
5050
git cherry-pick $commit
51+
52+
# note this push will fail if the backport contains any workflow files
53+
# because secrets.GITHUB_TOKEN doesn't have this permission
54+
# supporting this would require another access token with content write
55+
# and workflow write permissions
56+
# so for now at least PRs that update workflow files need to be backported manually
5157
git push --set-upstream origin $branch
58+
5259
gh pr create --title "[$GITHUB_REF_NAME] $title" \
5360
--body "Clean cherry-pick of #$NUMBER to the \`$GITHUB_REF_NAME\` branch." \
5461
--base $GITHUB_REF_NAME

.github/workflows/build-common.yml

+13-10
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ jobs:
205205
fi
206206
207207
- name: Upload agent jar
208-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
208+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
209209
with:
210210
name: opentelemetry-javaagent.jar
211211
path: javaagent/build/libs/opentelemetry-javaagent-*-SNAPSHOT.jar
@@ -216,7 +216,7 @@ jobs:
216216
mkdir sboms
217217
cp javaagent/build/spdx/*.spdx.json sboms
218218
219-
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
219+
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
220220
name: Upload SBOMs
221221
with:
222222
name: opentelemetry-java-instrumentation-SBOM.zip
@@ -272,7 +272,7 @@ jobs:
272272

273273
# vaadin tests use pnpm
274274
- name: Cache pnpm modules
275-
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
275+
uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.1
276276
with:
277277
path: ~/.pnpm-store
278278
key: ${{ runner.os }}-test-cache-pnpm-modules
@@ -310,7 +310,6 @@ jobs:
310310
-Porg.gradle.java.installations.paths=${{ steps.setup-test-java.outputs.path }}
311311
-Porg.gradle.java.installations.auto-download=false
312312
${{ inputs.no-build-cache && ' --no-build-cache' || '' }}
313-
${{ inputs.max-test-retries && format(' -PmaxTestRetries={0}', inputs.max-test-retries) || '' }}
314313
315314
- name: Build scan
316315
if: ${{ !cancelled() && hashFiles('build-scan.txt') != '' }}
@@ -348,15 +347,15 @@ jobs:
348347
349348
- name: Upload deadlock detector artifacts if any
350349
if: failure()
351-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
350+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
352351
with:
353352
name: deadlock-detector-test-${{ matrix.test-java-version }}-${{ matrix.vm }}-${{ matrix.test-partition }}
354353
path: /tmp/deadlock-detector-*
355354
if-no-files-found: ignore
356355

357356
- name: Upload jvm crash dump files if any
358357
if: failure()
359-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
358+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
360359
with:
361360
name: javacore-test-${{ matrix.test-java-version }}-${{ matrix.test-partition }}
362361
path: |
@@ -416,11 +415,11 @@ jobs:
416415
run: ./gradlew :smoke-tests:test -PsmokeTestSuite=none --no-daemon ${{ inputs.no-build-cache && ' --no-build-cache' || '' }}
417416

418417
- name: Test
419-
run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.smoke-test-suite }}${{ inputs.no-build-cache && ' --no-build-cache' || '' }}
418+
run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.smoke-test-suite }} ${{ inputs.no-build-cache && ' --no-build-cache' || '' }}
420419

421420
- name: Upload jvm crash dump files if any
422421
if: failure()
423-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
422+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
424423
with:
425424
name: javacore-smoke-test-${{ matrix.smoke-test-suite }}-${{ matrix.os }}
426425
# we expect crash dumps either in root director or in smoke-tests
@@ -490,13 +489,17 @@ jobs:
490489
working-directory: gradle-plugins
491490

492491
- name: Build distro
493-
run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts${{ inputs.no-build-cache && ' --no-build-cache' || '' }}
492+
run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts ${{ inputs.no-build-cache && ' --no-build-cache' || '' }}
494493
working-directory: examples/distro
495494

496495
- name: Build extension
497-
run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts${{ inputs.no-build-cache && ' --no-build-cache' || '' }}
496+
run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts ${{ inputs.no-build-cache && ' --no-build-cache' || '' }}
498497
working-directory: examples/extension
499498

499+
- name: Build benchmark-overhead
500+
run: ./gradlew assemble ${{ inputs.no-build-cache && ' --no-build-cache' || '' }}
501+
working-directory: benchmark-overhead
502+
500503
- name: Run muzzle check against extension
501504
run: ./gradlew muzzle --init-script ../../.github/scripts/local.init.gradle.kts
502505
working-directory: examples/extension

.github/workflows/codeql.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
cache-read-only: ${{ github.event_name == 'pull_request' }}
5151

5252
- name: Initialize CodeQL
53-
uses: github/codeql-action/init@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
53+
uses: github/codeql-action/init@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
5454
with:
5555
languages: java, actions
5656
# using "latest" helps to keep up with the latest Kotlin support
@@ -65,4 +65,4 @@ jobs:
6565
run: ./gradlew assemble -x javadoc -x :instrumentation:quarkus-resteasy-reactive:quarkus3-testing:quarkusGenerateCodeDev -x :instrumentation:quarkus-resteasy-reactive:quarkus2-testing:quarkusGenerateCodeDev --no-build-cache --no-daemon
6666

6767
- name: Perform CodeQL analysis
68-
uses: github/codeql-action/analyze@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
68+
uses: github/codeql-action/analyze@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10

.github/workflows/ossf-scorecard.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
persist-credentials: false
2525

26-
- uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
26+
- uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
2727
with:
2828
results_file: results.sarif
2929
results_format: sarif
@@ -33,7 +33,7 @@ jobs:
3333
# uploads of run results in SARIF format to the repository Actions tab.
3434
# https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts
3535
- name: "Upload artifact"
36-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
36+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
3737
with:
3838
name: SARIF file
3939
path: results.sarif
@@ -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@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
45+
uses: github/codeql-action/upload-sarif@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
4646
with:
4747
sarif_file: results.sarif

.github/workflows/owasp-dependency-check-daily.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
- name: Upload report
4040
if: always()
41-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
41+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
4242
with:
4343
path: javaagent/build/reports
4444

.github/workflows/prepare-patch-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- name: Use CLA approved bot
5252
run: .github/scripts/use-cla-approved-bot.sh
5353

54-
- uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
54+
- uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1.11.5
5555
id: otelbot-token
5656
with:
5757
app-id: ${{ vars.OTELBOT_APP_ID }}

.github/workflows/prepare-release-branch.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
- name: Use CLA approved bot
6464
run: .github/scripts/use-cla-approved-bot.sh
6565

66-
- uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
66+
- uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1.11.5
6767
id: otelbot-token
6868
with:
6969
app-id: ${{ vars.OTELBOT_APP_ID }}
@@ -120,7 +120,7 @@ jobs:
120120
- name: Use CLA approved bot
121121
run: .github/scripts/use-cla-approved-bot.sh
122122

123-
- uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
123+
- uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1.11.5
124124
id: otelbot-token
125125
with:
126126
app-id: ${{ vars.OTELBOT_APP_ID }}

.github/workflows/publish-petclinic-benchmark-image.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: echo "TS=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
3333

3434
- name: Push to GitHub packages
35-
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6.13.0
35+
uses: docker/build-push-action@0adf9959216b96bec444f325f1e493d4aa344497 # v6.14.0
3636
with:
3737
push: true
3838
file: benchmark-overhead/Dockerfile.petclinic

.github/workflows/release-update-cloudfoundry-index.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
# need to run this script before we switch branches
2323
# since the script doesn't exist on the cloudfoundry branch
2424
- name: Use CLA approved github bot
25-
run: .github/scripts/use-cla-approved-github-bot.sh
25+
run: .github/scripts/use-cla-approved-bot.sh
2626

2727
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2828
with:
@@ -44,7 +44,7 @@ jobs:
4444
- name: display changes
4545
run: git diff
4646

47-
- uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
47+
- uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1.11.5
4848
id: otelbot-token
4949
with:
5050
app-id: ${{ vars.OTELBOT_APP_ID }}

.github/workflows/release.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
cp javaagent/build/spdx/*.spdx.json sboms
121121
zip opentelemetry-java-instrumentation-SBOM.zip sboms/*
122122
123-
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
123+
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
124124
name: Upload SBOMs
125125
with:
126126
name: opentelemetry-java-instrumentation-SBOM
@@ -181,7 +181,7 @@ jobs:
181181
--notes-file /tmp/release-notes.txt \
182182
v$VERSION \
183183
opentelemetry-javaagent.jar \
184-
opentelemetry-javaagent.asc.jar \
184+
opentelemetry-javaagent.jar.asc \
185185
opentelemetry-java-instrumentation-SBOM.zip
186186
187187
# these are used as job outputs
@@ -219,7 +219,7 @@ jobs:
219219
- name: Use CLA approved bot
220220
run: .github/scripts/use-cla-approved-bot.sh
221221

222-
- uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
222+
- uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1.11.5
223223
id: otelbot-token
224224
with:
225225
app-id: ${{ vars.OTELBOT_APP_ID }}
@@ -253,6 +253,8 @@ jobs:
253253
--base main
254254
255255
update-apidiff-baseline-to-released-version:
256+
permissions:
257+
contents: write # for git push to PR branch
256258
runs-on: ubuntu-latest
257259
needs:
258260
- release
@@ -286,7 +288,7 @@ jobs:
286288
- name: Use CLA approved bot
287289
run: .github/scripts/use-cla-approved-bot.sh
288290

289-
- uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
291+
- uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1.11.5
290292
id: otelbot-token
291293
with:
292294
app-id: ${{ vars.OTELBOT_APP_ID }}
@@ -299,7 +301,7 @@ jobs:
299301
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
300302
run: |
301303
message="Update apidiff baseline to released version $VERSION"
302-
body="Update apidiff baseline to released version \`$version\`."
304+
body="Update apidiff baseline to released version \`$VERSION\`."
303305
branch="otelbot/update-apidiff-baseline-to-released-version-${VERSION}"
304306
305307
git checkout -b $branch

.github/workflows/reusable-native-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2222
- id: read-java
2323
run: echo "version=$(cat .java-version)" >> "$GITHUB_OUTPUT"
24-
- uses: graalvm/setup-graalvm@aafbedb8d382ed0ca6167d3a051415f20c859274 # v1.2.8.1
24+
- uses: graalvm/setup-graalvm@b0cb26a8da53cb3e97cdc0c827d8e3071240e730 # v1.3.1.1
2525
with:
2626
version: "latest"
2727
java-version: "${{ steps.read-java.outputs.version }}"

.github/workflows/reusable-test-indy.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ on:
99
no-build-cache:
1010
type: boolean
1111
required: false
12-
max-test-retries:
13-
type: string
14-
required: false
1512
secrets:
1613
FLAKY_TEST_REPORTER_ACCESS_KEY:
1714
required: false
@@ -55,7 +52,7 @@ jobs:
5552

5653
# vaadin tests use pnpm
5754
- name: Cache pnpm modules
58-
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
55+
uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.1
5956
with:
6057
path: ~/.pnpm-store
6158
key: ${{ runner.os }}-test-latest-cache-pnpm-modules
@@ -82,7 +79,6 @@ jobs:
8279
${{ env.test-tasks }}
8380
-PtestIndy=true
8481
${{ inputs.no-build-cache && ' --no-build-cache' || '' }}
85-
${{ inputs.max-test-retries && format(' -PmaxTestRetries={0}', inputs.max-test-retries) || '' }}
8682
8783
- name: Build scan
8884
if: ${{ !cancelled() && hashFiles('build-scan.txt') != '' }}

0 commit comments

Comments
 (0)