You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pull request does not have a backport label. Could you fix it @kruskall? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:
backport-8.19 is the label to automatically backport to the 8.19 branch.
backport-9./d is the label to automatically backport to the 9./d branch. /d is the digit.
backport-active-all is the label that automatically backports to all active branches.
backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Approval should be deferred until the partial Go 1.27 x/net/http2 compatibility-tag routing is validated across direct builds, Make targets, and system tests for TLS and gRPC behavior.
Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Critical compile errors remain across production and test files due to promoted fields being used as direct keyed struct-literal fields.
No open issues 🎉
8 previously missed issues
In code that hasn't changed since last review
Restore explicit identifier initializer in metadata literals
internal/sourcemap/metadata_fetcher_test.go:42
name, version, and path are promoted from the embedded identifier; promoted fields cannot be used directly in a keyed metadata literal. This test file therefore does not compile; restore the explicit identifier initializer.
This issue also appears in the following locations of the same file:
line 178
line 220
Restore explicit identifier initializer in metadata literal
internal/sourcemap/sourcemap_fetcher_test.go:35
name, version, and path are promoted from the embedded identifier; promoted fields cannot be used directly in a keyed metadata literal. This test file therefore does not compile; restore the explicit identifier initializer.
Nest criteria fields under PolicyCriteria in struct literal
x-pack/apm-server/main.go:129
The criteria fields are promoted through the embedded PolicyCriteria in sampling.Policy. Using them as direct keyed fields is not allowed in Go struct literals and makes this package fail to compile; assign an explicit PolicyCriteria value instead.
Restore explicit PolicyCriteria field in Policy literal
x-pack/apm-server/sampling/config_test.go:44
ServiceName is promoted from the embedded PolicyCriteria, so it cannot be specified directly in this sampling.Policy literal. This is a compile error; restore the explicit PolicyCriteria field.
Nest policy criteria under explicit PolicyCriteria field
x-pack/apm-server/sampling/groups_test.go:45
ServiceName, ServiceEnvironment, TraceName, and TraceOutcome are promoted from the embedded PolicyCriteria; promoted fields cannot be used directly in a keyed Policy literal. This prevents the test package from compiling, so the criteria need to remain under an explicit PolicyCriteria field.
This issue also appears in the following locations of the same file:
line 207
line 209
Initialize TraceName under explicit PolicyCriteria field
TraceName is promoted from the embedded PolicyCriteria, so it cannot be used as a keyed field in a sampling.Policy literal. This is a compile error; initialize PolicyCriteria explicitly as in the previous version.
This issue also appears on line 357 of the same file.
Restore explicit Config initializer in testConfig literal
BatchProcessor, MeterProvider, and the sampling/storage fields are promoted through the embedded sampling.Config (which itself embeds the local and remote configs). They cannot be used as direct keyed fields in a testConfig literal, so this change makes the tests fail to compile. Restore the explicit Config: sampling.Config{...} initializer.
Restore itemheap initializer in weightedRandomSample literal
x-pack/apm-server/sampling/reservoir.go:28
keys and values are promoted fields of the embedded itemheap; promoted fields cannot be specified directly in a keyed struct literal. This produces unknown field keys/values in struct literal of type weightedRandomSample and prevents the package from compiling. Keep the itemheap: itemheap{...} initializer here.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The Go 1.27 and x/net/http2 upgrades, including the global http2legacy workaround, affect build and production HTTP/2, gRPC, and TLS behavior across FIPS, system-test, and gmux paths, requiring CI and runtime integration validation beyond static review.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
A critical active issue remains because direct build and test entry points omit the required http2legacy workaround, potentially producing broken HTTP/gRPC multiplexing with Go 1.27 and x/net v0.62.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
A critical active issue remains because the http2legacy workaround only applies through DEFAULT_TAGS, leaving documented direct builds, tests, and the integration CI path vulnerable to broken gmux TLS gRPC interception.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
backport-active-8Automated backport with mergify to all the active 8.[0-9]+ branchesbackport-active-9Automated backport with mergify to all the active 9.[0-9]+ branches
4 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation/summary
keep go version up to date
run make fmt
bump swiss lib to fix compile error
Checklist
For functional changes, consider:
How to test these changes
Related issues