diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-10-02 13:04:37 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-10-02 09:44:41 -0700 |
| commit | e90f6b2b008ceba56a3a83941e50d57c3cb7b4ea (patch) | |
| tree | db5097923be2fbd5c3279a020d5ee55b0e0ac979 | |
| parent | 5c2ebf604249ef522a2fc4db70216ed0c9322f7e (diff) | |
gitlab-ci: ignore failures to disable realtime monitoring
We have recently introduced a change to disable realtime monitoring for
Windows job in GitLab CI. This change led (and still leads) to a quite
significant speedup.
But there's a catch: seemingly, some of the runners we use already have
realtime monitoring disabled. On such a machine, trying to disable the
feature again leads to an error that causes the whole job to fail.
Safeguard against such failures by explicitly ignoring them.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
| -rw-r--r-- | .gitlab-ci.yml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 552c033fb0..ed4dc9db94 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -113,7 +113,10 @@ test:osx: when: on_failure .windows_before_script: &windows_before_script - - Set-MpPreference -DisableRealtimeMonitoring $true + # Disabling realtime monitoring fails on some of the runners, but it + # significantly speeds up test execution in the case where it works. We thus + # try our luck, but ignore any failures. + - Set-MpPreference -DisableRealtimeMonitoring $true; $true build:mingw64: stage: build |
