Skip to content

test: Have mz_ore::test spawn it's own runtime #19950

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

Conversation

ParkMyCar
Copy link
Member

@ParkMyCar ParkMyCar commented Jun 14, 2023

Motivation

This PR updates the mz_ore::test macro to natively support async functions. By default it creates a tokio Runtime without the IO Driver enabled, which allows us to miri against more tests, because we no longer use APIs like kqueue or epoll.

This is just a draft though and probably needs to be cleaned up

Tips for reviewer

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered.
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • If this PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way), then it is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).
  • This PR includes the following user-facing behavior changes:

@ParkMyCar ParkMyCar requested a review from def- June 14, 2023 20:32
Copy link
Contributor

@def- def- left a comment

Choose a reason for hiding this comment

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

Very cool, as we've seen today, more miri tests would be great!

@def- def- mentioned this pull request Jun 14, 2023
5 tasks
@def-
Copy link
Contributor

def- commented Jun 14, 2023

It seems like epoll_wait is now working in miri, so I'll enable many more of our tests: #19956

@ParkMyCar
Copy link
Member Author

It seems like epoll_wait is now working in miri, so I'll enable many more of our tests: #19956

Great! Having epoll support is even better!

@ParkMyCar ParkMyCar closed this Jun 15, 2023
@ParkMyCar ParkMyCar deleted the test/async-test-macro branch June 15, 2023 13:06
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