Skip to content

Commit e897b47

Browse files
committed
Merge branch 'main' of github.com:jaydeluca/opentelemetry-java-instrumentation into continue-modules
2 parents 9d04b94 + fc7e166 commit e897b47

File tree

67 files changed

+3385
-2519
lines changed

Some content is hidden

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

67 files changed

+3385
-2519
lines changed

.github/workflows/auto-update-pull-request.yml

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -43,31 +43,10 @@ jobs:
4343
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4444
if: steps.unzip-patch.outputs.exists == 'true'
4545
with:
46+
repository: "${{ github.event.workflow_run.head_repository.full_name }}"
47+
ref: "${{ github.event.workflow_run.head_branch }}"
4648
token: ${{ steps.otelbot-token.outputs.token }}
4749

48-
- id: get-pr
49-
if: steps.unzip-patch.outputs.exists == 'true'
50-
name: Get PR
51-
env:
52-
PR_BRANCH: |-
53-
${{
54-
(github.event.workflow_run.head_repository.owner.login != github.event.workflow_run.repository.owner.login)
55-
&& format('{0}:{1}', github.event.workflow_run.head_repository.owner.login, github.event.workflow_run.head_branch)
56-
|| github.event.workflow_run.head_branch
57-
}}
58-
GH_TOKEN: ${{ github.token }}
59-
run: |
60-
echo gh pr view "${PR_BRANCH}" --json number --jq .number
61-
number=$(gh pr view "${PR_BRANCH}" --json number --jq .number)
62-
echo $number
63-
echo "number=$number" >> $GITHUB_OUTPUT
64-
65-
- name: Check out PR branch
66-
if: steps.unzip-patch.outputs.exists == 'true'
67-
env:
68-
GH_TOKEN: ${{ github.token }}
69-
run: gh pr checkout ${{ steps.get-pr.outputs.number }}
70-
7150
- name: Use CLA approved github bot
7251
if: steps.unzip-patch.outputs.exists == 'true'
7352
# IMPORTANT do not call the .github/scripts/use-cla-approved-bot.sh
@@ -83,14 +62,34 @@ jobs:
8362
git commit -a -m "./gradlew spotlessApply"
8463
git push
8564
65+
- id: get-pr
66+
if: steps.unzip-patch.outputs.exists == 'true'
67+
name: Get PR
68+
env:
69+
GH_REPO: ${{ github.repository }}
70+
GH_TOKEN: ${{ github.token }}
71+
PR_BRANCH: |-
72+
${{
73+
(github.event.workflow_run.head_repository.owner.login != github.event.workflow_run.repository.owner.login)
74+
&& format('{0}:{1}', github.event.workflow_run.head_repository.owner.login, github.event.workflow_run.head_branch)
75+
|| github.event.workflow_run.head_branch
76+
}}
77+
run: |
78+
number=$(gh pr view "$PR_BRANCH" --json number --jq .number)
79+
echo "number=$number" >> $GITHUB_OUTPUT
80+
8681
- if: steps.unzip-patch.outputs.exists == 'true' && success()
8782
env:
83+
GH_REPO: ${{ github.repository }}
8884
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
85+
PR_NUMBER: ${{ steps.get-pr.outputs.number }}
8986
run: |
90-
gh pr comment ${{ steps.get-pr.outputs.number }} --body "🔧 The result from spotlessApply was committed to the PR branch."
87+
gh pr comment $PR_NUMBER --body "🔧 The result from spotlessApply was committed to the PR branch."
9188
9289
- if: steps.unzip-patch.outputs.exists == 'true' && failure()
9390
env:
91+
GH_REPO: ${{ github.repository }}
9492
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
93+
PR_NUMBER: ${{ steps.get-pr.outputs.number }}
9594
run: |
96-
gh pr comment ${{ steps.get-pr.outputs.number }} --body "❌ The result from spotlessApply could not be committed to the PR branch, see logs: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID."
95+
gh pr comment $PR_NUMBER --body "❌ The result from spotlessApply could not be committed to the PR branch, see logs: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID."

