Skip to content

Locate the lock helper by build layout and clear the style residue - #21

Merged
coenttb merged 1 commit into
mainfrom
fleet-green-remediation
Aug 17, 2026
Merged

coenttb merged 1 commit into
mainfrom
fleet-green-remediation

Conversation

@coenttb

@coenttb coenttb commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

What

  • Kernel.Lock Integration probes every known product directory for the _Lock Test Process helper instead of the hard-coded .build/<triple>/<config> path.
  • The central swift-format rule set is applied across Sources and Tests.
  • The six try! sites in the completion tests become try in throwing test functions.

Why

main is red on three independent classes:

  • Apple · macOS — six Kernel.Lock Integration tests fail with The file "_Lock Test Process" doesn't exist. The helper is built; the macOS leg runs through Swift Build, which writes it to .build/out/Products/Debug, while the suite looked only in .build/arm64-apple-macosx/debug. The lookup now tries BUILT_PRODUCTS_DIR, the Swift Build layout, and the SwiftPM-native layouts in turn.
  • Quality · swift-format — 64 strict findings (LineLength, AddLines, UseSynthesizedInitializer, TrailingComma). The two synthesized-initializer findings are fixed by hand; the rest by the formatter.
  • Quality · SwiftLint — six force_try findings.

No product behaviour changes.

The macOS leg builds through Swift Build, which writes products to
.build/out/Products/Debug rather than the SwiftPM-native
.build/<triple>/debug the Kernel.Lock integration suite hard-coded, so
every contention test failed to spawn the helper. Probe each known
product directory instead of one layout.

Also apply the central swift-format rule set and replace the six force
tries in the completion tests with throwing test functions.
@coenttb
coenttb merged commit a04bda3 into main Aug 17, 2026
16 checks passed
@coenttb
coenttb deleted the fleet-green-remediation branch August 17, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant