Uh oh!
There was an error while loading. Please reload this page.
Test build target agnostic separately from target specific tests - #34658
Conversation
Instead of generic filtering add a manual property
ghost
commented
Apr 7, 2020
Tagging @ViktorHofer as an area owner |
sdmaclea
commented
Apr 7, 2020
I tested manually building on Linux. It looks good to me. |
The simple filtering used in this PR is relatively slow. It takes a while for MSBuild to find the tests to build (when finding the small set of target specific tests). Generic filtering may be slower. It is possible we may need to build test lists to make this faster.... |
jkoritzinsky
left a comment
There was a problem hiding this comment.
Can we do a string for CLRTestNeedTargetToBuilds value instead of an opaque number that has to be documented somewhere else?
You're going to make me do the hard work of naming the states. Effectively right now the states are
@jkoritzinsky How does |
jkoritzinsky
commented
Apr 7, 2020
Those work. We could also shorten them to "TargetGeneric" and "TargetSpecific" if you would like. |
What about the script option? Sounds like they should change to
or
|
ivdiazsa
commented
Apr 7, 2020
I agree with @jkoritzinsky's suggestions. Other than that, LGTM! I'm assuming the test lists building would be done in a separate PR? |
ivdiazsa
commented
Apr 7, 2020
Both are fine by me. I would vote for the latter choices. Since the script is already called |
sdmaclea
commented
Apr 8, 2020
@VSadov Is working on generic filtering. I was assuming we would wait and see what he comes up with before engineering another solution, |
sdmaclea
commented
Apr 8, 2020
I made the renames per feedback. I also did a quick benchmark of test building on my local Hyper-V Ubuntu machine. It took |
sdmaclea
commented
Apr 9, 2020
quick benchmark - Windows results were about the same as Linux Hyper-V on the same machine. |
Part of #33066
Modifies build-test to add options to allow building target agnostic tests separately from target specific tests.
TraitTags found a few cases whereTraitTags were missed in Added OS and Bit Specific tags to accordingly .csproj files. #637. Also addedArchSpecificCLRTestNeedTargetto indicate a test which is not target agnostic.AnyOSandAnyCPU, but I ran into lots of issues. So I reverted that.