Skip to content

Commit 4b994e6

Browse files
committed
Merge branch 'main' into auto-opentelemetry-builder-hold-mutex
2 parents a5f3c0c + 6a164a9 commit 4b994e6

File tree

163 files changed

+3440
-893
lines changed

Some content is hidden

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

163 files changed

+3440
-893
lines changed

.github/renovate.json5

Lines changed: 51 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,78 @@
11
{
2-
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"config:best-practices",
5-
"helpers:pinGitHubActionDigestsToSemver"
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3+
extends: [
4+
'config:best-practices',
5+
'helpers:pinGitHubActionDigestsToSemver',
66
],
7-
"packageRules": [
7+
packageRules: [
88
{
99
// this is to reduce the number of renovate PRs
10-
"matchManagers": [
11-
"github-actions",
12-
"dockerfile"
10+
matchManagers: [
11+
'github-actions',
12+
'dockerfile',
1313
],
14-
"extends": ["schedule:weekly"],
15-
"groupName": "weekly update"
14+
extends: [
15+
'schedule:weekly',
16+
],
17+
groupName: 'weekly update',
1618
},
1719
{
18-
"matchPackageNames": [
19-
"io.opentelemetry.contrib:opentelemetry-aws-xray-propagator",
20-
"io.opentelemetry.proto:opentelemetry-proto",
21-
"io.opentelemetry.semconv:opentelemetry-semconv-incubating"
20+
matchPackageNames: [
21+
'io.opentelemetry.contrib:opentelemetry-aws-xray-propagator',
22+
'io.opentelemetry.proto:opentelemetry-proto',
23+
'io.opentelemetry.semconv:opentelemetry-semconv-incubating',
2224
],
2325
// Renovate's default behavior is only to update from unstable -> unstable if it's for the
2426
// major.minor.patch, under the assumption that you would want to update to the stable version
2527
// of that release instead of the unstable version for a future release
2628
// (TODO remove once the artifacts above release stable versions)
27-
"ignoreUnstable": false,
28-
"allowedVersions": "!/\\-SNAPSHOT$/"
29+
ignoreUnstable: false,
30+
allowedVersions: '!/\\-SNAPSHOT$/',
2931
},
3032
{
3133
// junit-pioneer 2+ requires Java 11+
32-
"matchPackageNames": ["org.junit-pioneer:junit-pioneer"],
33-
"matchUpdateTypes": ["major"],
34-
"enabled": false
34+
matchPackageNames: [
35+
'org.junit-pioneer:junit-pioneer',
36+
],
37+
matchUpdateTypes: [
38+
'major',
39+
],
40+
enabled: false,
3541
},
3642
{
3743
// mockito 5+ requires Java 11+
38-
"matchPackagePrefixes": ["org.mockito:"],
39-
"matchUpdateTypes": ["major"],
40-
"enabled": false
44+
matchUpdateTypes: [
45+
'major',
46+
],
47+
enabled: false,
48+
matchPackageNames: [
49+
'org.mockito:{/,}**',
50+
],
4151
},
4252
{
4353
// jqf-fuzz version 1.8+ requires Java 11+
44-
"matchPackageNames": ["edu.berkeley.cs.jqf:jqf-fuzz"],
45-
"matchUpdateTypes": ["major", "minor"],
46-
"enabled": false
54+
matchPackageNames: [
55+
'edu.berkeley.cs.jqf:jqf-fuzz',
56+
],
57+
matchUpdateTypes: [
58+
'major',
59+
'minor',
60+
],
61+
enabled: false,
4762
},
4863
{
4964
// pinned version for compatibility
50-
"matchPackageNames": ["org.jetbrains.kotlinx:kotlinx-coroutines-core"],
51-
"matchCurrentVersion": "1.5.2",
52-
"enabled": false
65+
matchPackageNames: [
66+
'org.jetbrains.kotlinx:kotlinx-coroutines-core',
67+
],
68+
matchCurrentVersion: '1.5.2',
69+
enabled: false,
5370
},
5471
{
55-
"matchPackagePrefixes": ["com.diffplug.spotless"],
56-
"groupName": "spotless packages"
57-
}
58-
]
72+
groupName: 'spotless packages',
73+
matchPackageNames: [
74+
'com.diffplug.spotless{/,}**',
75+
],
76+
},
77+
],
5978
}

.github/repository-settings.md

Lines changed: 3 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,8 @@
11
# Repository settings
22

3-
Repository settings in addition to what's documented already at
4-
<https://github.com/open-telemetry/community/blob/main/docs/how-to-configure-new-repository.md>.
5-
6-
## General > Pull Requests
7-
8-
- Allow squash merging > Default to pull request title
9-
10-
- Allow auto-merge
11-
12-
## Actions > General
13-
14-
- Fork pull request workflows from outside collaborators:
15-
"Require approval for first-time contributors who are new to GitHub"
16-
17-
(To reduce friction for new contributors,
18-
as the default is "Require approval for first-time contributors")
19-
20-
- Workflow permissions
21-
- Default permissions granted to the `GITHUB_TOKEN` when running workflows in this repository:
22-
Read repository contents and packages permissions
23-
- Allow GitHub Actions to create and approve pull requests: UNCHECKED
24-
25-
## Rules > Rulesets
26-
27-
### `main` and release branches
28-
29-
- Targeted branches:
30-
- `main`
31-
- `release/*`
32-
- Branch rules
33-
- Restrict deletions: CHECKED
34-
- Require linear history: CHECKED
35-
- Require a pull request before merging: CHECKED
36-
- Required approvals: 1
37-
- Require review from Code Owners: CHECKED
38-
- Allowed merge methods: Squash
39-
- Require status checks to pass
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`
45-
- Block force pushes: CHECKED
46-
- Require code scanning results: CHECKED
47-
- CodeQL
48-
- Security alerts: High or higher
49-
- Alerts: Errors
50-
51-
### `benchmarks` branch
52-
53-
- Targeted branches:
54-
- `benchmarks`
55-
- Branch rules
56-
- Restrict deletions: CHECKED
57-
- Require linear history: CHECKED
58-
- Block force pushes: CHECKED
59-
60-
### Old-style release branches
61-
62-
- Targeted branches:
63-
- `v0.*`
64-
- `v1.*`
65-
- Branch rules
66-
- Restrict creations: CHECKED
67-
- Restrict updates: CHECKED
68-
- Restrict deletions: CHECKED
69-
70-
### Restrict branch creation
71-
72-
- Targeted branches
73-
- Exclude:
74-
- `release/*`
75-
- `renovate/**/*`
76-
- `otelbot/**/*`
77-
- `revert-*/**/*` (these are created when using the GitHub UI to revert a PR)
78-
- Restrict creations: CHECKED
79-
80-
### Restrict updating tags
81-
82-
- Targeted tags
83-
- All tags
84-
- Restrict updates: CHECKED
85-
- Restrict deletions: CHECKED
86-
87-
## Branch protections
88-
89-
### `main`, `release/*`
90-
91-
- Restrict who can push to matching branches: CHECKED
92-
93-
## Code security and analysis
94-
95-
- Secret scanning: Enabled
3+
This document describes any changes that have been made to the
4+
settings in this repository outside the settings tracked in the
5+
private admin repo.
966

977
## Secrets and variables > Actions
988

.github/scripts/update-version.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/bash -e
22

33
version=$1
4+
versionWithSnapshot="$version-SNAPSHOT"
45

56
sed -Ei "s/[0-9]+\.[0-9]+\.[0-9]+/$version/" version.gradle.kts
67

7-
sed -Ei "1 s/(Comparing source compatibility of [a-z-]+)-[0-9]+\.[0-9]+\.[0-9]+(-SNAPSHOT)?.jar/\1-$version.jar/" docs/apidiffs/current_vs_latest/*.txt
8+
sed -Ei "1 s/(Comparing source compatibility of [a-z-]+)-[0-9]+\.[0-9]+\.[0-9]+(-SNAPSHOT)?.jar/\1-$versionWithSnapshot.jar/" docs/apidiffs/current_vs_latest/*.txt

.github/workflows/benchmark-tags.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
permissions:
1212
contents: write # for git push to benchmarks branch
1313
name: Benchmark SDK
14-
runs-on: self-hosted
14+
runs-on: equinix-bare-metal
1515
timeout-minutes: 10
1616
strategy:
1717
fail-fast: false
@@ -56,7 +56,7 @@ jobs:
5656
java-version: 17
5757

5858
- name: Set up gradle
59-
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
59+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
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
@@ -13,7 +13,7 @@ jobs:
1313
permissions:
1414
contents: write # for git push to benchmarks branch
1515
name: Benchmark SDK
16-
runs-on: self-hosted
16+
runs-on: equinix-bare-metal
1717
timeout-minutes: 10
1818
steps:
1919
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -26,7 +26,7 @@ jobs:
2626
java-version: 17
2727

2828
- name: Set up gradle
29-
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
29+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
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
@@ -29,7 +29,7 @@ jobs:
2929
password: ${{ secrets.GITHUB_TOKEN }}
3030

3131
- name: Build and push
32-
uses: docker/build-push-action@1dc73863535b631f98b2378be8619f83b136f4a0 # v6.17.0
32+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
3333
with:
3434
context: integration-tests/tracecontext/docker
3535
push: true

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
java-version: 17
7070

7171
- name: Set up gradle
72-
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
72+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
7373
- name: Build
7474
run: >
7575
./gradlew build
@@ -145,7 +145,7 @@ jobs:
145145
java-version: 17
146146

147147
- name: Set up gradle
148-
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
148+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434
java-version: 17
3535

3636
- name: Set up gradle
37-
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
37+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
3838

3939
- name: Initialize CodeQL
40-
uses: github/codeql-action/init@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3.28.17
40+
uses: github/codeql-action/init@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19
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@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3.28.17
54+
uses: github/codeql-action/analyze@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19

.github/workflows/gradle-wrapper-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1515

16-
- uses: gradle/actions/wrapper-validation@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
16+
- uses: gradle/actions/wrapper-validation@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0

.github/workflows/issue-management-feedback-label.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
permissions:
1313
contents: read
1414
issues: write
15+
pull-requests: write
1516
if: >
1617
contains(github.event.issue.labels.*.name, 'needs author feedback') &&
1718
github.event.comment.user.login == github.event.issue.user.login

0 commit comments

Comments
 (0)