Skip to content

Stabilize testSparScimCreateGetSearchUserGroup - #5331

Merged
supersven merged 1 commit into
developfrom
sventennie/deflake-testSparScimCreateGetSearchUserGroup
Jul 10, 2026
Merged

Stabilize testSparScimCreateGetSearchUserGroup#5331
supersven merged 1 commit into
developfrom
sventennie/deflake-testSparScimCreateGetSearchUserGroup

Conversation

@supersven

Copy link
Copy Markdown
Contributor

The order of members in a SCIM group doesn't matter and exists only accidentally; because JSON has no notion of sets.

So, ordering members' list entries by their Ord instance leads to stable comparisons.

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@supersven
supersven requested a review from Copilot July 10, 2026 12:43
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Jul 10, 2026
The order of members in a SCIM group doesn't matter and exists only
accidentally; because JSON has no notion of sets.

So, ordering members' list entries by their `Ord` instance leads to
stable comparisons.
@supersven
supersven force-pushed the sventennie/deflake-testSparScimCreateGetSearchUserGroup branch from f4d8150 to 5c7d371 Compare July 10, 2026 12:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR stabilizes the SCIM group integration test by normalizing JSON values before comparison so that accidental array ordering (notably group members) does not cause flaky test failures.

Changes:

  • Added a normalizeValue helper that recursively sorts all JSON arrays to produce a canonical form for comparisons.
  • Updated testSparScimCreateGetSearchUserGroup assertions to compare normalized JSON (single-group fetch + bulk search results).
  • Added Data.Vector import to support array reconstruction during normalization.

@supersven
supersven marked this pull request as ready for review July 10, 2026 13:03
@supersven
supersven requested a review from a team as a code owner July 10, 2026 13:03
@supersven
supersven merged commit 5b7f1cc into develop Jul 10, 2026
10 checks passed
@supersven
supersven deleted the sventennie/deflake-testSparScimCreateGetSearchUserGroup branch July 10, 2026 13:41
supersven added a commit that referenced this pull request Jul 14, 2026
The order of members in a SCIM group doesn't matter and exists only
accidentally; because JSON has no notion of sets.

So, ordering members' list entries by their `Ord` instance leads to
stable comparisons.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants