Skip to content

Commit 79c0d1e

Browse files
committed
Merge branch 'main' into messaging_semconv_update
# Conflicts: # instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/internal/SemconvStability.java
2 parents f9d51fa + 6d77bf7 commit 79c0d1e

File tree

348 files changed

+3598
-6218
lines changed

Some content is hidden

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

348 files changed

+3598
-6218
lines changed

.github/component_owners.yml

-4
This file was deleted.

.github/renovate.json5

+26-18
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": [
4-
"config:base"
4+
"config:recommended",
5+
"docker:pinDigests",
6+
"helpers:pinGitHubActionDigests"
57
],
68
"ignorePaths": ["instrumentation/**"],
79
// needed in order to get patch-only updates in package rules below
@@ -33,14 +35,6 @@
3335
"ignoreUnstable": false,
3436
"allowedVersions": "!/\\-SNAPSHOT$/"
3537
},
36-
{
37-
"matchPackagePrefixes": ["ch.qos.logback:"],
38-
"groupName": "logback packages"
39-
},
40-
{
41-
"matchPackagePrefixes": ["com.google.guava:"],
42-
"groupName": "guava packages"
43-
},
4438
{
4539
"matchPackagePrefixes": ["io.quarkus"],
4640
"groupName": "quarkus packages"
@@ -49,10 +43,6 @@
4943
"matchPackagePrefixes": ["com.gradle.develocity"],
5044
"groupName": "gradle develocity packages"
5145
},
52-
{
53-
"matchPackagePrefixes": ["org.eclipse.jetty:"],
54-
"groupName": "jetty packages"
55-
},
5646
{
5747
"matchPackagePrefixes": ["com.linecorp.armeria:"],
5848
"groupName": "armeria packages"
@@ -65,10 +55,6 @@
6555
"matchPackagePrefixes": ["net.bytebuddy:"],
6656
"groupName": "byte buddy packages"
6757
},
68-
{
69-
"matchPackagePrefixes": ["com.fasterxml.jackson"],
70-
"groupName": "jackson packages"
71-
},
7258
{
7359
"matchPackagePrefixes": ["com.gradleup.shadow"],
7460
"groupName": "gradle shadow packages"
@@ -173,8 +159,8 @@
173159
},
174160
{
175161
// intentionally using Java 11 in some examples
176-
// not using matchUpdateTypes "major", because renovate wants to bump "11-jre" to "11.0.19_7-jre"
177162
"matchPackageNames": ["eclipse-temurin"],
163+
"matchUpdateTypes": ["major"],
178164
"enabled": false
179165
},
180166
{
@@ -216,5 +202,27 @@
216202
"matchUpdateTypes": ["major"],
217203
"enabled": false
218204
}
205+
],
206+
"customManagers": [
207+
{
208+
"customType": "regex",
209+
"datasourceTemplate": "pypi",
210+
"fileMatch": [
211+
"^.github/workflows/"
212+
],
213+
"matchStrings": [
214+
"pip install (?<depName>[^=]+)==(?<currentValue>[^\\s]+)"
215+
]
216+
},
217+
{
218+
"customType": "regex",
219+
"datasourceTemplate": "npm",
220+
"fileMatch": [
221+
"^.github/workflows/"
222+
],
223+
"matchStrings": [
224+
"npx (?<depName>[^@]+)@(?<currentValue>[^\\s]+)"
225+
]
226+
}
219227
]
220228
}

.github/repository-settings.md

+72-36
Original file line numberDiff line numberDiff line change
@@ -18,45 +18,79 @@ settings](https://github.com/open-telemetry/community/blob/main/docs/how-to-conf
1818
(To reduce friction for new contributors,
1919
as the default is "Require approval for first-time contributors")
2020

21-
## Branch protections
22-
23-
The order of branch protection rules
24-
[can be important](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule#about-branch-protection-rules).
25-
The branch protection rules below should be added before the `**/**` branch protection rule
26-
(this may require deleting the `**/**` rule and recreating it at the end).
27-
28-
### `main`
29-
30-
- Require branches to be up to date before merging: UNCHECKED
31-
32-
(PR jobs take too long, and leaving this unchecked has not been a significant problem)
33-
34-
- Status checks that are required:
35-
36-
- EasyCLA
37-
- required-status-check
21+
- Workflow permissions
22+
- Default permissions granted to the `GITHUB_TOKEN` when running workflows in this repository:
23+
Read repository contents and packages permissions
24+
- Allow GitHub Actions to create and approve pull requests: UNCHECKED
25+
26+
## Rules > Rulesets
27+
28+
### `main` and release branches
29+
30+
- Targeted branches:
31+
- `main`
32+
- `release/*`
33+
- `v0.*`
34+
- `v1.*`
35+
- Branch rules
36+
- Restrict deletions: CHECKED
37+
- Require linear history: CHECKED
38+
- Require a pull request before merging: CHECKED
39+
- Required approvals: 1
40+
- Require review from Code Owners: CHECKED
41+
- Allowed merge methods: Squash
42+
- Require status checks to pass
43+
- EasyCLA
44+
- `required-status-check`
45+
- `gradle-wrapper-validation`
46+
- Block force pushes: CHECKED
47+
48+
### `cloudfoundry` branch
49+
50+
- Targeted branches:
51+
- `cloudfoundry`
52+
- Branch rules
53+
- Restrict deletions: CHECKED
54+
- Require linear history: CHECKED
55+
- Require a pull request before merging: CHECKED
56+
- Required approvals: 1
57+
- Require review from Code Owners: CHECKED
58+
- Allowed merge methods: Squash
59+
- Require status checks to pass
60+
- EasyCLA
61+
- Block force pushes: CHECKED
62+
63+
### `gh-pages` branch
64+
65+
- Targeted branches:
66+
- `gh-pages`
67+
- Branch rules
68+
- Restrict deletions: CHECKED
69+
- Require linear history: CHECKED
70+
- Block force pushes: CHECKED
71+
72+
### Restrict branch creation
73+
74+
- Targeted branches
75+
- Exclude:
76+
- `release/*`
77+
- `renovate/**/**`
78+
- `opentelemetrybot/**/**`
79+
- Restrict creations: CHECKED
80+
81+
### Restrict updating tags
82+
83+
- Targeted tags
84+
- All tags
85+
- Restrict updates: CHECKED
86+
- Restrict deletions: CHECKED
3887

39-
### `release/*`
40-
41-
Same settings as above for [`main`](#main).
42-
43-
### `cloudfoundry`
44-
45-
Same settings as above for [`main`](#main),
46-
except for the `required-status-check` required status check.
47-
48-
### `renovate/**/**` and `opentelemetrybot/**/**`
49-
50-
Same settings as
51-
for [`dependabot/**/**`](https://github.com/open-telemetry/community/blob/main/docs/how-to-configure-new-repository.md#branch-protection-rule-dependabot)
52-
53-
### `gh-pages`
88+
## Branch protections
5489

55-
- Everything UNCHECKED
90+
### `main`, `release/*`, `v0.*`, `v1.*`, `cloudfoundry`
5691

57-
(This branch is currently only used for directly pushing benchmarking results from the
58-
[Nightly overhead benchmark](https://github.com/open-telemetry/opentelemetry-java-instrumentation/actions/workflows/nightly-benchmark-overhead.yml)
59-
job)
92+
- Restrict who can push to matching branches: CHECKED
93+
- Restrict pushes that create matching branches: CHECKED
6094

6195
## Code security and analysis
6296

@@ -80,3 +114,5 @@ for [`dependabot/**/**`](https://github.com/open-telemetry/community/blob/main/d
80114
### Organization secrets
81115

82116
- `OPENTELEMETRYBOT_GITHUB_TOKEN`
117+
- `OTELBOT_CLIENT_ID`
118+
- `OTELBOT_PRIVATE_KEY`

.github/workflows/assign-reviewers.yml

-18
This file was deleted.

.github/workflows/auto-update-otel-sdk.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- cron: "46 * * * *"
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
check-versions:
1114
runs-on: ubuntu-latest
@@ -44,7 +47,7 @@ jobs:
4447
4548
update-otel-sdk:
4649
permissions:
47-
contents: write # for Git to git push
50+
contents: write # for git push to PR branch
4851
runs-on: ubuntu-latest
4952
if: |
5053
needs.check-versions.outputs.current-version != needs.check-versions.outputs.latest-version &&
@@ -66,13 +69,13 @@ jobs:
6669
run: .github/scripts/gha-free-disk-space.sh
6770

6871
- name: Set up JDK for running Gradle
69-
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
72+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
7073
with:
7174
distribution: temurin
7275
java-version-file: .java-version
7376

7477
- name: Setup Gradle
75-
uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2
78+
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
7679

7780
- name: Update license report
7881
run: ./gradlew generateLicenseReport

.github/workflows/backport.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
jobs:
1313
backport:
1414
permissions:
15-
contents: write # for Git to git push
15+
contents: write # for git push to PR branch
1616
runs-on: ubuntu-latest
1717
steps:
1818
- run: |
@@ -26,14 +26,22 @@ jobs:
2626
# history is needed to run git cherry-pick below
2727
fetch-depth: 0
2828

29-
- name: Use CLA approved github bot
30-
run: .github/scripts/use-cla-approved-github-bot.sh
29+
- uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
30+
id: app-token
31+
with:
32+
app-id: ${{ vars.OTELBOT_APP_ID }}
33+
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
34+
35+
- name: Use CLA approved author
36+
run: |
37+
git config user.name otelbot
38+
git config user.email [email protected]
3139
3240
- name: Create pull request
3341
env:
3442
NUMBER: ${{ github.event.inputs.number }}
3543
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
36-
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
44+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
3745
run: |
3846
commit=$(gh pr view $NUMBER --json mergeCommit --jq .mergeCommit.oid)
3947
title=$(gh pr view $NUMBER --json title --jq .title)

0 commit comments

Comments
 (0)