Skip to content

Commit b734d11

Browse files
committed
Merge remote-tracking branch 'upstream/main' into varhandle-string-encoder
2 parents a89596c + de48d1b commit b734d11

276 files changed

Lines changed: 3617 additions & 1943 deletions

File tree

Some content is hidden

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

.github/CODEOWNERS

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# Code owners file.
2-
# This file controls who is tagged for review for any given pull request.
1+
#
2+
# Learn about membership in OpenTelemetry community:
3+
# https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md
4+
#
35

4-
# For anything not explicitly taken by someone else:
56
* @open-telemetry/java-approvers

.github/config/lychee.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Lychee configuration file
2+
# See https://lychee.cli.rs/config/
3+
4+
timeout = 30
5+
retry_wait_time = 5
6+
max_retries = 6
7+
max_concurrency = 4
8+
9+
# Check link anchors
10+
include_fragments = true
11+
12+
remap = [
13+
# workaround for https://github.com/lycheeverse/lychee/issues/1729
14+
"https://github.com/(.*?)/(.*?)/blob/(.*?)/(.*#.*)$ https://raw.githubusercontent.com/$1/$2/$3/$4",
15+
]
16+
17+
# excluding links to pull requests and issues is done for performance
18+
exclude = [
19+
"^https://github.com/open-telemetry/opentelemetry-java/(issues|pull)/\\d+$",
20+
"^https://www.javadoc.io/badge/(.*?)/(.*?).svg$", # returns 522
21+
]

.github/renovate.json5

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
'config:best-practices',
55
'helpers:pinGitHubActionDigestsToSemver',
66
],
7+
ignorePresets: [
8+
'workarounds:javaLTSVersions', // Allow all Java major versions, not just LTS
9+
],
710
ignorePaths: [], // overwrite default ignore which includes **/test/**
811
// used to update docker image versions used in Java test files
912
packageRules: [
@@ -31,6 +34,17 @@
3134
ignoreUnstable: false,
3235
allowedVersions: '!/\\-SNAPSHOT$/',
3336
},
37+
{
38+
// junit 6+ requires Java 17+
39+
matchPackageNames: [
40+
'org.junit:**',
41+
'org.junit.jupiter:**',
42+
],
43+
matchUpdateTypes: [
44+
'major',
45+
],
46+
enabled: false,
47+
},
3448
{
3549
// junit-pioneer 2+ requires Java 11+
3650
matchPackageNames: [
@@ -48,7 +62,7 @@
4862
],
4963
enabled: false,
5064
matchPackageNames: [
51-
'org.mockito:{/,}**',
65+
'org.mockito:**',
5266
],
5367
},
5468
{
@@ -73,7 +87,8 @@
7387
{
7488
groupName: 'spotless packages',
7589
matchPackageNames: [
76-
'com.diffplug.spotless{/,}**',
90+
'com.diffplug.spotless',
91+
'com.diffplug.spotless:**',
7792
],
7893
},
7994
{

.github/repository-settings.md

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

77
## Secrets and variables > Actions
88

9+
### Repository secrets
10+
911
- `GPG_PASSWORD` - stored in OpenTelemetry-Java 1Password
1012
- `GPG_PRIVATE_KEY` - stored in OpenTelemetry-Java 1Password
1113
- `NVD_API_KEY` - stored in OpenTelemetry-Java 1Password
@@ -16,6 +18,8 @@ private admin repo.
1618

1719
### Organization secrets
1820

21+
- `CODECOV_TOKEN`
22+
- `DEVELOCITY_ACCESS_KEY` (scoped only to Java repos)
1923
- `FOSSA_API_KEY`
2024
- `OTELBOT_PRIVATE_KEY`
2125

File renamed without changes.

.github/workflows/backport.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
fetch-depth: 0
2828

2929
- name: Use CLA approved github bot
30-
run: .github/scripts/use-cla-approved-github-bot.sh
30+
run: .github/scripts/use-cla-approved-bot.sh
3131

3232
- uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
3333
id: otelbot-token

.github/workflows/benchmark-tags.yml

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,16 @@ jobs:
1111
permissions:
1212
contents: write # for git push to benchmarks branch
1313
name: Benchmark SDK
14-
runs-on: equinix-bare-metal
15-
timeout-minutes: 10
14+
runs-on: oracle-bare-metal-64cpu-512gb-x86-64
15+
container:
16+
image: ubuntu:24.04@sha256:66460d557b25769b102175144d538d88219c077c678a49af4afca6fbfc1b5252
17+
timeout-minutes: 20 # since there is only a single bare metal runner across all repos
1618
strategy:
1719
fail-fast: false
1820
matrix:
1921
tag-version:
20-
- v1.6.0
21-
- v1.7.0
22-
- v1.7.1
23-
- v1.10.0
24-
- v1.10.1
25-
- v1.11.0
26-
- v1.12.0
27-
- v1.13.0
28-
- v1.14.0
29-
- v1.15.0
30-
- v1.16.0
31-
- v1.17.0
32-
- v1.18.0
33-
- v1.19.0
34-
- v1.21.0
35-
- v1.22.0
36-
- v1.23.0
37-
- v1.23.1
38-
- v1.24.0
39-
- v1.25.0
40-
- v1.26.0
41-
- v1.27.0
42-
- v1.28.0
4322
- v1.29.0
4423
- v1.30.0
45-
- v1.30.1
4624
steps:
4725
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4826
with:
@@ -53,12 +31,14 @@ jobs:
5331
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
5432
with:
5533
distribution: temurin
56-
java-version: 17
34+
java-version: 21
5735

5836
- name: Set up gradle
59-
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a # v4.4.3
37+
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
6038
- name: Run jmh
6139
run: ./gradlew jmhJar
40+
env:
41+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
6242

6343
- name: Run Benchmark
6444
run: |

.github/workflows/benchmark.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
name: Benchmark SDK
1616
runs-on: oracle-bare-metal-64cpu-512gb-x86-64
1717
container:
18-
image: ubuntu:24.04@sha256:353675e2a41babd526e2b837d7ec780c2a05bca0164f7ea5dbbd433d21d166fc
18+
image: ubuntu:24.04@sha256:66460d557b25769b102175144d538d88219c077c678a49af4afca6fbfc1b5252
1919
timeout-minutes: 20 # since there is only a single bare metal runner across all repos
2020
steps:
2121
- name: Install Git
@@ -33,20 +33,22 @@ jobs:
3333
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
3434
with:
3535
distribution: temurin
36-
java-version: 17
36+
java-version: 21
3737

3838
- name: Set up gradle
39-
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a # v4.4.3
39+
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
4040
- name: Run jmh
4141
run: ./gradlew jmhJar
42+
env:
43+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
4244

4345
- name: Run Benchmark
4446
run: |
4547
cd sdk/trace/build
4648
java -jar libs/opentelemetry-sdk-trace-*-jmh.jar -rf json SpanBenchmark SpanPipelineBenchmark ExporterBenchmark
4749
4850
- name: Use CLA approved github bot
49-
run: .github/scripts/use-cla-approved-github-bot.sh
51+
run: .github/scripts/use-cla-approved-bot.sh
5052

5153
- name: Store benchmark results
5254
uses: benchmark-action/github-action-benchmark@4bdcce38c94cec68da58d012ac24b7b1155efe8b # v1.20.7

.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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2323

2424
- name: Login to GitHub package registry
25-
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
25+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
2626
with:
2727
registry: ghcr.io
2828
username: ${{ github.repository_owner }}

.github/workflows/build.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- 11
3333
- 17
3434
- 21
35-
- 24 # renovate: datasource=java-version
35+
- 25 # renovate: datasource=java-version
3636
# Collect coverage on latest LTS
3737
include:
3838
- os: ubuntu-latest
@@ -50,7 +50,7 @@ jobs:
5050
- os: macos-13
5151
test-java-version: 21
5252
- os: macos-13
53-
test-java-version: 24 # renovate: datasource=java-version
53+
test-java-version: 25 # renovate: datasource=java-version
5454
steps:
5555
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5656

@@ -66,10 +66,10 @@ jobs:
6666
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
6767
with:
6868
distribution: temurin
69-
java-version: 17
69+
java-version: 21
7070

7171
- name: Set up gradle
72-
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a # v4.4.3
72+
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
7373
- name: Build
7474
run: >
7575
./gradlew build
@@ -80,6 +80,7 @@ jobs:
8080
env:
8181
# JMH-based tests run only if this environment variable is set to true
8282
RUN_JMH_BASED_TESTS: ${{ matrix.jmh-based-tests }}
83+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
8384

8485
- name: Check for diff
8586
# The jApiCmp diff compares current to latest, which isn't appropriate for release branches
@@ -104,7 +105,7 @@ jobs:
104105
env:
105106
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
106107

107-
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
108+
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
108109
if: ${{ matrix.coverage }}
109110
with:
110111
name: coverage-report
@@ -113,7 +114,7 @@ jobs:
113114
markdown-link-check:
114115
# release branches are excluded to avoid unnecessary maintenance
115116
if: ${{ !startsWith(github.ref_name, 'release/') }}
116-
uses: ./.github/workflows/reusable-markdown-link-check.yml
117+
uses: ./.github/workflows/reusable-link-check.yml
117118

118119
misspell-check:
119120
# release branches are excluded to avoid unnecessary maintenance
@@ -142,10 +143,10 @@ jobs:
142143
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
143144
with:
144145
distribution: temurin
145-
java-version: 17
146+
java-version: 21
146147

147148
- name: Set up gradle
148-
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a # v4.4.3
149+
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
149150
# skipping release branches because the versions in those branches are not snapshots
150151
# (also this skips pull requests)
151152
if: ${{ github.ref_name == 'main' && github.repository == 'open-telemetry/opentelemetry-java' }}
@@ -159,6 +160,7 @@ jobs:
159160
SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }}
160161
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
161162
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
163+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
162164

163165
build-graal:
164166
name: Build GraalVM
@@ -168,10 +170,10 @@ jobs:
168170
matrix:
169171
test-graal-version:
170172
- 21
171-
- 24 # renovate: datasource=java-version
173+
- 25 # renovate: datasource=java-version
172174
steps:
173175
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
174-
- uses: graalvm/setup-graalvm@aba6a077d71fbfc02138d7470c4ad6e7f85bd2a9 # v1.3.7
176+
- uses: graalvm/setup-graalvm@eec48106e0bf45f2976c2ff0c3e22395cced8243 # v1.4.2
175177
with:
176178
java-version: ${{ matrix.test-graal-version }}
177179
distribution: 'graalvm'
@@ -184,6 +186,8 @@ jobs:
184186
java --version
185187
native-image --version
186188
./gradlew nativeTest
189+
env:
190+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
187191

188192
required-status-check:
189193
# markdown-link-check is not required so pull requests are not blocked if external links break

0 commit comments

Comments
 (0)