Skip to content

Commit 0708c7d

Browse files
authored
Merge branch 'main' into support-custom-extention
2 parents 5c0489c + 9c2bea5 commit 0708c7d

File tree

595 files changed

+16072
-7194
lines changed

Some content is hidden

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

595 files changed

+16072
-7194
lines changed

.fossa.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -958,9 +958,6 @@ targets:
958958
- type: gradle
959959
path: ./
960960
target: ':instrumentation:vertx:vertx-rx-java-3.5:javaagent'
961-
- type: gradle
962-
path: ./
963-
target: ':instrumentation:vertx:vertx-sql-client-4.0:javaagent'
964961
- type: gradle
965962
path: ./
966963
target: ':instrumentation:vertx:vertx-web-3.0:javaagent'
@@ -1120,6 +1117,15 @@ targets:
11201117
- type: gradle
11211118
path: ./
11221119
target: ':instrumentation:vertx:vertx-http-client:vertx-http-client-common:javaagent'
1120+
- type: gradle
1121+
path: ./
1122+
target: ':instrumentation:vertx:vertx-sql-client:vertx-sql-client-4.0:javaagent'
1123+
- type: gradle
1124+
path: ./
1125+
target: ':instrumentation:vertx:vertx-sql-client:vertx-sql-client-5.0:javaagent'
1126+
- type: gradle
1127+
path: ./
1128+
target: ':instrumentation:vertx:vertx-sql-client:vertx-sql-client-common:javaagent'
11231129

11241130
experimental:
11251131
gradle:

.github/repository-settings.md

Lines changed: 2 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -1,117 +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-
## Rules > Rulesets
27-
28-
### `main` and release branches
29-
30-
- Targeted branches:
31-
- `main`
32-
- `release/*`
33-
- Branch rules
34-
- Restrict deletions: 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-
> [!NOTE]
52-
> This repository can't "require linear history" because there is an old merge commit on `main`
53-
> (and so also on the release branches).
54-
55-
### `cloudfoundry` branch
56-
57-
- Targeted branches:
58-
- `cloudfoundry`
59-
- Branch rules
60-
- Restrict deletions: CHECKED
61-
- Require linear history: CHECKED
62-
- Require a pull request before merging: CHECKED
63-
- Required approvals: 1
64-
- Require review from Code Owners: CHECKED
65-
- Allowed merge methods: Squash
66-
- Require status checks to pass
67-
- EasyCLA
68-
- Block force pushes: CHECKED
69-
70-
### `gh-pages` branch
71-
72-
- Targeted branches:
73-
- `gh-pages`
74-
- Branch rules
75-
- Restrict deletions: CHECKED
76-
- Require linear history: CHECKED
77-
- Block force pushes: CHECKED
78-
79-
### Old-style release branches
80-
81-
- Targeted branches:
82-
- `v0.*`
83-
- `v1.*`
84-
- Branch rules
85-
- Restrict creations: CHECKED
86-
- Restrict updates: CHECKED
87-
- Restrict deletions: CHECKED
88-
89-
### Restrict branch creation
90-
91-
- Targeted branches
92-
- Exclude:
93-
- `release/*`
94-
- `renovate/**/*`
95-
- `otelbot/**/*`
96-
- `revert-*/**/*` (these are created when using the GitHub UI to revert a PR)
97-
- Restrict creations: CHECKED
98-
99-
### Restrict updating tags
100-
101-
- Targeted tags
102-
- All tags
103-
- Restrict updates: CHECKED
104-
- Restrict deletions: CHECKED
105-
106-
## Branch protections
107-
108-
### `main`, `release/*`, `cloudfoundry`
109-
110-
- Restrict who can push to matching branches: CHECKED
111-
112-
## Code security and analysis
113-
114-
- Secret scanning: Enabled
4+
settings in this repository outside the settings tracked in the
5+
private admin repo.
1156

1167
## Secrets and variables > Actions
1178

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# this file exists so that Renovate can auto-update docker image versions that are then used elsewhere
2+
3+
FROM lycheeverse/lychee:sha-2aa22f8@sha256:2e3786630482c41f9f2dd081e06d7da1c36d66996e8cf6573409b8bc418d48c4 AS lychee

.github/scripts/link-check.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
export MSYS_NO_PATHCONV=1 # for Git Bash on Windows
6+
7+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8+
LYCHEE_CONFIG="$SCRIPT_DIR/../../.lychee.toml"
9+
DEPENDENCIES_DOCKERFILE="$SCRIPT_DIR/dependencies.dockerfile"
10+
11+
# Extract lychee version from dependencies.dockerfile
12+
LYCHEE_VERSION=$(grep "FROM lycheeverse/lychee:" "$DEPENDENCIES_DOCKERFILE" | sed 's/.*FROM lycheeverse\/lychee:\([^ ]*\).*/\1/')
13+
14+
# Build the lychee command with optional GitHub token
15+
CMD="lycheeverse/lychee:$LYCHEE_VERSION --verbose --config $(basename "$LYCHEE_CONFIG")"
16+
17+
# Add GitHub token if available
18+
if [[ -n "$GITHUB_TOKEN" ]]; then
19+
CMD="$CMD --github-token $GITHUB_TOKEN"
20+
fi
21+
22+
# Add the target directory
23+
CMD="$CMD ."
24+
25+
# Determine if we should allocate a TTY
26+
DOCKER_FLAGS="--rm --init"
27+
if [[ -t 0 ]]; then
28+
DOCKER_FLAGS="$DOCKER_FLAGS -it"
29+
else
30+
DOCKER_FLAGS="$DOCKER_FLAGS -i"
31+
fi
32+
33+
# Run lychee with proper signal handling
34+
# shellcheck disable=SC2086
35+
exec docker run $DOCKER_FLAGS -v "$(dirname "$LYCHEE_CONFIG")":/data -w /data $CMD

.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: 36 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -43,31 +43,10 @@ jobs:
4343
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4444
if: steps.unzip-patch.outputs.exists == 'true'
4545
with:
46+
repository: "${{ github.event.workflow_run.head_repository.full_name }}"
47+
ref: "${{ github.event.workflow_run.head_branch }}"
4648
token: ${{ steps.otelbot-token.outputs.token }}
4749

48-
- id: get-pr
49-
if: steps.unzip-patch.outputs.exists == 'true'
50-
name: Get PR
51-
env:
52-
PR_BRANCH: |-
53-
${{
54-
(github.event.workflow_run.head_repository.owner.login != github.event.workflow_run.repository.owner.login)
55-
&& format('{0}:{1}', github.event.workflow_run.head_repository.owner.login, github.event.workflow_run.head_branch)
56-
|| github.event.workflow_run.head_branch
57-
}}
58-
GH_TOKEN: ${{ github.token }}
59-
run: |
60-
echo gh pr view "${PR_BRANCH}" --json number --jq .number
61-
number=$(gh pr view "${PR_BRANCH}" --json number --jq .number)
62-
echo $number
63-
echo "number=$number" >> $GITHUB_OUTPUT
64-
65-
- name: Check out PR branch
66-
if: steps.unzip-patch.outputs.exists == 'true'
67-
env:
68-
GH_TOKEN: ${{ github.token }}
69-
run: gh pr checkout ${{ steps.get-pr.outputs.number }}
70-
7150
- name: Use CLA approved github bot
7251
if: steps.unzip-patch.outputs.exists == 'true'
7352
# IMPORTANT do not call the .github/scripts/use-cla-approved-bot.sh
@@ -76,21 +55,52 @@ jobs:
7655
git config user.name otelbot
7756
git config user.email [email protected]
7857
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+
7969
- name: Apply patch and push
8070
if: steps.unzip-patch.outputs.exists == 'true'
8171
run: |
8272
git apply "${{ runner.temp }}/patch"
83-
git commit -a -m "./gradlew spotlessApply"
73+
git commit -a -m "./gradlew ${{ steps.gradle-task.outputs.name }}"
8474
git push
8575
76+
- id: get-pr
77+
if: steps.unzip-patch.outputs.exists == 'true'
78+
name: Get PR
79+
env:
80+
GH_REPO: ${{ github.repository }}
81+
GH_TOKEN: ${{ github.token }}
82+
PR_BRANCH: |-
83+
${{
84+
(github.event.workflow_run.head_repository.owner.login != github.event.workflow_run.repository.owner.login)
85+
&& format('{0}:{1}', github.event.workflow_run.head_repository.owner.login, github.event.workflow_run.head_branch)
86+
|| github.event.workflow_run.head_branch
87+
}}
88+
run: |
89+
number=$(gh pr view "$PR_BRANCH" --json number --jq .number)
90+
echo "number=$number" >> $GITHUB_OUTPUT
91+
8692
- if: steps.unzip-patch.outputs.exists == 'true' && success()
8793
env:
94+
GH_REPO: ${{ github.repository }}
8895
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
96+
PR_NUMBER: ${{ steps.get-pr.outputs.number }}
8997
run: |
90-
gh pr comment ${{ steps.get-pr.outputs.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."
9199
92100
- if: steps.unzip-patch.outputs.exists == 'true' && failure()
93101
env:
102+
GH_REPO: ${{ github.repository }}
94103
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
104+
PR_NUMBER: ${{ steps.get-pr.outputs.number }}
95105
run: |
96-
gh pr comment ${{ steps.get-pr.outputs.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

0 commit comments

Comments
 (0)