bazel: give //:CSQLite a module map so the sqlite3mc codec tests build on Linux #146

Merged
founder merged 1 commit from claude/w6-swift-core-csqlite into main 2026-08-19 06:45:57 +00:00
Owner

Fixes the swift-core Linux lane (run 18571): //:CSQLite gets a swift_interop_hint (checked-in module map) + aspect_hints; the two sqlite3mc codec tests get the sqlite3mc copts for rules_swift's generated discovery runner; CodecMigratorTests stops rewriting checked-in fixtures. Verified on the forge: //:swift_core_linux_tests 5/5, hermetic sandboxed rerun green.

Note: consumer action keys change on Apple too (one-time remote-cache miss downstream of //:key_store_sqlite). Workflow-orchestrated + adversarially reviewed (LAND).

🤖 Generated with Claude Code

Fixes the swift-core Linux lane (run 18571): `//:CSQLite` gets a `swift_interop_hint` (checked-in module map) + `aspect_hints`; the two sqlite3mc codec tests get the sqlite3mc copts for rules_swift's generated discovery runner; CodecMigratorTests stops rewriting checked-in fixtures. Verified on the forge: `//:swift_core_linux_tests` 5/5, hermetic sandboxed rerun green. Note: consumer action keys change on Apple too (one-time remote-cache miss downstream of `//:key_store_sqlite`). Workflow-orchestrated + adversarially reviewed (LAND). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bazel: give //:CSQLite a module map so the sqlite3mc codec tests build on Linux
Some checks failed
Namespace: Build Images / Refresh macOS runner lane (push) Successful in 3s
Release: If Needed / Check (Release Needed) (push) Has been cancelled
Deploy: Web / Deploy (Web) (push) Has been cancelled
Deploy: API / Deploy (API) (push) Has been cancelled
Build: Web / Build (Web) (push) Has been cancelled
Build: Apple / Check (SwiftLint) (push) Has been cancelled
Build: Apple / Build (iOS) (push) Has been cancelled
Build: Apple / Build (macOS) (push) Has been cancelled
Build: Apple / Build (visionOS) (push) Has been cancelled
Namespace: Build Images / Refresh Linux runner image (push) Successful in 43s
Namespace: Build Images / Refresh macOS Nix snapshot application (push) Has been cancelled
Build: sqlite3mc / sqlite3mc smoke (Linux x86_64) (push) Successful in 50s
Build: sqlite3mc / sqlite3mc smoke (Linux x86_64) (pull_request) Successful in 52s
Build: sqlite3mc / sqlite3mc smoke (macOS) (pull_request) Has been skipped
Build: sqlite3mc / sqlite3mc smoke (macOS) (push) Successful in 36s
Build: Apple / Build (visionOS) (pull_request) Has been skipped
Build: Web / Build (Web) (pull_request) Successful in 4m49s
Build: Apple / Check (SwiftLint) (pull_request) Failing after 2m41s
Build: Apple / Build (iOS) (pull_request) Has been skipped
Build: Apple / Build (macOS) (pull_request) Has been skipped
Build: Linux / Build (Linux x86_64) (pull_request) Successful in 7m21s
Build: Linux / Build (keystore-forge x86_64) (pull_request) Has been skipped
Build: Linux / Build (Linux x86_64) (push) Successful in 7m8s
Build: Linux / Build (keystore-forge x86_64) (push) Has been skipped
6c687e3cf4
build-swift-core-rbe (run 18571) failed with "SwiftSymbolGraphExtract ...
missing required module 'CSQLite'" for //:key_store_sqlite_codec_tests and
//:key_store_sqlite_codec_migration_tests. Three stacked causes:

1. //:CSQLite is a plain cc_library; rules_swift 3.6.1 gives it no module
   map, so no consumer action carried -Xcc -fmodule-map-file. SwiftCompile
   only worked because the persistent worker runs unsandboxed and clang's
   implicit search finds the checked-in module.modulemap; the sandboxed
   symbol-graph extraction (Linux XCTest discovery) does not. Fix:
   swift_interop_hint reusing Packages/KeyStorePersistence/Sources/CSQLite/
   module.modulemap + aspect_hints on //:CSQLite; every consumer now gets
   the map and the CSQLite/sqlite3mc headers as declared inputs.
2. swift_test's generated discovery runner is compiled without the deps'
   CcInfo, so the C module could not be built there ('sqlite3.h' not
   found): SQLITE3MC_SWIFT_TEST_COPTS on the two tests.
3. CodecMigratorTests rewrote its checked-in fixtures in place; copy them
   into a temp dir first.

Verified on the forge (x86_64-linux): //:swift_core_linux_tests 5/5 pass,
hermetic sandboxed rerun of both codec targets passes, tree stays clean;
no-system-sqlite / sqlite3mc-flags-consistency checks ok.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
founder deleted branch claude/w6-swift-core-csqlite 2026-08-19 06:45:57 +00:00
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
key-store/key.store!146
No description provided.