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/skip trie_attention_cache_test on Windows. #645

Merged
merged 3 commits into from
Dec 6, 2024

Conversation

ScottTodd
Copy link
Member

@ScottTodd ScottTodd commented Dec 4, 2024

Context: #632 (comment)

@ScottTodd ScottTodd changed the title Fix trie_attention_cache_test on Windows. Fix/skip trie_attention_cache_test on Windows. Dec 4, 2024
@ScottTodd ScottTodd requested a review from renxida December 4, 2024 18:42
@ScottTodd ScottTodd marked this pull request as ready for review December 4, 2024 18:42
Comment on lines +93 to +95
def __lt__(self, other):
"""Sort nodes by their memory address."""
return id(self) < id(other)
Copy link
Member Author

Choose a reason for hiding this comment

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

If the tests passed on Linux without this and they still fail on Windows with it... maybe this isn't the right implementation 🤔

Could leave this off and just keep the test skipped.

@ScottTodd
Copy link
Member Author

Ping?

Copy link
Contributor

@renxida renxida left a comment

Choose a reason for hiding this comment

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

Sry! missed this. On it now. I think we don't need lt because the heapq is relying on the timestamp instead of the nodes. Will see what' the windows failure is once rebase CI completes.

@ScottTodd
Copy link
Member Author

Sry! missed this. On it now. I think we don't need lt because the heapq is relying on the timestamp instead of the nodes. Will see what' the windows failure is once rebase CI completes.

So are you okay with merging this as-is, or do you want some changes to the heapq code?

@ScottTodd ScottTodd merged commit 7f6de06 into nod-ai:main Dec 6, 2024
20 checks passed
@ScottTodd ScottTodd deleted the windows-tests branch December 6, 2024 23:32
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