git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/5] gitlab-ci: dedup instructions to disable realtime monitoring

From
Patrick Steinhardt <ps@pks.im>
Date
Oct 2, 2025, 11:04 UTC
Message-ID
<20251002-pks-gitlab-ci-windows-improvements-v1-1-6a8b6b45d728@pks.im>
In-Reply-To
<20251002-pks-gitlab-ci-windows-improvements-v1-0-6a8b6b45d728@pks.im>

The instruction to disable realtime monitoring are shared across all of our Windows-based jobs. Deduplicate it so that we can more readily iterate on it.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
---
 .gitlab-ci.yml | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cf122e706f..552c033fb0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -112,6 +112,9 @@ test:osx:
       - t/failed-test-artifacts
     when: on_failure
 
+.windows_before_script: &windows_before_script
+  - Set-MpPreference -DisableRealtimeMonitoring $true
+
 build:mingw64:
   stage: build
   tags:
@@ -119,7 +122,7 @@ build:mingw64:
   variables:
     NO_PERL: 1
   before_script:
-    - Set-MpPreference -DisableRealtimeMonitoring $true
+    - *windows_before_script
     - ./ci/install-sdk.ps1 -directory "git-sdk"
   script:
     - git-sdk/usr/bin/bash.exe -l -c 'ci/make-test-artifacts.sh artifacts'
@@ -136,7 +139,7 @@ test:mingw64:
     - job: "build:mingw64"
       artifacts: true
   before_script:
-    - Set-MpPreference -DisableRealtimeMonitoring $true
+    - *windows_before_script
     - git-sdk/usr/bin/bash.exe -l -c 'tar xf artifacts/artifacts.tar.gz'
     - New-Item -Path .git/info -ItemType Directory
     - New-Item .git/info/exclude -ItemType File -Value "/git-sdk"
@@ -150,7 +153,7 @@ test:mingw64:
   tags:
     - saas-windows-medium-amd64
   before_script:
-    - Set-MpPreference -DisableRealtimeMonitoring $true
+    - *windows_before_script
     - choco install -y git meson ninja openssl
     - Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
     - refreshenv
-- 
2.51.0.700.g236ee7b076.dirty
Previous: Patrick SteinhardtNext: Patrick Steinhardt
Message 2 of 10 in “gitlab-ci: some fixes for failures on Windows”
  1. 0/5 gitlab-ci: some fixes for failures on WindowsPatrick Steinhardt, Oct 2, 2025
  2. 1/5 gitlab-ci: dedup instructions to disable realtime monitoringPatrick Steinhardt, Oct 2, 2025
  3. 2/5 gitlab-ci: ignore failures to disable realtime monitoringPatrick Steinhardt, Oct 2, 2025
  4. 3/5 gitlab-ci: drop workaround for Python certificate store on WindowsPatrick Steinhardt, Oct 2, 2025
  5. Toon ClaesOct 6, 2025
  6. 4/5 gitlab-ci: upload Meson test logs as JUnit reportsPatrick Steinhardt, Oct 2, 2025
  7. 5/5 t8020: fix test failure due to indeterministic tag sortingPatrick Steinhardt, Oct 2, 2025
  8. Kristoffer HaugsbakkOct 2, 2025
  9. Patrick SteinhardtOct 2, 2025
  10. Toon ClaesOct 6, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.