Skip to content

test fixes #1221

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

Closed
wants to merge 1 commit into from
Closed

test fixes #1221

wants to merge 1 commit into from

Conversation

TorkelE
Copy link
Member

@TorkelE TorkelE commented Apr 9, 2025

No description provided.

@TorkelE
Copy link
Member Author

TorkelE commented Apr 9, 2025

This one seems to fix parts of things. But we still need #1214 (and then there is the pre-release stuff as well)

Comment on lines +125 to +131
function isequivalent(sym1, sym2; ignored_metadata = [MT.SymScope])
isequal(sym1, sym2) || (return false)
if any((md1 != ep_metadata) && !(md1 in sym2.metadata) for md1 in sym1.metadata)
if any((md1 != ep_metadata) && (md1[1] ∉ ignored_metadata) && (md1 ∉ sym2.metadata)
for md1 in sym1.metadata)
return false
elseif any((md2 != ep_metadata) && !(md2 in sym1.metadata) for md2 in sym2.metadata)
elseif any((md2 != ep_metadata) && (md2[1] ∉ ignored_metadata) && (md2 ∉ sym1.metadata)
for md2 in sym2.metadata)
Copy link
Member

Choose a reason for hiding this comment

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

Can you not just check the metadata you actually care about? Perhaps maintain a list of the important fields and just iterate through them here to check they agree? This current approach seems fragile and likely to cause issues in the future when MTK changes stuff again.

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess the opposite problem is that there might be metadata that we do not know about which might be useful to users. Aayush suggested this won't likely happen a lit in the future. Happy to discuss ways to make things better in the future, but right now trying to find all metadata and figure out which does/does not work will probably take quite a significant effort.

@TorkelE TorkelE closed this Apr 10, 2025
@TorkelE TorkelE deleted the test_fix branch April 10, 2025 15:48
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