Skip to content

ci: copy the shared core sources before the Swift package test - #633

Merged
chrispader merged 1 commit into
mainfrom
ci/swiftpm-copy-core-sources
Dec 2, 2026
Merged

chrispader merged 1 commit into
mainfrom
ci/swiftpm-copy-core-sources

Conversation

@chrispader

@chrispader chrispader commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Since the NitroUI restructure, the React Native package gets its C++ and SQLite sources from nitro-sqlite-core during install and build. The "SQLite Swift package configuration" job doesn't install dependencies, so it never ran that copy and its test found no cpp/sqlite/sqlite3.h. All 10 tests failed in the 11.0.0-alpha.0 release checks.

The job now runs prepare-sources.mjs first. That script only uses Node built-ins, so it needs no install. On a fresh checkout of the release commit, the test fails 10 of 10 without this step and passes 10 of 10 with it.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Automated checks for the SQLite Swift package now include the required native source files from the React Native package. This improves coverage of package configuration in the continuous integration workflow; there are no changes to app features or behavior.

The React Native package gets its C++ and SQLite sources from nitro-sqlite-core
since the NitroUI restructure, so the Swift package configuration test found no
sqlite3.h and failed all 10 tests in the 11.0.0-alpha.0 release checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
react-native-nitro-sqlite Ready Ready Preview Dec 2, 2026 4:39am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The swiftpm CI job now copies shared core sources into the React Native package before running the SQLite Swift package configuration test.

Changes: SwiftPM CI source preparation

Layer / File(s) Summary
Prepare sources for the SwiftPM test
.github/workflows/ci.yml
The job copies shared core sources into the React Native package before testing the SQLite Swift package configuration.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Possibly related PRs

  • margelo/nitro-sqlite#610: Moves shared sources into nitro-sqlite-core; this change copies those sources for the Swift test job.

Suggested labels: native-ci

Merge Risk: Minimal · up to 41dac

This change only adds a CI preparation step so the Swift package test can find its sources. It does not affect shipped code, and no merge-blocking risk was found.

Architecture risk: Low · up to 41dac

The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.

The SwiftPM CI job now runs source preparation before configuration testing, allowing the test to use staged shared sources while still depending on the script’s materialization behavior.

Changed areas: None identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title states the main change: the swiftpm CI job now copies the shared C++ and SQLite sources from nitro-sqlite-core before the Swift package test. The raw summary confirms the change to .github/w…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title states the main change: the swiftpm CI job now copies the shared C++ and SQLite sources from nitro-sqlite-core before the Swift package test. The raw summary confirms the change to .github/workflows/ci.yml adds three lines that do this copy step. The PR objectives describe the same step (prepare-sources.mjs) and the same reason (the job skips dependency install, so sources such as cpp/sqlite/sqlite3.h were missing). The title is specific and matches the changeset, and it follows the conventional commit style of the 'ci:' prefix.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between af912dc and 41dacfe.

Files selected for processing: 1

  • .github/workflows/ci.yml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

@chrispader
chrispader merged commit 21e02c2 into main Dec 2, 2026
15 checks passed

This branch was successfully deployed

1 active deployment
Preview — 41dacfec Deployed Dec 2, 2026 by vercel[bot]
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