Skip to content

Commit 2174f7a

Browse files
committed
Merge branch 'main' of https://github.com/open-telemetry/opentelemetry-java into update-is-enabled-methods
2 parents 251ef99 + 15ae8c0 commit 2174f7a

File tree

401 files changed

+13452
-4091
lines changed

Some content is hidden

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

401 files changed

+13452
-4091
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/renovate.json5

Lines changed: 57 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,85 @@
11
{
2-
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"config:recommended",
5-
"docker:pinDigests",
6-
"helpers:pinGitHubActionDigests"
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3+
extends: [
4+
'config:best-practices',
5+
'helpers:pinGitHubActionDigestsToSemver',
76
],
8-
"packageRules": [
7+
packageRules: [
98
{
109
// this is to reduce the number of renovate PRs
11-
"matchManagers": [
12-
"github-actions",
13-
"dockerfile"
10+
matchManagers: [
11+
'github-actions',
12+
'dockerfile',
1413
],
15-
"extends": ["schedule:weekly"],
16-
"groupName": "weekly update"
14+
extends: [
15+
'schedule:weekly',
16+
],
17+
groupName: 'weekly update',
1718
},
1819
{
19-
"matchPackageNames": [
20-
"io.opentelemetry.contrib:opentelemetry-aws-xray-propagator",
21-
"io.opentelemetry.proto:opentelemetry-proto",
22-
"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',
2324
],
2425
// Renovate's default behavior is only to update from unstable -> unstable if it's for the
2526
// major.minor.patch, under the assumption that you would want to update to the stable version
2627
// of that release instead of the unstable version for a future release
2728
// (TODO remove once the artifacts above release stable versions)
28-
"ignoreUnstable": false,
29-
"allowedVersions": "!/\\-SNAPSHOT$/"
29+
ignoreUnstable: false,
30+
allowedVersions: '!/\\-SNAPSHOT$/',
3031
},
3132
{
3233
// junit-pioneer 2+ requires Java 11+
33-
"matchPackageNames": ["org.junit-pioneer:junit-pioneer"],
34-
"matchUpdateTypes": ["major"],
35-
"enabled": false
34+
matchPackageNames: [
35+
'org.junit-pioneer:junit-pioneer',
36+
],
37+
matchUpdateTypes: [
38+
'major',
39+
],
40+
enabled: false,
3641
},
3742
{
3843
// mockito 5+ requires Java 11+
39-
"matchPackagePrefixes": ["org.mockito:"],
40-
"matchUpdateTypes": ["major"],
41-
"enabled": false
44+
matchUpdateTypes: [
45+
'major',
46+
],
47+
enabled: false,
48+
matchPackageNames: [
49+
'org.mockito:{/,}**',
50+
],
4251
},
4352
{
4453
// jqf-fuzz version 1.8+ requires Java 11+
45-
"matchPackageNames": ["edu.berkeley.cs.jqf:jqf-fuzz"],
46-
"matchUpdateTypes": ["major", "minor"],
47-
"enabled": false
54+
matchPackageNames: [
55+
'edu.berkeley.cs.jqf:jqf-fuzz',
56+
],
57+
matchUpdateTypes: [
58+
'major',
59+
'minor',
60+
],
61+
enabled: false,
4862
},
4963
{
5064
// pinned version for compatibility
51-
"matchPackageNames": ["org.jetbrains.kotlinx:kotlinx-coroutines-core"],
52-
"matchCurrentVersion": "1.5.2",
53-
"enabled": false
65+
matchPackageNames: [
66+
'org.jetbrains.kotlinx:kotlinx-coroutines-core',
67+
],
68+
matchCurrentVersion: '1.5.2',
69+
enabled: false,
70+
},
71+
{
72+
groupName: 'spotless packages',
73+
matchPackageNames: [
74+
'com.diffplug.spotless{/,}**',
75+
],
5476
},
5577
{
56-
"matchPackagePrefixes": ["com.diffplug.spotless"],
57-
"groupName": "spotless packages"
78+
// equals verifier v4+ requires java 17+
79+
groupName: 'nl.jqno.equalsverifier',
80+
matchPackageNames: [ 'equalsverifier'],
81+
matchUpdateTypes: [ 'major' ],
82+
enabled: false
5883
}
59-
]
84+
],
6085
}

.github/repository-settings.md

Lines changed: 12 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

@@ -103,3 +13,12 @@ Repository settings in addition to what's documented already at
10313
- Key is associated with [@trask](https://github.com/trask)'s gmail address
10414
- `SONATYPE_KEY` - owned by [@jack-berg](https://github.com/jack-berg)
10515
- `SONATYPE_USER` - owned by [@jack-berg](https://github.com/jack-berg)
16+
17+
### Organization secrets
18+
19+
- `FOSSA_API_KEY`
20+
- `OTELBOT_PRIVATE_KEY`
21+
22+
### Organization variables
23+
24+
- `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/^/@/'

.github/scripts/update-version.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash -e
2+
3+
version=$1
4+
versionWithSnapshot="$version-SNAPSHOT"
5+
6+
sed -Ei "s/[0-9]+\.[0-9]+\.[0-9]+/$version/" version.gradle.kts
7+
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
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@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
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: 3 additions & 3 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
@@ -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@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
6060
- name: Run jmh
6161
run: ./gradlew jmhJar
6262

.github/workflows/benchmark.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ 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
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@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
3030
- name: Run jmh
3131
run: ./gradlew jmhJar
3232

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ 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 }}
2929
password: ${{ secrets.GITHUB_TOKEN }}
3030

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

0 commit comments

Comments
 (0)