Skip to content

Commit 4932990

Browse files
committed
Merge branch 'main' of github.com:jaydeluca/opentelemetry-java-instrumentation into spring-webmvc-update
2 parents 8e1f5e1 + 5a392fd commit 4932990

File tree

67 files changed

+1616
-239
lines changed

Some content is hidden

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

67 files changed

+1616
-239
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
echo "exists=true" >> $GITHUB_OUTPUT
6868
fi
6969
70-
- uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
70+
- uses: actions/create-github-app-token@7e473efe3cb98aa54f8d4bac15400b15fad77d94 # v2.2.0
7171
if: steps.check-patch.outputs.exists == 'true'
7272
id: otelbot-token
7373
with:

.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.",

.github/workflows/reusable-markdown-lint-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
1414

15-
- uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1
15+
- uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1
1616

1717
- name: Run markdownlint
1818
run: |

.github/workflows/reusable-native-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
2828
- id: read-java
2929
run: echo "version=$(cat .java-version)" >> "$GITHUB_OUTPUT"
30-
- uses: graalvm/setup-graalvm@eec48106e0bf45f2976c2ff0c3e22395cced8243 # v1.4.2.1
30+
- uses: graalvm/setup-graalvm@dec5790292b7b36d7ad368abe856887749c6c520 # v1.4.3.1
3131
with:
3232
version: "latest"
3333
java-version: ${{ matrix.test-java-version }}

.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

conventions/src/main/kotlin/otel.java-conventions.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ dependencies {
159159
compileOnly("com.google.code.findbugs:jsr305")
160160
compileOnly("com.google.errorprone:error_prone_annotations")
161161

162-
codenarc("org.codenarc:CodeNarc:3.6.0")
162+
codenarc("org.codenarc:CodeNarc:3.7.0")
163163
codenarc(platform("org.codehaus.groovy:groovy-bom:3.0.25"))
164164

165165
modules {
@@ -422,7 +422,7 @@ codenarc {
422422
checkstyle {
423423
configFile = rootProject.file("buildscripts/checkstyle.xml")
424424
// this version should match the version of google_checks.xml used as basis for above configuration
425-
toolVersion = "12.1.2"
425+
toolVersion = "12.2.0"
426426
maxWarnings = 0
427427
}
428428

0 commit comments

Comments
 (0)