-
Notifications
You must be signed in to change notification settings - Fork 668
[Windows] Run native unit tests in CI #13923
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
[Windows] Run native unit tests in CI #13923
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/13923
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 42 PendingAs of commit 04826a7 with merge base 9af908d ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
8028d96
to
43355de
Compare
62784a7
to
9364aea
Compare
@@ -49,21 +49,21 @@ Tensor& argmax_out( | |||
static constexpr const char op_name[] = "argmax.out"; | |||
|
|||
ET_SWITCH_REALHBF16_TYPES(in.scalar_type(), ctx, op_name, CTYPE, [&] { | |||
long* out_data = out.mutable_data_ptr<long>(); | |||
int64_t* out_data = out.mutable_data_ptr<int64_t>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. We should have a lint for this cc @manuelcandales
|
||
def tearDown(self) -> None: | ||
super().tearDown() | ||
|
||
@unittest.skipIf(sys.platform == "win32", "Core ML is not available on Windows.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like evidence that we shouldnt have a mono recipe test with real backends.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, might make sense to refactor it as a follow up. CC @abhinaykukkadapu Do you have any preferences on handling of platform-specific recipes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was under the impression that lowering works across all platforms, although i haven't thought about windows tbf.
This seems like evidence that we shouldnt have a mono recipe test with real backends.
these tests only call forward if those specific et backends are available, check here: https://github.com/pytorch/executorch/blob/main/export/tests/test_target_recipes.py#L103, otherwise these tests just lowers the model.
@metascroy do you know if coreml tools work on a windows platform?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. From what I read, coremltools AOT flow is not available on Windows.
b0cbcc2
to
a900763
Compare
@JacobSzwejbka I've made a few small updates to address comments. Do you have any blocking concerns? |
a900763
to
082276e
Compare
ghstack-source-id: 1dca42f ghstack-comment-id: 3251228740 Pull-Request: pytorch#13925
082276e
to
5788029
Compare
5788029
to
04826a7
Compare
After rebase and minor cleanup, I'm seeing one (flaky) test failure relating to etdump generation due to being unable to access a temp file because there's another open handle to it. Tracking this in #13883. I've updated and am re-running CI now. If no additional objections, I hope to land this shortly, pending final approval from reviewers. |
This reverts commit f1ca55a.
…rch#14286) This reverts commit 10e93fb.
Differential Revision: D82345075 Pull Request resolved: #14287
Summary
Build and run C++ tests in the unit test CI job on Windows. Fix a few lingering issues on Windows that surfaced.
Changes:
I've also excluded method_test and tensor_parser_test for now, due to the env issues with some of the PTE test models. The tests pass locally - but I need to debug the build-time PTE creation for these tests. I'm disabling to get the remaining 98% of the tests up first, and will fix these shortly. Tracking in #13883.
Test plan
CI - the tests are covered by the unittest jobs (debug, release, and editable).