Fix build errors in ComposeOrchestrator network attachment and container config - #15
Conversation
Co-authored-by: djpfs <43576725+djpfs@users.noreply.github.com>
|
Corrija isso @copilot [129/136] Emitting module ComposeEngine |
djpfs
left a comment
There was a problem hiding this comment.
Resolva os problemas no Build da pipeline
…erConfiguration init Co-authored-by: djpfs <43576725+djpfs@users.noreply.github.com>
Fixed in the latest commit. |
djpfs
left a comment
There was a problem hiding this comment.
Erro nvoamente
Test Case '-[DockerShimTests.DockerShimTests testSecretCreateCommand]' started.
/Users/runner/work/Macker/Macker/Tests/DockerShimTests/DockerShimTests.swift:114: error: -[DockerShimTests.DockerShimTests testSecretCreateCommand] : XCTAssertEqual failed: ("["db-pass"]") is not equal to ("["db-pass", "-"]")
Test Case '-[DockerShimTests.DockerShimTests testSecretCreateCommand]' failed (0.316 seconds).
Test Suite 'DockerShimTests' failed at 2026-08-14 16:18:56.908.
Executed 19 tests, with 1 failure (0 unexpected) in 0.319 (0.319) seconds
Test Suite 'HotReloadServiceTests' started at 2026-08-14 16:18:56.908.
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testBatchesByContainer]' started.
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testBatchesByContainer]' passed (0.001 seconds).
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testContentChangeFlags]' started.
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testContentChangeFlags]' passed (0.000 seconds).
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testIgnoresMetadataOnlyChanges]' started.
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testIgnoresMetadataOnlyChanges]' passed (0.000 seconds).
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testIgnoresPathsOutsideMounts]' started.
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testIgnoresPathsOutsideMounts]' passed (0.000 seconds).
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testMapHostPathToContainerPath]' started.
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testMapHostPathToContainerPath]' passed (0.000 seconds).
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testMapMountRootItself]' started.
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testMapMountRootItself]' passed (0.000 seconds).
Test Suite 'HotReloadServiceTests' passed at 2026-08-14 16:18:56.910.
Executed 6 tests, with 0 failures (0 unexpected) in 0.002 (0.002) seconds
Test Suite 'IntegrationTests' started at 2026-08-14 16:18:56.910.
Test Case '-[IntegrationTests.IntegrationTests testNetworkList]' started.
/Users/runner/work/Macker/Macker/Tests/IntegrationTests/IntegrationTests.swift:16: -[IntegrationTests.IntegrationTests testNetworkList] : Test skipped - container runtime not available (set APPLE_CONTAINER_RUNTIME=1)
Test Case '-[IntegrationTests.IntegrationTests testNetworkList]' skipped (0.001 seconds).
Test Case '-[IntegrationTests.IntegrationTests testPing]' started.
/Users/runner/work/Macker/Macker/Tests/IntegrationTests/IntegrationTests.swift:16: -[IntegrationTests.IntegrationTests testPing] : Test skipped - container runtime not available (set APPLE_CONTAINER_RUNTIME=1)
Test Case '-[IntegrationTests.IntegrationTests testPing]' skipped (0.000 seconds).
Test Suite 'IntegrationTests' passed at 2026-08-14 16:18:56.911.
Executed 2 tests, with 2 tests skipped and 0 failures (0 unexpected) in 0.001 (0.001) seconds
Test Suite 'KernelModelTests' started at 2026-08-14 16:18:56.911.
Test Case '-[ContainerBackendTests.KernelModelTests testKernelRoundTrip]' started.
Test Case '-[ContainerBackendTests.KernelModelTests testKernelRoundTrip]' passed (0.001 seconds).
Test Case '-[ContainerBackendTests.KernelModelTests testPlatformDescription]' started.
Test Case '-[ContainerBackendTests.KernelModelTests testPlatformDescription]' passed (0.000 seconds).
Test Case '-[ContainerBackendTests.KernelModelTests testSystemPlatformJSONKeyNames]' started.
Test Case '-[ContainerBackendTests.KernelModelTests testSystemPlatformJSONKeyNames]' passed (0.000 seconds).
Test Suite 'KernelModelTests' passed at 2026-08-14 16:18:56.913.
Executed 3 tests, with 0 failures (0 unexpected) in 0.001 (0.001) seconds
Test Suite 'SecurityHardeningTests' started at 2026-08-14 16:18:56.913.
Test Case '-[ContainerBackendTests.SecurityHardeningTests testContainerConfigurationDefaultsSecurityFields]' started.
Test Case '-[ContainerBackendTests.SecurityHardeningTests testContainerConfigurationDefaultsSecurityFields]' passed (0.002 seconds).
Test Case '-[ContainerBackendTests.SecurityHardeningTests testParseTrivyReport]' started.
Test Case '-[ContainerBackendTests.SecurityHardeningTests testParseTrivyReport]' passed (0.000 seconds).
Test Case '-[ContainerBackendTests.SecurityHardeningTests testResolveEnvironmentFromKeychainReference]' started.
Test Case '-[ContainerBackendTests.SecurityHardeningTests testResolveEnvironmentFromKeychainReference]' passed (0.000 seconds).
Test Case '-[ContainerBackendTests.SecurityHardeningTests testResolveEnvironmentThrowsWhenSecretMissing]' started.
Test Case '-[ContainerBackendTests.SecurityHardeningTests testResolveEnvironmentThrowsWhenSecretMissing]' passed (0.000 seconds).
Test Suite 'SecurityHardeningTests' passed at 2026-08-14 16:18:56.915.
Executed 4 tests, with 0 failures (0 unexpected) in 0.002 (0.003) seconds
Test Suite 'XPCMessageTests' started at 2026-08-14 16:18:56.915.
Test Case '-[ContainerBackendTests.XPCMessageTests testJSONRoundTrip]' started.
Test Case '-[ContainerBackendTests.XPCMessageTests testJSONRoundTrip]' passed (0.000 seconds).
Test Case '-[ContainerBackendTests.XPCMessageTests testSetAndGetBool]' started.
Test Case '-[ContainerBackendTests.XPCMessageTests testSetAndGetBool]' passed (0.000 seconds).
Test Case '-[ContainerBackendTests.XPCMessageTests testSetAndGetData]' started.
Test Case '-[ContainerBackendTests.XPCMessageTests testSetAndGetData]' passed (0.000 seconds).
Test Case '-[ContainerBackendTests.XPCMessageTests testSetAndGetString]' started.
Test Case '-[ContainerBackendTests.XPCMessageTests testSetAndGetString]' passed (0.000 seconds).
Test Suite 'XPCMessageTests' passed at 2026-08-14 16:18:56.916.
Executed 4 tests, with 0 failures (0 unexpected) in 0.001 (0.001) seconds
Test Suite 'mackerPackageTests.xctest' failed at 2026-08-14 16:18:56.916.
Executed 77 tests, with 2 tests skipped and 1 failure (0 unexpected) in 0.353 (0.356) seconds
Test Suite 'All tests' failed at 2026-08-14 16:18:56.916.
Executed 77 tests, with 2 tests skipped and 1 failure (0 unexpected) in 0.353 (0.357) seconds
◇ Test run started.
↳ Testing Library Version: 124.4
↳ Target Platform: arm64e-apple-macos14.0
✔ Test run with 0 tests passed after 0.001 seconds.
Error: Process completed with exit code 1.
djpfs
left a comment
There was a problem hiding this comment.
rro nvoamente
Test Case '-[DockerShimTests.DockerShimTests testSecretCreateCommand]' started.
/Users/runner/work/Macker/Macker/Tests/DockerShimTests/DockerShimTests.swift:114: error: -[DockerShimTests.DockerShimTests testSecretCreateCommand] : XCTAssertEqual failed: ("["db-pass"]") is not equal to ("["db-pass", "-"]")
Test Case '-[DockerShimTests.DockerShimTests testSecretCreateCommand]' failed (0.316 seconds).
Test Suite 'DockerShimTests' failed at 2026-08-14 16:18:56.908.
Executed 19 tests, with 1 failure (0 unexpected) in 0.319 (0.319) seconds
Test Suite 'HotReloadServiceTests' started at 2026-08-14 16:18:56.908.
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testBatchesByContainer]' started.
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testBatchesByContainer]' passed (0.001 seconds).
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testContentChangeFlags]' started.
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testContentChangeFlags]' passed (0.000 seconds).
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testIgnoresMetadataOnlyChanges]' started.
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testIgnoresMetadataOnlyChanges]' passed (0.000 seconds).
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testIgnoresPathsOutsideMounts]' started.
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testIgnoresPathsOutsideMounts]' passed (0.000 seconds).
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testMapHostPathToContainerPath]' started.
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testMapHostPathToContainerPath]' passed (0.000 seconds).
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testMapMountRootItself]' started.
Test Case '-[HotReloadServiceTests.HotReloadServiceTests testMapMountRootItself]' passed (0.000 seconds).
Test Suite 'HotReloadServiceTests' passed at 2026-08-14 16:18:56.910.
Executed 6 tests, with 0 failures (0 unexpected) in 0.002 (0.002) seconds
Test Suite 'IntegrationTests' started at 2026-08-14 16:18:56.910.
Test Case '-[IntegrationTests.IntegrationTests testNetworkList]' started.
/Users/runner/work/Macker/Macker/Tests/IntegrationTests/IntegrationTests.swift:16: -[IntegrationTests.IntegrationTests testNetworkList] : Test skipped - container runtime not available (set APPLE_CONTAINER_RUNTIME=1)
Test Case '-[IntegrationTests.IntegrationTests testNetworkList]' skipped (0.001 seconds).
Test Case '-[IntegrationTests.IntegrationTests testPing]' started.
/Users/runner/work/Macker/Macker/Tests/IntegrationTests/IntegrationTests.swift:16: -[IntegrationTests.IntegrationTests testPing] : Test skipped - container runtime not available (set APPLE_CONTAINER_RUNTIME=1)
Test Case '-[IntegrationTests.IntegrationTests testPing]' skipped (0.000 seconds).
Test Suite 'IntegrationTests' passed at 2026-08-14 16:18:56.911.
Executed 2 tests, with 2 tests skipped and 0 failures (0 unexpected) in 0.001 (0.001) seconds
Test Suite 'KernelModelTests' started at 2026-08-14 16:18:56.911.
Test Case '-[ContainerBackendTests.KernelModelTests testKernelRoundTrip]' started.
Test Case '-[ContainerBackendTests.KernelModelTests testKernelRoundTrip]' passed (0.001 seconds).
Test Case '-[ContainerBackendTests.KernelModelTests testPlatformDescription]' started.
Test Case '-[ContainerBackendTests.KernelModelTests testPlatformDescription]' passed (0.000 seconds).
Test Case '-[ContainerBackendTests.KernelModelTests testSystemPlatformJSONKeyNames]' started.
Test Case '-[ContainerBackendTests.KernelModelTests testSystemPlatformJSONKeyNames]' passed (0.000 seconds).
Test Suite 'KernelModelTests' passed at 2026-08-14 16:18:56.913.
Executed 3 tests, with 0 failures (0 unexpected) in 0.001 (0.001) seconds
Test Suite 'SecurityHardeningTests' started at 2026-08-14 16:18:56.913.
Test Case '-[ContainerBackendTests.SecurityHardeningTests testContainerConfigurationDefaultsSecurityFields]' started.
Test Case '-[ContainerBackendTests.SecurityHardeningTests testContainerConfigurationDefaultsSecurityFields]' passed (0.002 seconds).
Test Case '-[ContainerBackendTests.SecurityHardeningTests testParseTrivyReport]' started.
Test Case '-[ContainerBackendTests.SecurityHardeningTests testParseTrivyReport]' passed (0.000 seconds).
Test Case '-[ContainerBackendTests.SecurityHardeningTests testResolveEnvironmentFromKeychainReference]' started.
Test Case '-[ContainerBackendTests.SecurityHardeningTests testResolveEnvironmentFromKeychainReference]' passed (0.000 seconds).
Test Case '-[ContainerBackendTests.SecurityHardeningTests testResolveEnvironmentThrowsWhenSecretMissing]' started.
Test Case '-[ContainerBackendTests.SecurityHardeningTests testResolveEnvironmentThrowsWhenSecretMissing]' passed (0.000 seconds).
Test Suite 'SecurityHardeningTests' passed at 2026-08-14 16:18:56.915.
Executed 4 tests, with 0 failures (0 unexpected) in 0.002 (0.003) seconds
Test Suite 'XPCMessageTests' started at 2026-08-14 16:18:56.915.
Test Case '-[ContainerBackendTests.XPCMessageTests testJSONRoundTrip]' started.
Test Case '-[ContainerBackendTests.XPCMessageTests testJSONRoundTrip]' passed (0.000 seconds).
Test Case '-[ContainerBackendTests.XPCMessageTests testSetAndGetBool]' started.
Test Case '-[ContainerBackendTests.XPCMessageTests testSetAndGetBool]' passed (0.000 seconds).
Test Case '-[ContainerBackendTests.XPCMessageTests testSetAndGetData]' started.
Test Case '-[ContainerBackendTests.XPCMessageTests testSetAndGetData]' passed (0.000 seconds).
Test Case '-[ContainerBackendTests.XPCMessageTests testSetAndGetString]' started.
Test Case '-[ContainerBackendTests.XPCMessageTests testSetAndGetString]' passed (0.000 seconds).
Test Suite 'XPCMessageTests' passed at 2026-08-14 16:18:56.916.
Executed 4 tests, with 0 failures (0 unexpected) in 0.001 (0.001) seconds
Test Suite 'mackerPackageTests.xctest' failed at 2026-08-14 16:18:56.916.
Executed 77 tests, with 2 tests skipped and 1 failure (0 unexpected) in 0.353 (0.356) seconds
Test Suite 'All tests' failed at 2026-08-14 16:18:56.916.
Executed 77 tests, with 2 tests skipped and 1 failure (0 unexpected) in 0.353 (0.357) seconds
◇ Test run started.
↳ Testing Library Version: 124.4
↳ Target Platform: arm64e-apple-macos14.0
✔ Test run with 0 tests passed after 0.001 seconds.
Error: Process completed with exit code 1.
…of positional Co-authored-by: djpfs <43576725+djpfs@users.noreply.github.com>
Two compile errors in
ComposeOrchestrator.swiftwere breaking the macOS CI build.Changes
returninmapclosure —AttachmentConfiguration(...)was constructed but not returned, causing the closure to returnVoidandnetworksto be inferred as[()]instead of[AttachmentConfiguration]ContainerConfigurationinitializer —useInit:was placed afterprivileged:, violating the declared parameter order