Skip to content

Commit 8b3402b

Browse files
committed
erge branch 'main' of https://github.com/open-telemetry/opentelemetry-java into declarative-config-0.4
2 parents 42db913 + f17b8b0 commit 8b3402b

File tree

204 files changed

+4857
-826
lines changed

Some content is hidden

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

204 files changed

+4857
-826
lines changed

.clomonitor.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
# see https://github.com/cncf/clomonitor/blob/main/docs/checks.md#exemptions
12
exemptions:
23
- check: artifacthub_badge
34
reason: "Artifact Hub doesn't support Java packages"
45
- check: signed_releases
56
reason: "Maven central releases are signed and there are no GitHub release artifacts"
7+
- check: openssf_badge
8+
reason: "ETOOMANYBADGES, but the work has been done: https://www.bestpractices.dev/projects/9991"

.github/repository-settings.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,12 @@ Repository settings in addition to what's documented already at
103103
- Key is associated with [@trask](https://github.com/trask)'s gmail address
104104
- `SONATYPE_KEY` - owned by [@jack-berg](https://github.com/jack-berg)
105105
- `SONATYPE_USER` - owned by [@jack-berg](https://github.com/jack-berg)
106+
107+
### Organization secrets
108+
109+
- `FOSSA_API_KEY`
110+
- `OTELBOT_PRIVATE_KEY`
111+
112+
### Organization variables
113+
114+
- `OTELBOT_APP_ID`

.github/scripts/generate-release-contributors.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,5 @@ echo $contributors1 $contributors2 \
8686
| grep -v github-actions \
8787
| grep -v renovate \
8888
| grep -v codecov \
89-
| grep -v opentelemetrybot \
89+
| grep -v otelbot \
9090
| sed 's/^/@/'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash -e
22

3-
git config user.name opentelemetrybot
4-
git config user.email 107717825+opentelemetrybot@users.noreply.github.com
3+
git config user.name otelbot
4+
git config user.email 197425009+otelbot@users.noreply.github.com

.github/workflows/backport.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,22 @@ jobs:
2929
- name: Use CLA approved github bot
3030
run: .github/scripts/use-cla-approved-github-bot.sh
3131

32+
- uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
33+
id: otelbot-token
34+
with:
35+
app-id: ${{ vars.OTELBOT_APP_ID }}
36+
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
37+
3238
- name: Create pull request
3339
env:
3440
NUMBER: ${{ github.event.inputs.number }}
3541
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
36-
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
42+
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
3743
run: |
3844
commit=$(gh pr view $NUMBER --json mergeCommit --jq .mergeCommit.oid)
3945
title=$(gh pr view $NUMBER --json title --jq .title)
4046
41-
branch="opentelemetrybot/backport-${NUMBER}-to-${GITHUB_REF_NAME//\//-}"
47+
branch="otelbot/backport-${NUMBER}-to-${GITHUB_REF_NAME//\//-}"
4248
4349
git checkout -b $branch
4450
git cherry-pick $commit

.github/workflows/benchmark-tags.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ jobs:
5050

5151
- id: setup-java
5252
name: Set up Java for build
53-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
53+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
5454
with:
5555
distribution: temurin
5656
java-version: 17
5757

5858
- name: Set up gradle
59-
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
59+
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
6060
- name: Run jmh
6161
run: ./gradlew jmhJar
6262

.github/workflows/benchmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020

2121
- id: setup-java
2222
name: Set up Java for build
23-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
23+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
2424
with:
2525
distribution: temurin
2626
java-version: 17
2727

2828
- name: Set up gradle
29-
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
29+
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
3030
- name: Run jmh
3131
run: ./gradlew jmhJar
3232

.github/workflows/build-tracecontext-testsuite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2323

2424
- name: Login to GitHub package registry
25-
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
25+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
2626
with:
2727
registry: ghcr.io
2828
username: ${{ github.repository_owner }}

.github/workflows/build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,20 @@ jobs:
5656

5757
- id: setup-java-test
5858
name: Set up Java ${{ matrix.test-java-version }} for tests
59-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
59+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
6060
with:
6161
distribution: temurin
6262
java-version: ${{ matrix.test-java-version }}
6363

6464
- id: setup-java
6565
name: Set up Java for build
66-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
66+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
6767
with:
6868
distribution: temurin
6969
java-version: 17
7070

7171
- name: Set up gradle
72-
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
72+
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
7373
- name: Build
7474
run: >
7575
./gradlew build
@@ -82,10 +82,10 @@ jobs:
8282
RUN_JMH_BASED_TESTS: ${{ matrix.jmh-based-tests }}
8383

8484
- name: Check for diff
85-
# The jApiCmp diff compares current to latest, which isn't appropriate for release branches, or for bot-generated PRs
85+
# The jApiCmp diff compares current to latest, which isn't appropriate for release branches
8686
# this fails on windows because of the bash-specific if/then/else syntax, but that's ok
8787
# because we only need to run this validation once (on any platform)
88-
if: ${{ matrix.os != 'windows-latest' && !startsWith(github.ref_name, 'release/') && !startsWith(github.base_ref, 'release/') && (github.actor != 'opentelemetrybot') }}
88+
if: ${{ matrix.os != 'windows-latest' && !startsWith(github.ref_name, 'release/') && !startsWith(github.base_ref, 'release/') }}
8989
run: |
9090
# need to "git add" in case any generated files did not already exist
9191
git add docs/apidiffs
@@ -104,7 +104,7 @@ jobs:
104104
env:
105105
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
106106

107-
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
107+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
108108
if: ${{ matrix.coverage }}
109109
with:
110110
name: coverage-report
@@ -139,13 +139,13 @@ jobs:
139139

140140
- id: setup-java
141141
name: Set up Java
142-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
142+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
143143
with:
144144
distribution: temurin
145145
java-version: 17
146146

147147
- name: Set up gradle
148-
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
148+
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
149149
# skipping release branches because the versions in those branches are not snapshots
150150
# (also this skips pull requests)
151151
if: ${{ github.ref_name == 'main' && github.repository == 'open-telemetry/opentelemetry-java' }}

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ jobs:
2828
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2929

3030
- name: Set up Java 17
31-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
31+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
3232
with:
3333
distribution: temurin
3434
java-version: 17
3535

3636
- name: Set up gradle
37-
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
37+
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
3838

3939
- name: Initialize CodeQL
40-
uses: github/codeql-action/init@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
40+
uses: github/codeql-action/init@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15
4141
with:
4242
languages: java, actions
4343
# using "latest" helps to keep up with the latest Kotlin support
@@ -51,4 +51,4 @@ jobs:
5151
run: ./gradlew assemble --no-build-cache --no-daemon
5252

5353
- name: Perform CodeQL analysis
54-
uses: github/codeql-action/analyze@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
54+
uses: github/codeql-action/analyze@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15

0 commit comments

Comments
 (0)