.github/workflows/ossf-scorecard.yml

Lines changed: 1 addition & 1 deletion
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@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
26+
- uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
2727
with:
2828
results_file: results.sarif
2929
results_format: sarif

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

Lines changed: 1 addition & 1 deletion
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@1dc73863535b631f98b2378be8619f83b136f4a0 # v6.17.0
35+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
3636
with:
3737
push: true
3838
file: benchmark-overhead/Dockerfile.petclinic

benchmark-overhead/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ repositories {
1818
dependencies {
1919
implementation(enforcedPlatform("org.junit:junit-bom:5.12.2"))
2020

21-
testImplementation("org.testcontainers:testcontainers:1.21.0")
22-
testImplementation("org.testcontainers:postgresql:1.21.0")
21+
testImplementation("org.testcontainers:testcontainers:1.21.1")
22+
testImplementation("org.testcontainers:postgresql:1.21.1")
2323
testImplementation("org.junit.jupiter:junit-jupiter-api")
2424
testImplementation("org.junit.jupiter:junit-jupiter-params")
2525
testImplementation("com.squareup.okhttp3:okhttp:4.12.0")

conventions/src/main/kotlin/otel.java-conventions.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ abstract class NettyAlignmentRule : ComponentMetadataRule {
143143
with(ctx.details) {
144144
if (id.group == "io.netty" && id.name != "netty") {
145145
if (id.version.startsWith("4.1.")) {
146-
belongsTo("io.netty:netty-bom:4.1.121.Final", false)
146+
belongsTo("io.netty:netty-bom:4.1.122.Final", false)
147147
} else if (id.version.startsWith("4.0.")) {
148148
belongsTo("io.netty:netty-bom:4.0.56.Final", false)
149149
}
@@ -431,7 +431,7 @@ codenarc {
431431
checkstyle {
432432
configFile = rootProject.file("buildscripts/checkstyle.xml")
433433
// this version should match the version of google_checks.xml used as basis for above configuration
434-
toolVersion = "10.24.0"
434+
toolVersion = "10.25.0"
435435
maxWarnings = 0
436436
}
437437

dependencyManagement/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ val DEPENDENCY_BOMS = listOf(
3333
"org.apache.groovy:groovy-bom:${groovyVersion}",
3434
"io.opentelemetry:opentelemetry-bom:${otelSdkVersion}",
3535
"io.opentelemetry:opentelemetry-bom-alpha:${otelSdkAlphaVersion}",
36-
"org.testcontainers:testcontainers-bom:1.21.0"
36+
"org.testcontainers:testcontainers-bom:1.21.1"
3737
)
3838

3939
val autoServiceVersion = "1.1.1"

examples/distro/smoke-tests/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
dependencies {
6-
testImplementation("org.testcontainers:testcontainers:1.21.0")
6+
testImplementation("org.testcontainers:testcontainers:1.21.1")
77
testImplementation("com.fasterxml.jackson.core:jackson-databind:2.19.0")
88
testImplementation("com.google.protobuf:protobuf-java-util:4.31.1")
99
testImplementation("com.squareup.okhttp3:okhttp:4.12.0")

examples/extension/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ dependencies {
9797
implementation 'org.apache.commons:commons-lang3:3.17.0'
9898

9999
//All dependencies below are only for tests
100-
testImplementation("org.testcontainers:testcontainers:1.21.0")
100+
testImplementation("org.testcontainers:testcontainers:1.21.1")
101101
testImplementation("com.fasterxml.jackson.core:jackson-databind:2.19.0")
102102
testImplementation("com.google.protobuf:protobuf-java-util:4.31.1")
103103
testImplementation("com.squareup.okhttp3:okhttp:4.12.0")

0 commit comments

Comments
 (0)