Skip to content

Commit b7a4cb6

Browse files
committed
Merge branch 'main' into messaging_semconv_update
# Conflicts: # instrumentation-api-incubator/build.gradle.kts # instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/internal/SemconvStability.java
2 parents 63bc58b + 81a4642 commit b7a4cb6

File tree

395 files changed

+7944
-3030
lines changed

Some content is hidden

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

395 files changed

+7944
-3030
lines changed

.github/repository-settings.md

Lines changed: 2 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,8 @@
11
# Repository settings
22

33
This document describes any changes that have been made to the
4-
settings for this repository beyond the [OpenTelemetry default repository
5-
settings](https://github.com/open-telemetry/community/blob/main/docs/how-to-configure-new-repository.md#repository-settings).
6-
7-
## General > Pull Requests
8-
9-
- Allow squash merging > Default to pull request title
10-
11-
- Allow auto-merge
12-
13-
## Actions > General
14-
15-
- Fork pull request workflows from outside collaborators:
16-
"Require approval for first-time contributors who are new to GitHub"
17-
18-
(To reduce friction for new contributors,
19-
as the default is "Require approval for first-time contributors")
20-
21-
- Workflow permissions
22-
- Default permissions granted to the `GITHUB_TOKEN` when running workflows in this repository:
23-
Read repository contents and packages permissions
24-
- Allow GitHub Actions to create and approve pull requests: UNCHECKED
25-
26-
## Branch protections
27-
28-
The order of branch protection rules
29-
[can be important](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule#about-branch-protection-rules).
30-
The branch protection rules below should be added before the `**/**` branch protection rule
31-
(this may require deleting the `**/**` rule and recreating it at the end).
32-
33-
### `main`
34-
35-
- Require branches to be up to date before merging: UNCHECKED
36-
37-
(PR jobs take too long, and leaving this unchecked has not been a significant problem)
38-
39-
- Status checks that are required:
40-
41-
- EasyCLA
42-
- required-status-check
43-
- gradle-wrapper-validation
44-
- CodeQL
45-
46-
### `release/*`
47-
48-
Same settings as above for [`main`](#main).
49-
50-
### `v0.*` and `v1.*` (old-style release branches)
51-
52-
- Lock branch: CHECKED
53-
54-
- Do not allow bypassing the above settings: CHECKED
55-
56-
### `cloudfoundry`
57-
58-
Same settings as above for [`main`](#main),
59-
except for the `required-status-check` required status check.
60-
61-
### `renovate/**/*` and `otelbot/**/*`
62-
63-
Same settings as
64-
for [`dependabot/**/*`](https://github.com/open-telemetry/community/blob/main/docs/how-to-configure-new-repository.md#branch-protection-rule-dependabot)
65-
66-
### `gh-pages`
67-
68-
- Everything UNCHECKED
69-
70-
(This branch is currently only used for directly pushing benchmarking results from the
71-
[Nightly overhead benchmark](https://github.com/open-telemetry/opentelemetry-java-instrumentation/actions/workflows/nightly-benchmark-overhead.yml)
72-
job)
73-
74-
## Code security and analysis
75-
76-
- Secret scanning: Enabled
4+
settings in this repository outside the settings tracked in the
5+
private admin repo.
776

787
## Secrets and variables > Actions
798

.github/workflows/auto-license-report.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
java-version-file: .java-version
2929

3030
- name: Set up gradle
31-
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
31+
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
3232
with:
3333
cache-read-only: true
3434

@@ -43,6 +43,7 @@ jobs:
4343
- id: create-patch
4444
name: Create patch file
4545
run: |
46+
git add -N licenses
4647
git diff > patch
4748
if [ -s patch ]; then
4849
echo "exists=true" >> "$GITHUB_OUTPUT"

.github/workflows/auto-spotless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
java-version-file: .java-version
2929

3030
- name: Set up gradle
31-
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
31+
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
3232
with:
3333
cache-read-only: true
3434

.github/workflows/auto-update-otel-sdk.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
java-version-file: .java-version
7373

7474
- name: Setup Gradle
75-
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
75+
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
7676

7777
- name: Update license report
7878
run: ./gradlew generateLicenseReport

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

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,22 @@ jobs:
5555
git config user.name otelbot
5656
git config user.email [email protected]
5757
58+
- id: gradle-task
59+
if: steps.unzip-patch.outputs.exists == 'true'
60+
run: |
61+
if [[ "${{ github.event.workflow_run.name }}" == "Auto spotless" ]]; then
62+
echo "name=spotlessApply" >> $GITHUB_OUTPUT
63+
elif [[ "${{ github.event.workflow_run.name }}" == "Auto license report" ]]; then
64+
echo "name=generateLicenseReport" >> $GITHUB_OUTPUT
65+
else
66+
echo "name=unknown" >> $GITHUB_OUTPUT
67+
fi
68+
5869
- name: Apply patch and push
5970
if: steps.unzip-patch.outputs.exists == 'true'
6071
run: |
6172
git apply "${{ runner.temp }}/patch"
62-
git commit -a -m "./gradlew spotlessApply"
73+
git commit -a -m "./gradlew ${{ steps.gradle-task.outputs.name }}"
6374
git push
6475
6576
- id: get-pr
@@ -84,12 +95,12 @@ jobs:
8495
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
8596
PR_NUMBER: ${{ steps.get-pr.outputs.number }}
8697
run: |
87-
gh pr comment $PR_NUMBER --body "🔧 The result from spotlessApply was committed to the PR branch."
98+
gh pr comment $PR_NUMBER --body "🔧 The result from ${{ steps.gradle-task.outputs.name }} was committed to the PR branch."
8899
89100
- if: steps.unzip-patch.outputs.exists == 'true' && failure()
90101
env:
91102
GH_REPO: ${{ github.repository }}
92103
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
93104
PR_NUMBER: ${{ steps.get-pr.outputs.number }}
94105
run: |
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."
106+
gh pr comment $PR_NUMBER --body "❌ The result from ${{ steps.gradle-task.outputs.name }} could not be committed to the PR branch, see logs: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID."

.github/workflows/build-common.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
java-version-file: .java-version
4242

4343
- name: Setup Gradle
44-
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
44+
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
4545
with:
4646
cache-read-only: ${{ inputs.cache-read-only }}
4747

@@ -63,7 +63,7 @@ jobs:
6363
java-version-file: .java-version
6464

6565
- name: Setup Gradle
66-
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
66+
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
6767
with:
6868
cache-read-only: ${{ inputs.cache-read-only }}
6969

@@ -102,7 +102,7 @@ jobs:
102102
java-version-file: .java-version
103103

104104
- name: Setup Gradle
105-
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
105+
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
106106
with:
107107
cache-read-only: ${{ inputs.cache-read-only }}
108108

@@ -189,7 +189,7 @@ jobs:
189189
sed -i "s/org.gradle.jvmargs=/org.gradle.jvmargs=-Xmx3g /" gradle.properties
190190
191191
- name: Setup Gradle
192-
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
192+
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
193193
with:
194194
cache-read-only: ${{ inputs.cache-read-only }}
195195

@@ -301,7 +301,7 @@ jobs:
301301
run: .github/scripts/deadlock-detector.sh
302302

303303
- name: Setup Gradle
304-
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
304+
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
305305
with:
306306
# only push cache for one matrix option since github action cache space is limited
307307
cache-read-only: ${{ inputs.cache-read-only || matrix.test-java-version != 11 || matrix.vm != 'hotspot' }}
@@ -432,7 +432,7 @@ jobs:
432432
java-version-file: .java-version
433433

434434
- name: Set up Gradle cache
435-
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
435+
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
436436
with:
437437
# only push cache for one matrix option per OS since github action cache space is limited
438438
cache-read-only: ${{ inputs.cache-read-only || matrix.smoke-test-suite != 'tomcat' }}
@@ -445,6 +445,10 @@ jobs:
445445
- name: Test
446446
run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.smoke-test-suite }} ${{ inputs.no-build-cache && ' --no-build-cache' || '' }}
447447

448+
- name: Build scan
449+
if: ${{ !cancelled() && hashFiles('build-scan.txt') != '' }}
450+
run: cat build-scan.txt
451+
448452
- name: Upload jvm crash dump files if any
449453
if: failure()
450454
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
@@ -480,7 +484,7 @@ jobs:
480484
java-version-file: .java-version
481485

482486
- name: Setup Gradle
483-
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
487+
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
484488
with:
485489
cache-read-only: ${{ inputs.cache-read-only }}
486490

@@ -503,7 +507,7 @@ jobs:
503507
java-version-file: .java-version
504508

505509
- name: Set up Gradle cache
506-
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
510+
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
507511
with:
508512
cache-read-only: ${{ inputs.cache-read-only }}
509513

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
java-version-file: .java-version
7777

7878
- name: Setup Gradle
79-
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
79+
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
8080

8181
- name: Build and publish artifact snapshots
8282
env:

.github/workflows/codeql.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,18 @@ permissions:
2121

2222
jobs:
2323
analyze:
24+
name: Analyze (${{ matrix.language }})
2425
permissions:
2526
contents: read
2627
actions: read # for github/codeql-action/init to get workflow details
2728
security-events: write # for github/codeql-action/analyze to upload SARIF results
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
include:
33+
- language: actions
34+
- language: java
2835
runs-on: oracle-8cpu-32gb-x86-64
29-
3036
steps:
3137
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3238

@@ -44,25 +50,29 @@ jobs:
4450
# and so it uses more parallelism which uses more memory
4551
sed -i "s/org.gradle.jvmargs=/org.gradle.jvmargs=-Xmx8g /" gradle.properties
4652
47-
- name: Setup Gradle
48-
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
53+
- name: Set up Gradle
54+
if: matrix.language == 'java'
55+
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
4956
with:
5057
cache-read-only: ${{ github.event_name == 'pull_request' }}
5158

5259
- name: Initialize CodeQL
53-
uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
60+
uses: github/codeql-action/init@39edc492dbe16b1465b0cafca41432d857bdb31a # v3.29.1
5461
with:
55-
languages: java, actions
62+
languages: ${{ matrix.language }}
5663
# using "latest" helps to keep up with the latest Kotlin support
5764
# see https://github.com/github/codeql-action/issues/1555#issuecomment-1452228433
5865
tools: latest
5966

60-
- name: Build
67+
- name: Assemble
68+
if: matrix.language == 'java'
6169
# --no-build-cache is required for codeql to analyze all modules
6270
# --no-daemon is required for codeql to observe the compilation
6371
# (see https://docs.github.com/en/code-security/codeql-cli/getting-started-with-the-codeql-cli/preparing-your-code-for-codeql-analysis#specifying-build-commands)
6472
# quarkus tasks are disabled because they often cause the build to fail (see https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/13284)
6573
run: ./gradlew assemble -x javadoc -x :instrumentation:quarkus-resteasy-reactive:quarkus3-testing:quarkusGenerateCodeDev -x :instrumentation:quarkus-resteasy-reactive:quarkus2-testing:quarkusGenerateCodeDev --no-build-cache --no-daemon
6674

6775
- name: Perform CodeQL analysis
68-
uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
76+
uses: github/codeql-action/analyze@39edc492dbe16b1465b0cafca41432d857bdb31a # v3.29.1
77+
with:
78+
category: "/language:${{matrix.language}}"

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

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

1616
# this needs to be in its own workflow in order to make OSSF scorecard happy
17-
- uses: gradle/actions/wrapper-validation@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
17+
- uses: gradle/actions/wrapper-validation@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1

.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)