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

Unordered compare diamond nodes #81

Merged
merged 2 commits into from
May 24, 2024

Conversation

ckyang0225
Copy link
Contributor

As described in #80, for diamond chain there is no guarantee for the order of topological same-level nodes.

As the test case component diamond, it may fail in some platforms, such as MacOS.

This PR fix the fail by comparing nodes without considering their order.

Before:

Screenshot 2024-05-03 at 09 33 02

After:

Screenshot 2024-05-03 at 09 32 27

@ckyang0225
Copy link
Contributor Author

@bretbrownjr @dcbaker Could you please take a look at this PR?
Any suggestion is welcome, thanks!

tests/runner.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@bretbrownjr bretbrownjr left a comment

Choose a reason for hiding this comment

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

Let's land this!

@dcbaker had a good point that we might need to exactly replicate the ordering that pkg-config would provide with analogous metadata. I think that's a valid thought that we can revisit with another PR.

@bretbrownjr bretbrownjr merged commit db57b43 into cps-org:main May 24, 2024
6 checks passed
@ckyang0225 ckyang0225 deleted the cyang571_sortdiamond branch May 24, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants