-
Notifications
You must be signed in to change notification settings - Fork 447
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
Add E2E tests for blazorwasm+workloads+aot #10688
Conversation
7ff3160
to
6ea42b0
Compare
Depends on dotnet/emsdk#19 |
98019e5
to
bbe9144
Compare
tracking one of the issues dotnet/sdk#17790 |
The tests here install the workload with This would allow tests like:
|
Tests should fail while running |
This would be hugely costly and add a lot of time to our test runs. @wli3 do you have any suggestions for how to do this or if these tests are needed? |
Just to be clear, I meant - make a copy of |
.. and this PR is now using local copies. AFAICS, that itself shouldn't affect run times much. But building for AOT will add some extra time. |
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 looks great although I worry about the impact on the build time. FYI @wli3
test/EndToEnd/WorkloadTests.cs
Outdated
+ sourceDirName); | ||
} | ||
|
||
DirectoryInfo[] dirs = dir.GetDirectories(); |
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 can be done on Line 124. Also you could consider using EnumerateDirectories()
DirectoryInfo directory = TestAssets.CreateTestDirectory(); | ||
WorkloadTestEnvironment env = PrepareTestEnvironment(directory.FullName); | ||
|
||
//FIXME: poke the value in the project file |
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.
What does this mean?
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 want to set the property in the project file, instead of forcing it as a global property from the command line. That would be closest to what a user would do.
|
||
//FIXME: poke the value in the project file | ||
|
||
// AOT builds are slow, so in case the test is failing (IOW, it is able to build) |
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.
AOT builds are slow, so in case the test is failing (IOW, it is able to build)
Then it should not be in the installer test. Installer end to end tests are for "if I have all the parts together" with the right version. dotnet/installer does not have parallel test support. And there are a lot of legs. It has less tolerant for flaky tests
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 is for testing whether all the parts for the workload, with the right versions work together or not. The tests shouldn't be flaky.
I'll change this to native relinking, which will be much quicker. And we can discuss AOT after that.
The python fix in emsdk required for building on linux, is not available here yet:
I'll add a workaround here for now. |
bcb9188
to
6079087
Compare
Update:
|
6079087
to
dc3ab0c
Compare
Current state:
Updated the PR, to fix the first one, and see how it does with |
Current state:
|
|
@wli3 what would be the best way to skip tests on win/x86? Add support in one of the attributes, or can we use |
.. to the project directory, because we are using it outside the repo checkout.
.. to the project directory, because we are using it outside the repo checkout.
@wli3 I wanted to check again if the E2E AOT tests here be acceptable? If not in this repo, then where should this be tested? We need to test the SDK, and the workload packs that are generated. |
Current state: Tests failing on linux because python is too old (<3.6). |
50d9be1
to
413727d
Compare
Closing this, as the plan is to test these in a different repo. |
microsoft-net-sdk-blazorwebassembly-aot