Skip to content

Commit 34defcc

Browse files
authored
Merge branch 'open-telemetry:main' into main
2 parents a12a706 + 5d702ed commit 34defcc

File tree

22 files changed

+1268
-172
lines changed

22 files changed

+1268
-172
lines changed
File renamed without changes.

.github/scripts/link-check.sh

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,49 @@ set -e
55
export MSYS_NO_PATHCONV=1 # for Git Bash on Windows
66

77
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8-
LYCHEE_CONFIG="$SCRIPT_DIR/../../.lychee.toml"
9-
DEPENDENCIES_DOCKERFILE="$SCRIPT_DIR/dependencies.dockerfile"
8+
ROOT_DIR="$SCRIPT_DIR/../.."
9+
DEPENDENCIES_DOCKERFILE="$SCRIPT_DIR/dependencies.Dockerfile"
10+
11+
# Parse command line arguments
12+
LOCAL_LINKS_ONLY=false
13+
TARGET=""
14+
15+
while [[ $# -gt 0 ]]; do
16+
case $1 in
17+
--local-links-only)
18+
LOCAL_LINKS_ONLY=true
19+
shift
20+
;;
21+
*)
22+
# Treat any other arguments as file paths
23+
TARGET="$TARGET $1"
24+
shift
25+
;;
26+
esac
27+
done
1028

1129
# Extract lychee version from dependencies.dockerfile
1230
LYCHEE_VERSION=$(grep "FROM lycheeverse/lychee:" "$DEPENDENCIES_DOCKERFILE" | sed 's/.*FROM lycheeverse\/lychee:\([^ ]*\).*/\1/')
1331

32+
if [[ -z "$TARGET" ]]; then
33+
TARGET="."
34+
fi
35+
1436
# Build the lychee command with optional GitHub token
15-
CMD="lycheeverse/lychee:$LYCHEE_VERSION --verbose --config $(basename "$LYCHEE_CONFIG")"
37+
CMD="lycheeverse/lychee:$LYCHEE_VERSION --verbose --root-dir /data"
1638

1739
# Add GitHub token if available
1840
if [[ -n "$GITHUB_TOKEN" ]]; then
1941
CMD="$CMD --github-token $GITHUB_TOKEN"
2042
fi
2143

22-
# Add the target directory
23-
CMD="$CMD ."
44+
if [[ "$LOCAL_LINKS_ONLY" == "true" ]]; then
45+
CMD="$CMD --scheme file --include-fragments"
46+
else
47+
CMD="$CMD --config .github/scripts/lychee-config.toml"
48+
fi
49+
50+
CMD="$CMD $TARGET"
2451

2552
# Determine if we should allocate a TTY
2653
DOCKER_FLAGS="--rm --init"
@@ -32,4 +59,4 @@ fi
3259

3360
# Run lychee with proper signal handling
3461
# shellcheck disable=SC2086
35-
exec docker run $DOCKER_FLAGS -v "$(dirname "$LYCHEE_CONFIG")":/data -w /data $CMD
62+
exec docker run $DOCKER_FLAGS -v "$ROOT_DIR":/data -w /data $CMD
File renamed without changes.

.github/workflows/assign-reviewers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
pull-requests: write # for assigning reviewers
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: open-telemetry/assign-reviewers-action@cb42e3ee14a59c01abccd401f126a0f4c3991cb3 # main
21+
- uses: open-telemetry/assign-reviewers-action@fcd27c5381c10288b23d423ab85473710a33389e # main
2222
with:
2323
config-file: .github/component_owners.yml

.github/workflows/build.yml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
pull_request:
99
merge_group:
1010
workflow_dispatch:
11+
schedule:
12+
# Run daily at 7:30 AM UTC
13+
- cron: '30 7 * * *'
1114

1215
permissions:
1316
contents: read
@@ -119,10 +122,13 @@ jobs:
119122
path: jmx-metrics/build/reports/tests/integrationTest
120123

121124
link-check:
125+
# merge group and push events are excluded to avoid unnecessary CI failures
126+
# (these failures will instead be captured by the daily scheduled run)
127+
#
122128
# release branches are excluded to avoid unnecessary maintenance if external links break
123129
# (and also because the README.md might need update on release branches before the release
124130
# download has been published)
125-
if: "!startsWith(github.ref_name, 'release/')"
131+
if: github.event_name != 'merge_group' && github.event_name != 'push' && !startsWith(github.ref_name, 'release/')
126132
uses: ./.github/workflows/reusable-link-check.yml
127133

128134
markdown-lint-check:
@@ -199,3 +205,31 @@ jobs:
199205
)
200206
)
201207
run: exit 1 # fail
208+
209+
workflow-notification:
210+
permissions:
211+
contents: read
212+
issues: write
213+
if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && always()
214+
needs:
215+
- build
216+
- test
217+
- integration-test
218+
- link-check
219+
- markdown-lint-check
220+
- misspell-check
221+
- shell-script-check
222+
- publish-snapshots
223+
uses: ./.github/workflows/reusable-workflow-notification.yml
224+
with:
225+
success: >-
226+
${{
227+
needs.build.result == 'success' &&
228+
needs.test.result == 'success' &&
229+
needs.integration-test.result == 'success' &&
230+
needs.link-check.result == 'success' &&
231+
needs.markdown-lint-check.result == 'success' &&
232+
needs.misspell-check.result == 'success' &&
233+
needs.shell-script-check.result == 'success' &&
234+
needs.publish-snapshots.result == 'success'
235+
}}

.github/workflows/ossf-scorecard.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,18 @@ jobs:
2323
with:
2424
persist-credentials: false
2525

