From 1e52e17c21183f7d54d30617d38c67c9b1b1a906 Mon Sep 17 00:00:00 2001 From: Fedor Korotkov Date: Sat, 11 Apr 2026 22:26:52 -0400 Subject: [PATCH] Move brew completions to post_install (#1227) * Move brew completions to post_install * Reduce Layerizer test disk fixture size to 1GB * Skip registry integration tests on Docker startup failure --- .goreleaser.yml | 4 +++- Tests/TartTests/LayerizerTests.swift | 4 ++-- Tests/TartTests/RegistryTests.swift | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 76fd751..18f4232 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -71,6 +71,8 @@ brews: install: | libexec.install Dir["*"] bin.write_exec_script "#{libexec}/tart.app/Contents/MacOS/tart" - generate_completions_from_executable(libexec/"tart.app/Contents/MacOS/tart", "--generate-completion-script") custom_block: | depends_on :macos => :ventura + def post_install + generate_completions_from_executable(libexec/"tart.app/Contents/MacOS/tart", "--generate-completion-script") + end diff --git a/Tests/TartTests/LayerizerTests.swift b/Tests/TartTests/LayerizerTests.swift index 7ee3f54..ca22abd 100644 --- a/Tests/TartTests/LayerizerTests.swift +++ b/Tests/TartTests/LayerizerTests.swift @@ -14,7 +14,7 @@ final class LayerizerTests: XCTestCase { do { registryRunner = try await RegistryRunner() } catch { - try XCTSkipIf(ProcessInfo.processInfo.environment["CI"] == nil) + try XCTSkip("Registry is unavailable: \(error)") } } @@ -26,7 +26,7 @@ final class LayerizerTests: XCTestCase { func testDiskV2() async throws { // Original disk file to be pushed to the registry - let originalDiskFileURL = try fileWithRandomData(sizeBytes: 5 * 1024 * 1024 * 1024) + let originalDiskFileURL = try fileWithRandomData(sizeBytes: 1 * 1024 * 1024 * 1024) addTeardownBlock { try FileManager.default.removeItem(at: originalDiskFileURL) } diff --git a/Tests/TartTests/RegistryTests.swift b/Tests/TartTests/RegistryTests.swift index dad02ed..b66bb6b 100644 --- a/Tests/TartTests/RegistryTests.swift +++ b/Tests/TartTests/RegistryTests.swift @@ -10,7 +10,7 @@ final class RegistryTests: XCTestCase { do { registryRunner = try await RegistryRunner() } catch { - try XCTSkipIf(ProcessInfo.processInfo.environment["CI"] == nil) + try XCTSkip("Registry is unavailable: \(error)") } }