bazel: give //:CSQLite a module map so the sqlite3mc codec tests build on Linux #146
No reviewers
Labels
No labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
key-store/key.store!146
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/w6-swift-core-csqlite"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes the swift-core Linux lane (run 18571):
//:CSQLitegets aswift_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_tests5/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
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>