Skip to content

Revert "Upgrade go.opentelemetry.io/otel/sdk to v1.40.0"#2221

Merged
yuandrew merged 1 commit intomasterfrom
revert-2218-otel-sdk-1-40-0
Mar 10, 2026
Merged

Revert "Upgrade go.opentelemetry.io/otel/sdk to v1.40.0"#2221
yuandrew merged 1 commit intomasterfrom
revert-2218-otel-sdk-1-40-0

Conversation

@yuandrew
Copy link
Contributor

@yuandrew yuandrew commented Mar 10, 2026

Reverts #2218

CI has become too flaky, reverting so I can get v1.41.0 out the door, will spend more time debugging the flakes that this change reveals later this week.


Note

Medium Risk
Moderate risk due to broad dependency/toolchain downgrades that can change build behavior and telemetry integrations; code changes are limited to tests.

Overview
Reverts dependency upgrades across contrib/test modules by downgrading OpenTelemetry (go.opentelemetry.io/otel*) and related transitive deps (e.g., x/sys, testify, goleak) in contrib/datadog, contrib/opentelemetry, and test, updating corresponding go.sum entries.

contrib/opentelemetry/go.mod and test/go.mod also drop the declared Go version from 1.24.0 to 1.23.0 and add an explicit toolchain go1.23.6.

Test tweaks remove conditional nil-checking around d.SearchAttributes assertions in test/integration_test.go, and simplify TestPinnedOverrideWithAutoUpgradeVersioning in test/worker_deployment_test.go by removing the retry loop around ExecuteWorkflow.

Written by Cursor Bugbot for commit 6db176d. This will update automatically on new commits. Configure here.

@yuandrew yuandrew requested a review from a team as a code owner March 10, 2026 04:56
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

if assert.NotNil(c, d.SearchAttributes) {
assert.Equal(c, 2, len(d.SearchAttributes.IndexedFields))
}
assert.Equal(c, 2, len(d.SearchAttributes.IndexedFields))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nil pointer dereference panic on SearchAttributes access

Medium Severity

The revert removes the if assert.NotNil(c, d.SearchAttributes) guard before accessing d.SearchAttributes.IndexedFields. Since SearchAttributes is a *commonpb.SearchAttributes (pointer type), if it's nil, calling len(d.SearchAttributes.IndexedFields) will panic with a nil pointer dereference instead of producing a clean test failure. This occurs at four locations in the test.

Additional Locations (2)

Fix in Cursor Fix in Web

@yuandrew yuandrew enabled auto-merge (squash) March 10, 2026 05:06
@yuandrew yuandrew merged commit 95b504e into master Mar 10, 2026
28 of 30 checks passed
@yuandrew yuandrew deleted the revert-2218-otel-sdk-1-40-0 branch March 10, 2026 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants