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

MF-5759 fix stability of namespace route sorting #548

Closed
wants to merge 1 commit into from
Closed

Conversation

adecker89
Copy link
Contributor

I went with sorting the routes in place just before we started generating a given namespace.

I would've preferred to have a stronger guarantee that routes are always sorted by doing an insort in the add_route method https://github.com/dropbox/stone/blob/83da417f780b40750b2fd6cdb9697e395cc1dd40/stone/ir/api.py#L128, but since this is even further upstream there's a barrier there.

Also just to call out there's an existing attempt to sort routes as they're added here https://github.com/dropbox/stone/blob/83da417f780b40750b2fd6cdb9697e395cc1dd40/stone/frontend/ir_generator.py#L1709 but it looks to not be sufficient.

Copy link
Contributor

@devPalacio devPalacio left a comment

Choose a reason for hiding this comment

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

caching is hard

@adecker89
Copy link
Contributor Author

Need to fix upstream

@adecker89 adecker89 closed this Aug 23, 2024
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