Skip to content

The agent that grows with you

ci(wine2e): run the long-paths-off PM proof even when an earlier lane fails

alt-glitch7ab657a06b76
diff --git a/.github/workflows/windows-venv-e2e.yml b/.github/workflows/windows-venv-e2e.yml
index 1c5abca933f..2afe5681299 100644
--- a/.github/workflows/windows-venv-e2e.yml
+++ b/.github/workflows/windows-venv-e2e.yml
@@ -85,7 +85,9 @@ jobs:
# The runner image turns LongPathsEnabled on; 0 is the Windows default
# most users have. A process reads the value when it starts, so only
# later steps see it. Keep this step after every lane that expects the
- # image's setting.
+ # image's setting. It does not depend on those lanes passing.
+ id: long_paths_off
+ if: ${{ !cancelled() }}
shell: pwsh
run: |
reg add 'HKLM\SYSTEM\CurrentControlSet\Control\FileSystem' /v LongPathsEnabled /t REG_DWORD /d 0 /f
@@ -96,6 +98,7 @@ jobs:
# The test first asserts RtlAreLongPathsEnabled() is false in its own
# process, so this step cannot pass if the step above did not take.
# ``-m`` replaces pyproject's addopts, which deselect ``integration``.
+ if: ${{ !cancelled() && steps.long_paths_off.outcome == 'success' }}
shell: bash
run: |
set -uo pipefail