-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[mono] [tests] Set error for mono_fullaot runtime tests when no suitable tests are found #96902
[mono] [tests] Set error for mono_fullaot runtime tests when no suitable tests are found #96902
Conversation
Tagging subscribers to this area: @directhex Issue DetailsReport MSBuild error when compiling selected runtime tests with MotivationThis can happen when locally building selected tests that are disabled in
Previous behaviorBuild doesn't get stopped and the following warning is reported:
New behaviorBuild gets canceled and error is reported:
|
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.
LGTM!
Only two nits:
- Would it make sense to check on
TestAssemblies
instead, as there is already a condition filtering out paths that exist on line 115? - Maybe the error message can include additional information about tests exclusions, something like:
... Make sure that desired test cases are not excluded from AOT compilation
…ble tests are found (dotnet#96902)
Report MSBuild error when compiling selected runtime tests with
mono_fullaot
and no suitable tests are found.Motivation
This can happen when locally building selected tests that are disabled in
issues.targets
. This causes:TestExclusions
contain the selected tests,TestScripts
won't be created.runtime/src/tests/build.proj
Line 112 in 980491d
TestDirs
to no exists, leading to enumarating all dlls on the disk (/**/*.dll
) inruntime/src/tests/build.proj
Line 127 in 980491d
Previous behavior
Build doesn't get stopped and the following warning is reported:
MSBUILD : warning MSB5029: The value "/**/*.dll" of the "Include" attribute in element <ItemGroup> in file "<RUNTIME_ROOT>runtime/src/tests/build.proj (122,37)" is a wildcard that results in enumerating all files on the drive, which was likely not intended. Check that referenced properties are always defined.
New behavior
Build gets canceled and error is reported:
error : No tests found for Mono AOT compilation.