Skip to content

Commit 69431bc

Browse files
committed
Merge remote-tracking branch 'upstream/main' into test-suites-runtime-attach
2 parents 2f12bf5 + 7fc1fa8 commit 69431bc

File tree

29 files changed

+127
-97
lines changed

29 files changed

+127
-97
lines changed

.github/renovate.json5

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
'config:best-practices',
55
'helpers:pinGitHubActionDigestsToSemver',
66
],
7+
ignorePaths: [], // overwrite default ignore which includes **/test/**
8+
// used to update docker image versions used in Java test files
79
ignorePresets: [
810
':ignoreModulesAndTests', // needed to keep maven-extension test pom files up-to-date
911
'workarounds:javaLTSVersions', // Allow all Java major versions, not just LTS
@@ -243,5 +245,17 @@
243245
'"https://github.com/(?<depName>[^/]+/[^/]+)/zipball/(?<currentValue>.+?)"',
244246
],
245247
},
248+
{
249+
customType: 'regex',
250+
datasourceTemplate: 'docker',
251+
managerFilePatterns: [
252+
'**/*.java',
253+
],
254+
matchStrings: [
255+
'"(?<depName>otel/opentelemetry-collector-contrib):(?<currentValue>[^@"]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?"',
256+
],
257+
autoReplaceStringTemplate: '"{{depName}}:{{newValue}}{{#if newDigest}}@{{newDigest}}{{/if}}"',
258+
versioningTemplate: 'docker',
259+
},
246260
],
247261
}

.github/workflows/build-common.yml

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111

112112
- name: Test
113113
run: >
114-
./gradlew test
114+
./gradlew check -x spotlessCheck
115115
"-PtestJavaVersion=${{ matrix.test-java-version }}"
116116
"-Porg.gradle.java.installations.paths=${{ steps.setup-java-test.outputs.path }}"
117117
"-Porg.gradle.java.installations.auto-download=false"
@@ -122,36 +122,6 @@ jobs:
122122
if: ${{ !cancelled() && hashFiles('build-scan.txt') != '' }}
123123
run: cat build-scan.txt
124124

125-
integration-test:
126-
runs-on: ubuntu-latest
127-
steps:
128-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
129-
130-
- name: Set up JDK for running Gradle
131-
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
132-
with:
133-
distribution: temurin
134-
java-version: 17
135-
136-
- name: Set up Gradle
137-
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
138-
with:
139-
cache-read-only: ${{ inputs.cache-read-only }}
140-
141-
- name: Integration test
142-
run: ./gradlew integrationTest "-PmaxTestRetries=${{ inputs.max-test-retries }}" ${{ inputs.no-build-cache && '--no-build-cache' || '' }}
143-
144-
- name: Build scan
145-
if: ${{ !cancelled() && hashFiles('build-scan.txt') != '' }}
146-
run: cat build-scan.txt
147-
148-
- name: Save integration test results
149-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
150-
if: always()
151-
with:
152-
name: integration-test-results
153-
path: jmx-metrics/build/reports/tests/integrationTest
154-
155125
markdown-lint-check:
156126
uses: ./.github/workflows/reusable-markdown-lint.yml
157127

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
5151

5252
- name: Initialize CodeQL
53-
uses: github/codeql-action/init@a8d1ac45b9a34d11fe398d5503176af0d06b303e # v3.30.7
53+
uses: github/codeql-action/init@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
5454
with:
5555
languages: ${{ matrix.language }}
5656
# using "linked" helps to keep up with the latest Kotlin support
@@ -65,6 +65,6 @@ jobs:
6565
run: ./gradlew assemble --no-build-cache --no-daemon
6666

6767
- name: Perform CodeQL analysis
68-
uses: github/codeql-action/analyze@a8d1ac45b9a34d11fe398d5503176af0d06b303e # v3.30.7
68+
uses: github/codeql-action/analyze@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
6969
with:
7070
category: "/language:${{matrix.language}}"

.github/workflows/ossf-scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ jobs:
5252
# Upload the results to GitHub's code scanning dashboard (optional).
5353
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
5454
- name: "Upload to code-scanning"
55-
uses: github/codeql-action/upload-sarif@a8d1ac45b9a34d11fe398d5503176af0d06b303e # v3.30.7
55+
uses: github/codeql-action/upload-sarif@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
5656
with:
5757
sarif_file: results.sarif

.github/workflows/reusable-link-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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1414
with:
15-
fetch-depth: 0 # needed for merge-base below
15+
fetch-depth: 0 # needed for merge-base used in lint:links-in-modified-files
1616

1717
- uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1
1818

.mise/tasks/lint/links-in-modified-files.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ fi
1717
config_modified=$(git diff --name-only --merge-base "$usage_base" $usage_head \
1818
| grep -E '^(\.github/config/lychee\.toml|\.mise/tasks/lint/.*|mise\.toml)$' || true)
1919

20-
if [ -n "$config_modified" ] ; then
20+
if [ "$usage_event" != "pull_request" ] ; then
21+
echo "Not a PR - checking all files."
22+
mise run lint:links
23+
elif [ -n "$config_modified" ] ; then
2124
echo "config changes, checking all files."
2225
mise run lint:links
23-
elif [ "$usage_event" != "pull_request" ] ; then
24-
echo "Not a PR - skipping link linting."
25-
exit 0
2626
else
2727
# Using lychee's default extension filter here to match when it runs against all files
2828
# Note: --diff-filter=d filters out deleted files

.mise/tasks/lint/links.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,9 @@ set -e
55

66
#USAGE arg "<file>" var=#true help="files to check" default="."
77

8-
lychee --verbose --config .github/config/lychee.toml "$usage_file"
8+
for f in $usage_file; do
9+
echo "Checking links in file: $f"
10+
done
11+
12+
# shellcheck disable=SC2086
13+
lychee --verbose --config .github/config/lychee.toml $usage_file

.mise/tasks/lint/local-links.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,9 @@ set -e
55

66
#USAGE arg "<file>" var=#true help="files to check" default="."
77

8-
lychee --verbose --scheme file --include-fragments "$usage_file"
8+
for f in $usage_file; do
9+
echo "Checking links in file: $f"
10+
done
11+
12+
# shellcheck disable=SC2086
13+
lychee --verbose --scheme file --include-fragments $usage_file

CONTRIBUTING.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ To run the tests:
3131
./gradlew test
3232
```
3333

34-
Some modules include integration tests that can be run with:
35-
36-
```bash
37-
./gradlew integrationTest
38-
```
39-
4034
## Snapshot Builds
4135

4236
Snapshot builds of the `main` branch are available from the Sonatype snapshot repository at:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ See [CONTRIBUTING.md](CONTRIBUTING.md).
5454

5555
### Maintainers
5656

57-
- [Jack Berg](https://github.com/jack-berg), New Relic
57+
- [Jack Berg](https://github.com/jack-berg), Grafana Labs
5858
- [Jason Plumb](https://github.com/breedx-splk), Splunk
5959
- [Lauri Tulmin](https://github.com/laurit), Splunk
6060
- [Trask Stalnaker](https://github.com/trask), Microsoft
@@ -63,7 +63,7 @@ For more information about the maintainer role, see the [community repository](h
6363

6464
### Approvers
6565

66-
- [Jay DeLuca](https://github.com/jaydeluca), Grafana
66+
- [Jay DeLuca](https://github.com/jaydeluca), Grafana Labs
6767
- [John Watson](https://github.com/jkwatson), Cloudera
6868

6969
For more information about the approver role, see the [community repository](https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md#approver).

0 commit comments

Comments
 (0)