Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: sort npm set policy values before validation #3358

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

QxBytes
Copy link
Contributor

@QxBytes QxBytes commented Jan 21, 2025

Reason for Change:

Previously TestFailureOnCreation in npm/pkg/dataplane/ipsets/ipsetmanager_windows_test.go could flake: https://msazure.visualstudio.com/One/_build/results?buildId=112594849&view=logs&j=1e95c5bf-f785-5c1d-a4c1-33b038e882fb&t=4058cacc-5989-52ae-5341-5beff346fc28 since the contents of a set have no defined order. This PR changes the test validation behavior to copy the cache object, sort the values, and then replace the copy's values with the sorted values before comparing the copy (sorted) to the expected.

Issue Fixed:

Requirements:

Notes:
This PR is made so this PR won't flake #3156

@QxBytes QxBytes self-assigned this Jan 21, 2025
@QxBytes QxBytes added the npm Related to NPM. label Jan 21, 2025
@QxBytes QxBytes changed the title test: npm sort set policy values before validation test: sort npm set policy values before validation Jan 21, 2025
@QxBytes
Copy link
Contributor Author

QxBytes commented Jan 21, 2025

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@QxBytes QxBytes marked this pull request as ready for review January 21, 2025 20:09
@QxBytes QxBytes requested a review from a team as a code owner January 21, 2025 20:09
@QxBytes QxBytes requested review from matmerr and vakalapa January 21, 2025 20:09
huntergregory
huntergregory previously approved these changes Jan 21, 2025
@QxBytes
Copy link
Contributor Author

QxBytes commented Jan 21, 2025

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@QxBytes QxBytes added this pull request to the merge queue Jan 21, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 22, 2025
@QxBytes QxBytes added this pull request to the merge queue Jan 22, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 22, 2025
@QxBytes QxBytes added this pull request to the merge queue Jan 22, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
npm Related to NPM.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants