From c15bb918e8ed270ffb5af005a98528fcd8c962a8 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Thu, 26 Feb 2026 13:56:10 +0200 Subject: [PATCH] Set CI RunTests command retries default to 0, use 3 only for running unit tests. --- Tools/Sources/Commands/CI/RunTests.swift | 2 +- Tools/Sources/Commands/CI/UnitTests.swift | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Tools/Sources/Commands/CI/RunTests.swift b/Tools/Sources/Commands/CI/RunTests.swift index ab77ce809..ea8363fac 100644 --- a/Tools/Sources/Commands/CI/RunTests.swift +++ b/Tools/Sources/Commands/CI/RunTests.swift @@ -25,7 +25,7 @@ struct RunTests: AsyncParsableCommand { var osVersion = "26.1" @Option(help: "Number of times to retry failed tests. Only the failing tests are re-run, not the entire suite.") - var retries = 3 + var retries = 0 @Option(help: "When set, create a simulator with this name if one doesn't already exist.") var createSimulatorName: String? diff --git a/Tools/Sources/Commands/CI/UnitTests.swift b/Tools/Sources/Commands/CI/UnitTests.swift index 71f132ffe..a9e69f78d 100644 --- a/Tools/Sources/Commands/CI/UnitTests.swift +++ b/Tools/Sources/Commands/CI/UnitTests.swift @@ -23,7 +23,8 @@ struct UnitTests: AsyncParsableCommand { try await RunTests.parse([ "--scheme", "UnitTests", "--device", device, - "--os-version", osVersion + "--os-version", osVersion, + "--retries", "3" ]).run() } catch { failures.append("Unit tests failed: \(error)")