26+
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
27+
id: create-token
28+
with:
29+
# analyzing classic branch protections requires a token with admin read permissions
30+
# see https://github.com/ossf/scorecard-action/blob/main/docs/authentication/fine-grained-auth-token.md
31+
# and https://github.com/open-telemetry/community/issues/2769
32+
app-id: ${{ vars.OSSF_SCORECARD_APP_ID }}
33+
private-key: ${{ secrets.OSSF_SCORECARD_PRIVATE_KEY }}
34+
2635
- uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
2736
with:
37+
repo_token: ${{ steps.create-token.outputs.token }}
2838
results_file: results.sarif
2939
results_format: sarif
3040
publish_results: true

.github/workflows/reusable-link-check.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,35 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14+
with:
15+
fetch-depth: 0 # needed for merge-base below
1416

15-
- name: Link check
17+
- name: Link check - relative links (all files)
18+
if: github.event_name == 'pull_request'
19+
env:
20+
GITHUB_TOKEN: ${{ github.token }}
21+
run: ./.github/scripts/link-check.sh --local-links-only
22+
23+
- name: Get modified files
24+
if: github.event_name == 'pull_request'
25+
id: modified-files
26+
run: |
27+
merge_base=$(git merge-base origin/${{ github.base_ref }} HEAD)
28+
# Using lychee's default extension filter here to match when it runs against all files
29+
modified_files=$(git diff --name-only $merge_base...${{ github.event.pull_request.head.sha }} \
30+
| grep -E '\.(md|mkd|mdx|mdown|mdwn|mkdn|mkdown|markdown|html|htm|txt)$' \
31+
| tr '\n' ' ' || true)
32+
echo "files=$modified_files" >> $GITHUB_OUTPUT
33+
echo "Modified files: $modified_files"
34+
35+
- name: Link check - all links (modified files only)
36+
if: github.event_name == 'pull_request' && steps.modified-files.outputs.files != ''
37+
env:
38+
GITHUB_TOKEN: ${{ github.token }}
39+
run: ./.github/scripts/link-check.sh ${{ steps.modified-files.outputs.files }}
40+
41+
- name: Link check - all links (all files)
42+
if: github.event_name != 'pull_request'
1643
env:
1744
GITHUB_TOKEN: ${{ github.token }}
1845
run: ./.github/scripts/link-check.sh

buildSrc/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
`kotlin-dsl`
33
// When updating, update below in dependencies too
4-
id("com.diffplug.spotless") version "7.0.4"
4+
id("com.diffplug.spotless") version "7.1.0"
55
}
66

77
repositories {
@@ -12,7 +12,7 @@ repositories {
1212

1313
dependencies {
1414
// When updating, update above in plugins too
15-
implementation("com.diffplug.spotless:spotless-plugin-gradle:7.0.4")
15+
implementation("com.diffplug.spotless:spotless-plugin-gradle:7.1.0")
1616
implementation("net.ltgt.gradle:gradle-errorprone-plugin:4.3.0")
1717
implementation("net.ltgt.gradle:gradle-nullaway-plugin:2.2.0")
1818
implementation("org.owasp:dependency-check-gradle:12.1.3")

dependencyManagement/build.gradle.kts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
`java-platform`
33
}
44

5-
val otelInstrumentationVersion = "2.17.0-alpha"
5+
val otelInstrumentationVersion = "2.17.1-alpha"
66
val semconvVersion = "1.34.0"
77

88
javaPlatform {
@@ -16,6 +16,7 @@ dependencies {
1616
// as runtime dependencies if they are actually used as runtime dependencies)
1717
api(enforcedPlatform("io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:${otelInstrumentationVersion}"))
1818
api(enforcedPlatform("com.fasterxml.jackson:jackson-bom:2.19.1"))
19+
api(enforcedPlatform("com.google.protobuf:protobuf-bom:4.31.1"))
1920

2021
constraints {
2122
api("io.opentelemetry.semconv:opentelemetry-semconv:${semconvVersion}")
@@ -25,8 +26,8 @@ dependencies {
2526
api("com.google.auto.service:auto-service-annotations:1.1.1")
2627
api("com.google.auto.value:auto-value:1.11.0")
2728
api("com.google.auto.value:auto-value-annotations:1.11.0")
28-
api("com.google.errorprone:error_prone_annotations:2.39.0")
29-
api("com.google.errorprone:error_prone_core:2.39.0")
29+
api("com.google.errorprone:error_prone_annotations:2.40.0")
30+
api("com.google.errorprone:error_prone_core:2.40.0")
3031
api("io.github.netmikey.logunit:logunit-jul:2.0.0")
3132
api("io.opentelemetry.proto:opentelemetry-proto:1.7.0-alpha")
3233
api("io.prometheus:simpleclient:0.16.0")
@@ -43,7 +44,7 @@ dependencies {
4344

4445
api("com.google.code.findbugs:annotations:3.0.1u2")
4546
api("com.google.code.findbugs:jsr305:3.0.2")
46-
api("com.squareup.okhttp3:okhttp:4.12.0")
47+
api("com.squareup.okhttp3:okhttp:5.1.0")
4748
api("com.uber.nullaway:nullaway:0.12.7")
4849
api("org.assertj:assertj-core:3.27.3")
4950
api("org.awaitility:awaitility:4.3.0")

disk-buffering/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
id("com.github.johnrengelman.shadow")
88
id("me.champeau.jmh") version "0.7.3"
99
id("ru.vyarus.animalsniffer") version "2.0.1"
10-
id("com.squareup.wire") version "5.3.3"
10+
id("com.squareup.wire") version "5.3.5"
1111
}
1212

1313
description = "Exporter implementations that store signals on disk"

0 commit comments

Comments
 (0)