Skip to content

Commit 906bac4

Browse files
authored
Merge branch 'main' into modernize-junit
2 parents 7a53357 + 6832451 commit 906bac4

File tree

129 files changed

+1596
-787
lines changed

Some content is hidden

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

129 files changed

+1596
-787
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
#
22
# Learn about membership in OpenTelemetry community:
3-
# https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md
4-
#
5-
#
6-
# Learn about CODEOWNERS file format:
7-
# https://help.github.com/en/articles/about-code-owners
3+
# https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md
84
#
95

106
* @open-telemetry/java-contrib-approvers

.github/component_owners.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,6 @@ components:
9898
ibm-mq-metrics:
9999
- breedx-splk
100100
- atoulme
101+
dynamic-control:
102+
- jackshirazi
103+
- LikeTheSalad

.github/config/lychee.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Lychee configuration file
2+
# See https://lychee.cli.rs/config/
3+
14
timeout = 30
25
retry_wait_time = 5
36
max_retries = 6

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ When implementing changes or new features:
6363
1. Follow all [Style Guide](../docs/style-guide.md) conventions and the Code Review Priorities above
6464
2. Run tests to ensure they still pass (use `./gradlew test` and `./gradlew integrationTest` as needed)
6565
3. **Always run `./gradlew spotlessApply`** after making code changes to ensure proper formatting
66-
4. Run markdown lint to ensure it still passes: `npx markdownlint-cli@0.45.0 -c .github/config/markdownlint.yml **/*.md`
66+
4. Run markdown lint to ensure it still passes: `npx markdownlint-cli@0.46.0 -c .github/config/markdownlint.yml **/*.md`

