Skip to content
New issue

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

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

Already on GitHub? # to your account

431 - Sort array values in state cache #468

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

tom-wozniakowski-tw
Copy link
Contributor

Relates to: #431

The cached output values of the ps function sometimes contain arrays. These can be deserialised as List values, but also sometimes appear as comma-separated String values. These array orders are not stable, though the contents are.

This PR parses comma-separated Strings, and sorts all known Array values to make the order stable.

This should mitigate the problems we have been seeing with the cached state is different messages and slow test startups.

@augi augi self-requested a review December 13, 2024 22:21
@augi augi enabled auto-merge (squash) December 13, 2024 22:23
@augi augi merged commit d406170 into avast:main Dec 13, 2024
1 check passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants