Skip to content

Commit c2dcf90

Browse files
authored
Merge branch 'open-telemetry:main' into main
2 parents 52d68a0 + 28fedfb commit c2dcf90

File tree

67 files changed

+964
-306
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

+964
-306
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#!/bin/bash -e
22

3-
# shellcheck disable=SC2016
4-
# shellcheck disable=SC2086
5-
63
# this should be run on the release branch
74

85
# NOTE if you need to run this script locally, you will need to first:
@@ -55,6 +52,8 @@ query($q: String!, $endCursor: String) {
5552

5653
# this query captures authors of issues which have had PRs in the current range reference the issue
5754
# but not necessarily through closingIssuesReferences (e.g. addressing just a part of an issue)
55+
#
56+
# note: [^0-9<&#;] below excludes HTML entity markers to avoid matching &#1234; as issue #1234
5857
contributors2=$(gh api graphql --paginate -F q="repo:$GITHUB_REPOSITORY is:pr base:main is:merged merged:$from..$to" -f query='
5958
query($q: String!, $endCursor: String) {
6059
search(query: $q, type: ISSUE, first: 100, after: $endCursor) {
@@ -72,8 +71,8 @@ query($q: String!, $endCursor: String) {
7271
}
7372
}
7473
' --jq '.data.search.edges.[].node.body' \
75-
| grep -oE "#[0-9]{4,}$|#[0-9]{4,}[^0-9<]|$GITHUB_REPOSITORY/issues/[0-9]{4,}" \
76-
| grep -oE "[0-9]{4,}" \
74+
| grep -oE "#[0-9]{3,}$|#[0-9]{3,}[^0-9<&#;]|$GITHUB_REPOSITORY/issues/[0-9]{3,}" \
75+
| grep -oE "[0-9]{3,}" \
7776
| xargs -I{} gh issue view {} --json 'author,url' --jq '[.author.login,.url]' \
7877
| grep -v '/pull/' \
7978
| sed 's/^\["//' \

api/all/src/test/java/io/opentelemetry/api/baggage/propagation/PercentEscaperFuzzTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import edu.berkeley.cs.jqf.fuzz.random.NoGuidance;
1414
import io.opentelemetry.api.internal.PercentEscaper;
1515
import java.net.URLDecoder;
16+
import java.nio.charset.StandardCharsets;
1617
import org.junit.jupiter.api.Test;
1718
import org.junit.runner.Result;
1819
import org.junit.runner.RunWith;
@@ -22,10 +23,11 @@ class PercentEscaperFuzzTest {
2223
public static class TestCases {
2324
private final PercentEscaper percentEscaper = new PercentEscaper();
2425

26+
@SuppressWarnings("JdkObsolete") // Recommended alternative was introduced in java 10
2527
@Fuzz
2628
public void roundTripWithUrlDecoder(String value) throws Exception {
2729
String escaped = percentEscaper.escape(value);
28-
String decoded = URLDecoder.decode(escaped, "UTF-8");
30+
String decoded = URLDecoder.decode(escaped, StandardCharsets.UTF_8.name());
2931
assertThat(decoded).isEqualTo(value);
3032
}
3133
}

buildSrc/src/main/kotlin/otel.japicmp-conventions.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fun getAllPublishedModules(): List<Project> {
7474
}.toList()
7575
}
7676

77-
fun getOldClassPath(version: String): List<File> {
77+
fun getClasspathForVersion(version: String): List<File> {
7878
// Temporarily change the group name because we want to fetch an artifact with the same
7979
// Maven coordinates as the project, which Gradle would not allow otherwise.
8080
val existingGroup = group
@@ -95,7 +95,7 @@ fun getOldClassPath(version: String): List<File> {
9595
}
9696
}
9797

98-
fun getNewClassPath(): List<File> {
98+
fun getCurrentClassPath(): List<File> {
9999
return getAllPublishedModules().map {
100100
val archiveFile = it.tasks.getByName<Jar>("jar").archiveFile
101101
archiveFile.get().asFile
@@ -125,8 +125,8 @@ if (!project.hasProperty("otel.release") && !project.name.startsWith("bom")) {
125125
// and generates false positive compatibility errors when methods are lifted into superclasses,
126126
// superinterfaces.
127127
val archiveName = base.archivesName.get()
128-
val newClassPath = getNewClassPath()
129-
val oldClassPath = getOldClassPath(baselineVersion)
128+
val newClassPath = apiNewVersion?.let { getClasspathForVersion(it) } ?: getCurrentClassPath()
129+
val oldClassPath = getClasspathForVersion(baselineVersion)
130130
val pattern = (archiveName + "-([0-9\\.]*)(-SNAPSHOT)?.jar").toRegex()
131131
val newArchive = newClassPath.singleOrNull { it.name.matches(pattern) }
132132
val oldArchive = oldClassPath.singleOrNull { it.name.matches(pattern) }

dependencyManagement/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ rootProject.extra["versions"] = dependencyVersions
99

1010

1111
val autoValueVersion = "1.11.1"
12-
val errorProneVersion = "2.46.0"
12+
val errorProneVersion = "2.47.0"
1313
val jmhVersion = "1.37"
1414
// Mockito 5.x.x requires Java 11 https://github.com/mockito/mockito/releases/tag/v5.0.0
1515
val mockitoVersion = "4.11.0"

docs/apidiffs/1.59.0_vs_1.58.0/opentelemetry-api.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Comparing source compatibility of opentelemetry-api-1.60.0-SNAPSHOT.jar against opentelemetry-api-1.58.0.jar
1+
Comparing source compatibility of opentelemetry-api-1.59.0.jar against opentelemetry-api-1.58.0.jar
22
*** MODIFIED INTERFACE: PUBLIC ABSTRACT io.opentelemetry.api.common.AttributeKey (not serializable)
33
=== CLASS FILE FORMAT VERSION: 52.0 <- 52.0
44
GENERIC TEMPLATES: === T:java.lang.Object
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Comparing source compatibility of opentelemetry-common-1.60.0-SNAPSHOT.jar against opentelemetry-common-1.58.0.jar
1+
Comparing source compatibility of opentelemetry-common-1.59.0.jar against opentelemetry-common-1.58.0.jar
22
No changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Comparing source compatibility of opentelemetry-context-1.60.0-SNAPSHOT.jar against opentelemetry-context-1.58.0.jar
1+
Comparing source compatibility of opentelemetry-context-1.59.0.jar against opentelemetry-context-1.58.0.jar
22
No changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Comparing source compatibility of opentelemetry-exporter-common-1.60.0-SNAPSHOT.jar against opentelemetry-exporter-common-1.58.0.jar
1+
Comparing source compatibility of opentelemetry-exporter-common-1.59.0.jar against opentelemetry-exporter-common-1.58.0.jar
22
No changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Comparing source compatibility of opentelemetry-exporter-logging-otlp-1.60.0-SNAPSHOT.jar against opentelemetry-exporter-logging-otlp-1.58.0.jar
1+
Comparing source compatibility of opentelemetry-exporter-logging-otlp-1.59.0.jar against opentelemetry-exporter-logging-otlp-1.58.0.jar
22
No changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Comparing source compatibility of opentelemetry-exporter-logging-1.60.0-SNAPSHOT.jar against opentelemetry-exporter-logging-1.58.0.jar
1+
Comparing source compatibility of opentelemetry-exporter-logging-1.59.0.jar against opentelemetry-exporter-logging-1.58.0.jar
22
No changes.

0 commit comments

Comments
 (0)