Commit d6ed965
* Fix upload-result-diff and azure-login pipeline failures
- Skip Azure Login, Download, Upload, and comparison steps on
pull_request events where OIDC secrets are unavailable
- Separate the "Upload result diff" step from the "Fail if diff
detected" step so uploads succeed independently and failures
have clear error messages
- Apply fixes to both test-query-health and
test-codeql-latest-vs-current jobs
Agent-Logs-Url: https://github.com/microsoft/Windows-Driver-Developer-Supplemental-Tools/sessions/9c85d93e-42c1-4451-81ad-2a71ece7bc2e
Co-authored-by: NateD-MSFT <34494373+NateD-MSFT@users.noreply.github.com>
* Fix empty-string arg passed to test script on PR runs
Building the python command with an empty $compareFlag variable
caused PowerShell to pass an empty string as a positional arg,
producing: "unrecognized arguments: ". Switched to building an
argument array and splatting it so the flag is only included when
present.
Applied to both test-query-health and test-codeql-latest-vs-current.
Agent-Logs-Url: https://github.com/microsoft/Windows-Driver-Developer-Supplemental-Tools/sessions/a5ce6b58-e7aa-4b94-b731-d0242b47b40e
Co-authored-by: NateD-MSFT <34494373+NateD-MSFT@users.noreply.github.com>
* Surface msbuild errors from codeql database create and fail loudly on test failures
Agent-Logs-Url: https://github.com/microsoft/Windows-Driver-Developer-Supplemental-Tools/sessions/1a592ad2-4448-490f-ae16-a9c34d72bf79
Co-authored-by: NateD-MSFT <34494373+NateD-MSFT@users.noreply.github.com>
* Remove stray .pyc accidentally committed in previous commit
Agent-Logs-Url: https://github.com/microsoft/Windows-Driver-Developer-Supplemental-Tools/sessions/1a592ad2-4448-490f-ae16-a9c34d72bf79
Co-authored-by: NateD-MSFT <34494373+NateD-MSFT@users.noreply.github.com>
* Optimize pipeline for faster PR runs
Removed unnecessary build steps for CA ported queries (covered by the build-all step) and adjusted dependencies in workflow to speed up PR runs (test steps will build as part of work.)
Signed-off-by: NateD-MSFT <34494373+NateD-MSFT@users.noreply.github.com>
* Add Directory.Build.props to wire WDK/SDK NuGet packages into driver test projects
Agent-Logs-Url: https://github.com/microsoft/Windows-Driver-Developer-Supplemental-Tools/sessions/7795692b-bc9c-4c2e-a3d3-18f00aed9bcb
Co-authored-by: NateD-MSFT <34494373+NateD-MSFT@users.noreply.github.com>
* Fix stampinf, ApiValidator, and Dvl.exe failures in CI tests
- Remove <Inf> items from KMDFTestTemplate.vcxproj and CppKMDFTestTemplate.vcxproj
so the StampInf MSBuild task is not triggered (stampinf.exe is not available in
a NuGet-only WDK environment). These templates exist solely for CodeQL analysis,
not for building a production driver, so INF stamping is not needed.
- Add <ApiValidatorEnabled>false</ApiValidatorEnabled> to Directory.Build.props.
ApiValidator.exe is not included in the WDK NuGet packages and is not available
in the CI environment. Disabling it allows the ApplicationForDriversTestTemplate
(WindowsApplicationForDrivers10.0 toolset) to compile successfully for CodeQL.
- Update dvl_tests.ps1 to locate Dvl.exe dynamically from the NuGet packages
directory instead of assuming the traditional system WDK install path
C:\Program Files (x86)\Windows Kits\10\Tools\dvl\Dvl.exe. Falls back to the
system path for developer machines with a full WDK install, and gracefully skips
the dvl command-type tests when Dvl.exe is not found in either location.
- Fix typo -test_emtpy -> -test_empty in the second Test-DVL "dvl" call inside
Test-Driver (the typo was previously unreachable because the test exited earlier
due to the Dvl.exe failure).
Agent-Logs-Url: https://github.com/microsoft/Windows-Driver-Developer-Supplemental-Tools/sessions/8484509b-2924-427f-bd9a-63e365e4b404
Co-authored-by: NateD-MSFT <34494373+NateD-MSFT@users.noreply.github.com>
* plan: fix ApiValidator and parallelize test runner
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>
* 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>
* Parallelize test-query-health and test-codeql-latest-vs-current jobs
Agent-Logs-Url: https://github.com/microsoft/Windows-Driver-Developer-Supplemental-Tools/sessions/694e9d3d-f942-4564-8e96-8af21abeb87a
Co-authored-by: NateD-MSFT <34494373+NateD-MSFT@users.noreply.github.com>
* Fix LNK1318 mspdbsrv race; wire --jobs into workflow
Agent-Logs-Url: https://github.com/microsoft/Windows-Driver-Developer-Supplemental-Tools/sessions/694e9d3d-f942-4564-8e96-8af21abeb87a
Co-authored-by: NateD-MSFT <34494373+NateD-MSFT@users.noreply.github.com>
* Pipeline tweaks: progress log, parallel query compile, scoped pack-version gate, broader publish needs
Agent-Logs-Url: https://github.com/microsoft/Windows-Driver-Developer-Supplemental-Tools/sessions/96f4dbad-dab0-45e8-9a14-94efd2c96d27
Co-authored-by: NateD-MSFT <34494373+NateD-MSFT@users.noreply.github.com>
---------
Signed-off-by: NateD-MSFT <34494373+NateD-MSFT@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NateD-MSFT <34494373+NateD-MSFT@users.noreply.github.com>
1 parent 7b7ed40 commit d6ed965
7 files changed
Lines changed: 313 additions & 52 deletions
File tree
- .github/workflows
- src/drivers/test
- TestTemplates
- CppKMDFTestTemplate
- KMDFTestTemplate
- dvl_tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 59 | + | |
64 | 60 | | |
65 | 61 | | |
66 | 62 | | |
67 | | - | |
| 63 | + | |
68 | 64 | | |
69 | 65 | | |
70 | 66 | | |
71 | | - | |
72 | 67 | | |
73 | 68 | | |
74 | 69 | | |
| |||
111 | 106 | | |
112 | 107 | | |
113 | 108 | | |
| 109 | + | |
114 | 110 | | |
115 | 111 | | |
116 | 112 | | |
117 | 113 | | |
118 | 114 | | |
119 | 115 | | |
120 | 116 | | |
| 117 | + | |
121 | 118 | | |
122 | 119 | | |
123 | 120 | | |
| |||
127 | 124 | | |
128 | 125 | | |
129 | 126 | | |
130 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
131 | 136 | | |
132 | | - | |
| 137 | + | |
133 | 138 | | |
134 | 139 | | |
135 | 140 | | |
136 | 141 | | |
137 | 142 | | |
138 | 143 | | |
139 | 144 | | |
140 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
141 | 151 | | |
142 | 152 | | |
143 | 153 | | |
144 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
145 | 159 | | |
146 | 160 | | |
147 | | - | |
148 | 161 | | |
149 | 162 | | |
150 | 163 | | |
| |||
153 | 166 | | |
154 | 167 | | |
155 | 168 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | 169 | | |
161 | 170 | | |
162 | 171 | | |
| |||
194 | 203 | | |
195 | 204 | | |
196 | 205 | | |
| 206 | + | |
197 | 207 | | |
198 | 208 | | |
199 | 209 | | |
200 | 210 | | |
201 | 211 | | |
202 | 212 | | |
203 | 213 | | |
| 214 | + | |
204 | 215 | | |
205 | 216 | | |
206 | 217 | | |
| |||
210 | 221 | | |
211 | 222 | | |
212 | 223 | | |
213 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
214 | 233 | | |
215 | | - | |
| 234 | + | |
216 | 235 | | |
217 | 236 | | |
218 | 237 | | |
219 | 238 | | |
220 | 239 | | |
221 | 240 | | |
222 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
223 | 247 | | |
224 | 248 | | |
225 | 249 | | |
| |||
230 | 254 | | |
231 | 255 | | |
232 | 256 | | |
233 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
234 | 264 | | |
235 | 265 | | |
236 | 266 | | |
| |||
272 | 302 | | |
273 | 303 | | |
274 | 304 | | |
275 | | - | |
276 | 305 | | |
277 | 306 | | |
278 | 307 | | |
| |||
319 | 348 | | |
320 | 349 | | |
321 | 350 | | |
322 | | - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
323 | 364 | | |
324 | 365 | | |
325 | 366 | | |
| |||
| 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 | + | |
| 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 | + | |
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 36 | | |
40 | 37 | | |
41 | 38 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 36 | | |
40 | 37 | | |
41 | 38 | | |
| |||
0 commit comments