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

fix(test): remove determinism of parent order in tests #336

Closed
wants to merge 1 commit into from

Conversation

eric-nguyen-cs
Copy link
Contributor

What

Currently, parent order is not deterministic when parsing and unparsing a taxonomy. Thus, the tests sometimes fail or pass (see https://github.com/openfoodfacts/taxonomy-editor/actions/runs/7555310972 and https://github.com/openfoodfacts/taxonomy-editor/actions/runs/7555383123/job/20570246361 that come from exactly the same code)

This is a short term fix: the goal is to add parent order determinism in a future PR (as well as good comment locality)

@eric-nguyen-cs eric-nguyen-cs requested a review from a team as a code owner January 17, 2024 12:57
@perierc perierc changed the title fix(test): fix indeterminism of parent order in tests fix(test): remove determinism of parent order in tests Jan 17, 2024
@eric-nguyen-cs
Copy link
Contributor Author

Another short term fix would be to get rid of the two parents in the test file. Not sure what is preferable.
In any case, when we add the parent order determinism in the unparsing code, we will be able to add that test back

@eric-nguyen-cs
Copy link
Contributor Author

Instead of updating the tests to get the tests passing, I updated the code here #337

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

1 participant