Skip to content

Commit 103f8bb

Browse files
authored
Merge branch 'main' into mongo-metadata
2 parents 8a38fb4 + e30b93f commit 103f8bb

File tree

234 files changed

+4120
-1644
lines changed

Some content is hidden

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

234 files changed

+4120
-1644
lines changed

.fossa.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,9 @@ targets:
928928
- type: gradle
929929
path: ./
930930
target: ':instrumentation:servlet:servlet-3.0:javaagent'
931+
- type: gradle
932+
path: ./
933+
target: ':instrumentation:servlet:servlet-3.0:library'
931934
- type: gradle
932935
path: ./
933936
target: ':instrumentation:servlet:servlet-5.0:javaagent'
@@ -939,7 +942,10 @@ targets:
939942
target: ':instrumentation:servlet:servlet-common:javaagent'
940943
- type: gradle
941944
path: ./
942-
target: ':instrumentation:servlet:servlet-javax-common:javaagent'
945+
target: ':instrumentation:servlet:servlet-common:library'
946+
- type: gradle
947+
path: ./
948+
target: ':instrumentation:servlet:servlet-javax-common:library'
943949
- type: gradle
944950
path: ./
945951
target: ':instrumentation:spring:spring-batch-3.0:javaagent'

.github/scripts/check-package-names.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ for dir in $(find instrumentation -name "*.java" | grep library/src/main/java |
1919
if [[ "$module_name" == "oshi" ]]; then
2020
continue
2121
fi
22+
if [[ "$module_name" == "servlet-common" ]]; then
23+
continue
24+
fi
2225

2326
# these are possibly problematic
2427
if [[ "$dir" == "instrumentation/grpc-1.6/library/src/main/java/io/grpc/override" ]]; then

.github/workflows/build-daily.yml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,44 @@ jobs:
3131
markdown-lint-check:
3232
uses: ./.github/workflows/reusable-markdown-lint-check.yml
3333

34+
publish-snapshots:
35+
needs:
36+
- common
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
40+
41+
- name: Free disk space
42+
run: .github/scripts/gha-free-disk-space.sh
43+
44+
- name: Set up JDK for running Gradle
45+
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
46+
with:
47+
distribution: temurin
48+
java-version-file: .java-version
49+
50+
- name: Setup Gradle
51+
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
52+
53+
- name: Build and publish artifact snapshots
54+
env:
55+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
56+
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
57+
SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }}
58+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
59+
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
60+
run: ./gradlew assemble spdxSbom publishToSonatype
61+
62+
- name: Build and publish gradle plugin snapshots
63+
env:
64+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
65+
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
66+
SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }}
67+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
68+
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
69+
run: ./gradlew build publishToSonatype
70+
working-directory: gradle-plugins
71+
3472
workflow-notification:
3573
permissions:
3674
contents: read
@@ -40,6 +78,7 @@ jobs:
4078
- test-latest-deps
4179
- muzzle
4280
- link-check
81+
- publish-snapshots
4382
if: always()
4483
uses: ./.github/workflows/reusable-workflow-notification.yml
4584
with:
@@ -48,5 +87,6 @@ jobs:
4887
needs.common.result == 'success' &&
4988
needs.test-latest-deps.result == 'success' &&
5089
needs.muzzle.result == 'success' &&
51-
needs.link-check.result == 'success'
90+
needs.link-check.result == 'success' &&
91+
needs.publish-snapshots.result == 'success'
5292
}}

.github/workflows/build.yml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -45,44 +45,3 @@ jobs:
4545
# release branches are excluded
4646
if: "!startsWith(github.ref_name, 'release/')"
4747
uses: ./.github/workflows/reusable-markdown-lint-check.yml
48-
49-
publish-snapshots:
50-
needs:
51-
# intentionally not blocking snapshot publishing on test-latest-deps, muzzle, or link-check
52-
- common
53-
runs-on: ubuntu-latest
54-
# skipping release branches because the versions in those branches are not snapshots
55-
if: github.ref_name == 'main' && github.repository == 'open-telemetry/opentelemetry-java-instrumentation'
56-
steps:
57-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
58-
59-
- name: Free disk space
60-
run: .github/scripts/gha-free-disk-space.sh
61-
62-
- name: Set up JDK for running Gradle
63-
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
64-
with:
65-
distribution: temurin
66-
java-version-file: .java-version
67-
68-
- name: Setup Gradle
69-
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
70-
71-
- name: Build and publish artifact snapshots
72-
env:
73-
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
74-
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
75-
SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }}
76-
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
77-
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
78-
run: ./gradlew assemble spdxSbom publishToSonatype
79-
80-
- name: Build and publish gradle plugin snapshots
81-
env:
82-
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
83-
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
84-
SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }}
85-
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
86-
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
87-
run: ./gradlew build publishToSonatype
88-
working-directory: gradle-plugins

.github/workflows/issue-management-stale-action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ jobs:
5656
operations-per-run: 1000
5757

5858
# Action #3: Handle stale PRs
59-
# - After 180 days inactive: Adds "stale" label + warning comment
59+
# - After 90 days inactive: Adds "stale" label + warning comment
6060
# - After 14 more days inactive: Closes
6161
- uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 # v10.1.0
6262
with:
6363
days-before-issue-stale: -1
6464
days-before-issue-close: -1
65-
days-before-pr-stale: 180
65+
days-before-pr-stale: 90
6666
days-before-pr-close: 14
6767
stale-pr-label: stale
6868
stale-pr-message: >

.github/workflows/pr-automation-comments.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
"",
4343
"### Checklist",
4444
"- [ ] Migration notes added to the PR description",
45-
"- [ ] Breaking change is documented in the changelog entry for the next release",
45+
"- [ ] Breaking change is documented in the "Unreleased" section of the [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md), preferably as part of this PR.",
4646
"- [ ] Consider if this change requires a major version bump",
4747
"",
4848
"Your migration notes will be included in the release notes to help users upgrade smoothly. The more detailed and helpful they are, the better the user experience will be.",

.mise/tasks/lint/markdown.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/usr/bin/env bash
22
#MISE description="Lint markdown files"
3-
#MISE flag "--fix" help="Automatically fix issues"
3+
#USAGE flag "--fix" help="Automatically fix issues"
44

55
set -e
66

7-
if [ "${usage_fix}" = "true" ]; then
7+
if [ "${usage_fix:-false}" = "true" ]; then
88
markdownlint-cli2 --fix "**/*.md" "#**/build" "#CHANGELOG.md" "#licenses/licenses.md"
99
else
1010
markdownlint-cli2 "**/*.md" "#**/build" "#CHANGELOG.md" "#licenses/licenses.md"

benchmark-overhead-jmh/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
21
import me.champeau.jmh.JMHTask
32
import net.ltgt.gradle.errorprone.errorprone
43

@@ -44,7 +43,7 @@ tasks {
4443
val jmhStartFlightRecording = gradle.startParameter.projectProperties.get("jmh.startFlightRecording")
4544

4645
named<JMHTask>("jmh") {
47-
val shadowTask = project(":javaagent").tasks.named<ShadowJar>("shadowJar").get()
46+
val shadowTask = project(":javaagent").tasks.named<Jar>("shadowJar").get()
4847
inputs.files(layout.files(shadowTask))
4948

5049
// note: without an exporter, toSpanData() won't even be called

0 commit comments

Comments
 (0)