Repository navigation
Conversation
GetNodesInfo falls back to getCPUTopology when no NUMA node directories are present, and that function builds its result by ranging over a map, so nodes are appended in randomized order. TestTopologyOnSystemZ compares topology[0] and topology[1] against fixed expected values without ordering the slice first, so it fails intermittently. TestTopologyWithoutNodes exercises the same fallback and already sorts before asserting; this applies the same guard. Measured on RHEL 9.8 / s390x over 20 runs: 17 pass / 3 fail before, 20 pass / 0 fail after.
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
getCPUTopologyappends nodes while ranging overcpusByPhysicalPackageID, so the returned slice is in randomized map order.TestTopologyOnSystemZindexestopology[0]/topology[1]against fixed expected values without sorting first, and fails whenever the two nodes come back transposed.TestTopologyWithoutNodesreaches the same fallback via emptynodesPathsand already sorts byIdbefore asserting. This applies the same guard. (Same symptom as #2557.)Measured on RHEL 9.8 / s390x, 20 runs of
go test -count=1 -run TestTopologyOnSystemZ ./machine/: 17 pass / 3 fail before, 20 pass / 0 fail after.Full
make testpasses with this change on RHEL 8.10, 9.6, 9.8, 10.0, 10.2; SLES 15 SP7, 16; Ubuntu 22.04, 24.04.