.github/renovate.json5

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
extends: [
44
'config:best-practices',
55
'helpers:pinGitHubActionDigestsToSemver',
6+
'customManagers:githubActionsVersions',
67
],
78
ignorePaths: [], // overwrite default ignore which includes **/test/**
89
// used to update docker image versions used in Java test files
@@ -52,6 +53,7 @@
5253
// major.minor.patch, under the assumption that you would want to update to the stable version
5354
// of that release instead of the unstable version for a future release
5455
ignoreUnstable: false,
56+
allowedVersions: '!/\\-SNAPSHOT$/',
5557
},
5658
{
5759
// prevent 3.0.1u2 -> 3.0.1
@@ -62,6 +64,9 @@
6264
},
6365
{
6466
// disruptor 4+ requires Java 11+
67+
matchFileNames: [
68+
'inferred-spans/build.gradle.kts',
69+
],
6570
matchPackageNames: [
6671
'com.lmax:disruptor',
6772
],
@@ -81,6 +86,19 @@
8186
],
8287
enabled: false,
8388
},
89+
{
90+
// caffeine 3+ requires Java 11+
91+
matchFileNames: [
92+
'aws-xray/build.gradle.kts',
93+
],
94+
matchPackageNames: [
95+
'com.github.ben-manes.caffeine:caffeine',
96+
],
97+
matchUpdateTypes: [
98+
'major',
99+
],
100+
enabled: false,
101+
},
84102
{
85103
// junit-pioneer 2+ requires Java 11+
86104
matchPackageNames: [
@@ -103,6 +121,9 @@
103121
},
104122
{
105123
// agrona 1.23+ requires Java 17+
124+
matchFileNames: [
125+
'inferred-spans/build.gradle.kts',
126+
],
106127
matchPackageNames: [
107128
'org.agrona:agrona',
108129
],
@@ -125,6 +146,9 @@
125146
},
126147
{
127148
// pinned version for compatibility
149+
matchFileNames: [
150+
'micrometer-meter-provider/build.gradle.kts',
151+
],
128152
matchPackageNames: [
129153
'io.micrometer:micrometer-core',
130154
],
@@ -133,6 +157,9 @@
133157
},
134158
{
135159
// pinned version for compatibility
160+
matchFileNames: [
161+
'maven-extension/build.gradle.kts',
162+
],
136163
matchCurrentVersion: '3.5.0',
137164
enabled: false,
138165
matchPackageNames: [
@@ -179,6 +206,9 @@
179206
},
180207
{
181208
// pinned version for compatibility with java 8 JFR parsing
209+
matchFileNames: [
210+
'jfr-connection/build.gradle.kts',
211+
],
182212
matchUpdateTypes: [
183213
'major',
184214
],
@@ -230,7 +260,7 @@
230260
'.github/workflows/**',
231261
],
232262
matchStrings: [
233-
'(?<currentValue>\\d+) # renovate: datasource=java-version',
263+
'(?<currentValue>\\d+) # renovate\\(java-version\\)',
234264
],
235265
depNameTemplate: 'java',
236266
extractVersionTemplate: '^(?<version>\\d+)',
@@ -242,8 +272,9 @@
242272
'**/build.gradle.kts',
243273
],
244274
matchStrings: [
245-
'"https://github.com/(?<depName>[^/]+/[^/]+)/zipball/(?<currentValue>.+?)"',
275+
'"(?<currentValue>.+?)" // renovate\\(github-releases\\): (?<depName>[^\\s]+)',
246276
],
277+
versioningTemplate: 'semver',
247278
},
248279
{
249280
customType: 'regex',

.github/repository-settings.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,28 @@ private admin repo.
1515
- Maximum pull requests to merge: 5
1616
- Only merge non-failing pull requests: CHECKED
1717
- Status check timeout: 60 minutes
18+
19+
## Secrets and variables > Actions
20+
21+
### Repository secrets
22+
23+
- `GPG_PASSWORD` - stored in OpenTelemetry-Java 1Password
24+
- `GPG_PRIVATE_KEY` - stored in OpenTelemetry-Java 1Password
25+
- `NVD_API_KEY` - stored in OpenTelemetry-Java 1Password
26+
- Generated at https://nvd.nist.gov/developers/request-an-api-key
27+
- Key is associated with [@trask](https://github.com/trask)'s gmail address
28+
- `SONATYPE_KEY` - owned by [@trask](https://github.com/trask)
29+
- `SONATYPE_USER` - owned by [@trask](https://github.com/trask)
30+
31+
### Organization secrets
32+
33+
- `CODECOV_TOKEN`
34+
- `DEVELOCITY_ACCESS_KEY` (scoped only to Java repos)
35+
- `FOSSA_API_KEY`
36+
- `OTELBOT_JAVA_CONTRIB_PRIVATE_KEY` (scoped only to this repo)
37+
- `OTELBOT_PRIVATE_KEY`
38+
39+
### Organization variables
40+
41+
- `OSSF_SCORECARD_APP_ID`
42+
- `OTELBOT_APP_ID`
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
const fs = require('fs');
2+
const { parse } = require('yaml');
3+
const { Octokit } = require('@octokit/rest');
4+
5+
async function main() {
6+
// Get inputs from environment
7+
const token = process.env.GITHUB_TOKEN;
8+
const labelName = process.env.LABEL_NAME;
9+
const issueNumber = parseInt(process.env.ISSUE_NUMBER);
10+
const owner = process.env.REPO_OWNER;
11+
const repo = process.env.REPO_NAME;
12+
13+
if (!labelName.startsWith('component:')) {
14+
console.error('Label does not match expected pattern');
15+
process.exit(1);
16+
}
17+
18+
const componentName = labelName.replace('component:', '');
19+
console.log(`Processing component: ${componentName}`);
20+
21+
// Read and parse component_owners.yml
22+
const yamlContent = fs.readFileSync('.github/component_owners.yml', 'utf8');
23+
const data = parse(yamlContent);
24+
25+
if (!data || !data.components) {
26+
console.error('Invalid component_owners.yml structure');
27+
process.exit(1);
28+
}
29+
30+
const components = data.components;
31+
32+
if (!(componentName in components)) {
33+
console.error(`Component '${componentName}' not found in component_owners.yml`);
34+
process.exit(1);
35+
}
36+
37+
const owners = components[componentName];
38+
39+
if (!owners || owners.length === 0) {
40+
console.error(`No owners found for component '${componentName}'`);
41+
process.exit(1);
42+
}
43+
44+
console.log(`Found owners: ${owners.join(', ')}`);
45+
46+
// Assign the issue to the owners
47+
const octokit = new Octokit({ auth: token });
48+
49+
await octokit.rest.issues.addAssignees({
50+
owner,
51+
repo,
52+
issue_number: issueNumber,
53+
assignees: owners
54+
});
55+
56+
console.log(`Successfully assigned issue #${issueNumber} to ${owners.join(', ')}`);
57+
}
58+
59+
main().catch(error => {
60+
console.error(error);
61+
process.exit(1);
62+
});

.github/scripts/draft-change-log-entries.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#!/bin/bash -e
1+
#!/usr/bin/env bash
2+
3+
set -e
24

35
version=$("$(dirname "$0")/get-version.sh")
46

@@ -29,6 +31,7 @@ component_names["aws-xray/"]="AWS X-Ray SDK support"
2931
component_names["aws-xray-propagator/"]="AWS X-Ray propagator"
3032
component_names["azure-resources/"]="Azure resources"
3133
component_names["baggage-processor/"]="Baggage processor"
34+
component_names["cel-sampler/"]="Common Expression Language sampler"
3235
component_names["cloudfoundry-resources/"]="CloudFoundry resources"
3336
component_names["compressors/"]="Compressors"
3437
component_names["consistent-sampling/"]="Consistent sampling"

.github/scripts/generate-release-contributors.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ query($q: String!, $endCursor: String) {
7272
}
7373
}
7474
' --jq '.data.search.edges.[].node.body' \
75-
| grep -oE "#[0-9]{3,}$|#[0-9]{3,}[^0-9<]|$GITHUB_REPOSITORY/issues/[0-9]{3,}" \
75+
| grep -oE "#[0-9]{3,}$|#[0-9]{3,}[^0-9<&#;]|$GITHUB_REPOSITORY/issues/[0-9]{3,}" \
7676
| grep -oE "[0-9]{3,}" \
7777
| xargs -I{} gh issue view {} --json 'author,url' --jq '[.author.login,.url]' \
7878
| grep -v '/pull/' \
@@ -83,8 +83,11 @@ query($q: String!, $endCursor: String) {
8383
echo $contributors1 $contributors2 \
8484
| sed 's/ /\n/g' \
8585
| sort -uf \
86-
| grep -v linux-foundation-easycla \
86+
| grep -v copilot-pull-request-reviewer \
87+
| grep -v copilot-swe-agent \
8788
| grep -v github-actions \
89+
| grep -v github-advanced-security \
90+
| grep -v linux-foundation-easycla \
8891
| grep -v renovate \
8992
| grep -v otelbot \
9093
| sed 's/^/@/'

0 commit comments

Comments
 (0)