From 3f2cf1c002a8eb46fa9beb9854c43174b5816e67 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 22 Nov 2025 08:06:26 -0800 Subject: [PATCH] CI: skip test-incremental on Windows Tracked by #22510 --- build.zig | 3 ++- ci/x86_64-windows-debug.ps1 | 1 + ci/x86_64-windows-release.ps1 | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 85c81ebb17..51c4af91db 100644 --- a/build.zig +++ b/build.zig @@ -97,6 +97,7 @@ pub fn build(b: *std.Build) !void { const skip_darwin = b.option(bool, "skip-darwin", "Main test suite skips targets with darwin OSs") orelse false; const skip_linux = b.option(bool, "skip-linux", "Main test suite skips targets with linux OS") orelse false; const skip_llvm = b.option(bool, "skip-llvm", "Main test suite skips targets that use LLVM backend") orelse false; + const skip_test_incremental = b.option(bool, "skip-test-incremental", "Main test step omits dependency on test-incremental step") orelse false; const only_install_lib_files = b.option(bool, "lib-files-only", "Only install library files") orelse false; @@ -609,7 +610,7 @@ pub fn build(b: *std.Build) !void { const test_incremental_step = b.step("test-incremental", "Run the incremental compilation test cases"); try tests.addIncrementalTests(b, test_incremental_step); - test_step.dependOn(test_incremental_step); + if (!skip_test_incremental) test_step.dependOn(test_incremental_step); if (tests.addLibcTests(b, .{ .optimize_modes = optimization_modes, diff --git a/ci/x86_64-windows-debug.ps1 b/ci/x86_64-windows-debug.ps1 index 9349a74547..5cd25e680d 100644 --- a/ci/x86_64-windows-debug.ps1 +++ b/ci/x86_64-windows-debug.ps1 @@ -59,6 +59,7 @@ Write-Output "Main test suite..." -Dstatic-llvm ` -Dskip-non-native ` -Dskip-release ` + -Dskip-test-incremental ` -Denable-symlinks-windows ` --test-timeout 30m CheckLastExitCode diff --git a/ci/x86_64-windows-release.ps1 b/ci/x86_64-windows-release.ps1 index a348c72fe9..900224cf9e 100644 --- a/ci/x86_64-windows-release.ps1 +++ b/ci/x86_64-windows-release.ps1 @@ -58,6 +58,7 @@ Write-Output "Main test suite..." --search-prefix "$PREFIX_PATH" ` -Dstatic-llvm ` -Dskip-non-native ` + -Dskip-test-incremental ` -Denable-symlinks-windows ` --test-timeout 30m CheckLastExitCode