Commit 6d2de35
committed
fix(BG0575): the Windows control reads its own fixture, so the PowerShell half can actually be verified
The `windows-smoke` step added for BG0575 failed on its first real run, in the green control:
Failed to reach .../v9.9.9/sdlc-studio-v9.9.9.zip - a transport error, not a missing
asset. Refusing to fall back to an unverified download. Cannot bind argument to
parameter 'Path' because it is null.
The function shadow worked - `install.ps1` did call the stub rather than the real
`Invoke-WebRequest`. What did not work is `$script:`: once `install.ps1` is invoked with `&` it
is its own script, and the stub's `$script:AssetZip` resolved against THAT scope rather than the
step's, so it read null, `Copy-Item` threw, and `install.ps1` correctly reported a transport
error. The installer behaved exactly as designed; the fixture was lying to it.
Rescoped to `$global:`, which is unambiguous across an invoked script boundary.
Worth recording rather than fixing quietly: the fix review predicted this exact area and asked
whether the shadow would apply. It does. I checked the half that was raised and not the half
beside it - the variables - which is the shape of LL0052.
BG0575 stays OPEN until this step reports green. Its Verification depth says the PowerShell half
must be demonstrated green-and-red in CI before the bug closes, and a bug closed against its own
recorded criterion is worth less than one left open.
Refs: BG05751 parent 23501bc commit 6d2de35
1 file changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
| 233 | + | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
283 | | - | |
| 282 | + | |
284 | 283 | | |
285 | 284 | | |
286 | 285 | | |
| |||
0 commit comments