Commit c568398
Fix ApiValidator failures, harden Dvl.exe check, parallelize test runner
- Add src/drivers/test/Directory.Build.targets that overrides the WDK's
ApiValidator MSBuild target with an empty target. The WDK NuGet packages
reference ApiValidator.exe in WindowsDriver.common.targets but do not ship
the binary itself, so the post-build step always failed with MSB3721 for
builds using the Universal driver target platform. Replacing the target
with a no-op cleanly suppresses the step; API validation is irrelevant
for the CodeQL static analysis these tests perform. This is the cause of
the 6 still-failing tests (UnsafeCallInGlobalInit, MultithreadedAVCondition,
StaticInitializer, DeviceInitApi, FloatSafeExit, FloatUnsafeExit).
- Remove the previous <ApiValidatorEnabled>false</ApiValidatorEnabled>
workaround from Directory.Build.props -- the WDK targets do not honor that
property name, so it had no effect.
- dvl_tests.ps1: when Dvl.exe cannot be located in either the NuGet packages
directory or the system WDK install path, exit with a clear failure instead
of silently skipping the dvl command-type tests. Skipping let regressions
go undetected.
- build_create_analyze_test.py: parallelize the test runner. Each ql_test
uses isolated working/<name>, TestDB/<name>, and AnalysisFiles/<name>.sarif
paths, so multiple tests are safe to execute concurrently. Use
multiprocessing.pool.ThreadPool (already imported) with a worker count
controlled by a new -j/--jobs flag, defaulting to os.cpu_count(). Pass
--jobs 1 to fall back to the legacy sequential behaviour. Print output
is already protected by print_mutex; added results_mutex around the shared
health_df / detailed_health_df DataFrame writes. Refactored the body of
the per-test loop into _run_single_test for use by the pool's
imap_unordered.
Agent-Logs-Url: https://github.com/microsoft/Windows-Driver-Developer-Supplemental-Tools/sessions/71e6036e-2c98-4bb7-85ab-2270cbce9c68
Co-authored-by: NateD-MSFT <34494373+NateD-MSFT@users.noreply.github.com>1 parent 8b61a8d commit c568398
3 files changed
Lines changed: 84 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 17 | | |
26 | 18 | | |
27 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
830 | 831 | | |
831 | 832 | | |
832 | 833 | | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
833 | 864 | | |
834 | 865 | | |
835 | 866 | | |
| |||
842 | 873 | | |
843 | 874 | | |
844 | 875 | | |
845 | | - | |
| 876 | + | |
846 | 877 | | |
847 | 878 | | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | | - | |
852 | | - | |
853 | | - | |
854 | | - | |
855 | | - | |
856 | | - | |
857 | | - | |
858 | | - | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
859 | 902 | | |
860 | 903 | | |
861 | 904 | | |
| |||
950 | 993 | | |
951 | 994 | | |
952 | 995 | | |
| 996 | + | |
953 | 997 | | |
954 | 998 | | |
955 | 999 | | |
| |||
0 commit comments