Skip to content

[BUILD] Update the vendored SQLite to 3.53.1 and use vcpkg's in the Linux and Windows wheels - #10342

Merged
timosachsenberg merged 3 commits into
developfrom
claude/confident-lovelace-muuw2w-wheel-sqlite
Sep 29, 2026
Merged

timosachsenberg merged 3 commits into
developfrom
claude/confident-lovelace-muuw2w-wheel-sqlite

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Description

The release-readiness check of the 2026-09-29 nightly found SQLite 3.49.2 in libOpenMS of all four pyOpenMS wheels (check F6). CVE-2025-6965 (NVD 7.7 HIGH, fixed in 3.50.2) affects that version. The copy is the SQLite amalgamation vendored with SQLiteCpp in src/openms/extern/SQLiteCpp/sqlite3, which every build with USE_EXTERNAL_SQLITECPP=OFF (the default) compiles in. The packages don't have it: they take SQLiteCpp 3.3.3 and SQLite 3.53.1 from vcpkg (ci-base preset).

That nightly was built before the wheels moved to vcpkg. The wheels of develop since #10331 and #10333, as built in the CI of #10292 (cb3ae54), contain:

  • Linux (x86_64 and aarch64): 3.53.1. Both the vendored SQLite and vcpkg's, which the opentims port brings in, are on libOpenMS's link line, and the linker happens to take vcpkg's.
  • Windows and macOS: 3.49.2, the vendored copy.

1. The vendored SQLite is updated to 3.53.1, the version the pinned vcpkg builds.

  • sqlite3.c and sqlite3.h come from sqlite-amalgamation-3530100.zip on sqlite.org. Its sqlite3.c has the SHA3-256 published in the 3.53.1 release notes.
  • The replaced files were byte-identical to the 3.49.2 amalgamation, so no local changes are lost.
  • This covers the macOS wheel, which is built with Homebrew, and every other build without USE_EXTERNAL_SQLITECPP.

2. The Linux and Windows wheels take SQLiteCpp and SQLite from vcpkg, as the packages do: the feature sqlitecpp and USE_EXTERNAL_SQLITECPP=ON in tools/ci/build_openms_manylinux.sh and in the Windows configure step. SQLite then follows the vcpkg baseline in the packages and in these wheels.

  • On Linux, libOpenMS is linked against one SQLite, vcpkg's, instead of two, so which one it contains no longer depends on the link order.
  • On Windows, the wheel gets vcpkg's SQLite. opentims is still fetched and compiled against the vendored sqlite3.h, which is now the same version as vcpkg's library.
  • SQLiteCpp is a private dependency of libOpenMS, and only source files include sqlite3.h, so pyOpenMS needs no change.

With both changes, all four wheels contain SQLite 3.53.1. Neither SQLite build enables FTS5, so CVE-2026-11822 and CVE-2026-11824, which affect FTS5 in 3.53.1, don't apply.

Not covered: sqlite.org's current patch release is 3.53.4, with fixes made after 3.53.1. Moving to it would also need a vcpkg override so that the packages match; this PR stays with the version the packages ship.

Validation

  • SQLiteCpp 3.3.3's own unit tests (SQLITECPP_BUILD_TESTS) against the 3.53.1 amalgamation: 49 of 49 pass, and SQLiteCpp and SQLite compile without warnings (GCC 13.3).
  • Local Release build with the 3.53.1 amalgamation and the default USE_EXTERNAL_SQLITECPP=OFF (Ubuntu 24.04, GCC 13.3, develop 9eb5c17; the tree also had [BUILD] Ship the third-party licenses with packages and wheels; drop ProteoWizard and SpectraST #10292, which doesn't touch SQLite):
    • libOpenMS contains one SQLite source id, 3.53.1's 2026-05-05 10:34:17 c88b2201…, and no dynamic libsqlite3.
    • The 27 class tests of the code that uses SQLite pass: SqliteConnector, MzMLSqliteHandler, MzMLSqliteSwathHandler, SqMassFile, SpectrumAccessSqMass, OSWFile, OSWData, OMSFile, TransitionPQPFile, OpenSwathOSWWriter, BrukerTimsFile, FileHandler and others.
    • The 379 TOPP tests of the 12 tools that read or write sqMass, OSW, PQP or OMS files pass. The tools are OpenSwathWorkflow, OpenSwathAssayGenerator, OpenSwathDecoyGenerator, TargetedFileConverter, FileConverter, IDFileConverter, FileInfo, OpenSwathMzMLFileCacher, OpenSwathFileSplitter, OpenSwathInfer, OpenSwathExport and OpenSwathPercolatorScoring.
  • A reduced build of this branch in a separate session emulates the external configuration without vcpkg, which could not fetch its sources there. SQLiteCpp 3.3.3 and SQLite 3.53.1 are built from source as static libraries, with USE_EXTERNAL_SQLITECPP=ON. opentims is fetched and compiled against the vendored sqlite3.h, as in the Windows wheel (Ubuntu 24.04, GCC 13.3). Results:
    • libOpenMS contains one SQLite source id, 3.53.1's, and no dynamic libsqlite3. The link lines reference only the external libsqlite3.a.
    • 18 SQLite-related class tests and 89 TOPP tests pass: every test that uses sqMass, OSW, PQP or OMS files, with the tests they depend on.
    • pyOpenMS builds, and its full test suite passes (6571 passed, 19 skipped, 10 xfailed, 7 xpassed). Round trips from Python (sqMass store and load, PQP read and write) work.
  • The SQLite versions above come from the sqlite_source_id strings in libOpenMS of [BUILD] Ship the third-party licenses with packages and wheels; drop ProteoWizard and SpectraST #10292's CI wheels (3.53.1: 2026-05-05 10:34:17 c88b2201…, 3.49.2: 2025-05-07 10:39:52 17144570…).
  • CI wheels of b2a8328. The run was cancelled at 16:02 UTC by the merge of develop, after the Linux wheels were built.
    • Linux x86_64 and aarch64: configure used vcpkg's SQLiteCpp (External 'SQLiteCpp' at: '/project/vcpkg_installed/x64-linux/share/sqlitecpp') and added vcpkg's sqlite3 to opentims. libOpenMS contains one SQLite source id, 3.53.1's, and auditwheel grafted no SQLite.
    • Windows: vcpkg installed sqlite3 3.53.1 and sqlitecpp 3.3.3 for x64-windows-static-md-release. Configure found SQLiteCpp in vcpkg_installed and fetched opentims. The build had compiled 589 of 795 steps without an error when it was cancelled.
    • macOS: cancelled before the build.
  • CI wheels of 36e1604, which merges develop. In each of the four wheels, libOpenMS contains one SQLite source id, 3.53.1's, and no wheel bundles or references a dynamic libsqlite3.
    • Linux x86_64 and aarch64: pyopenms.libs/libOpenMS-*.so.
    • Windows: vcpkg installed sqlite3 3.53.1 and SQLiteCpp 3.3.3 for x64-windows-static-md-release, configure used vcpkg's SQLiteCpp (External 'SQLiteCpp' at: '.../vcpkg_installed/x64-windows-static-md-release/share/SQLiteCpp'), and the build compiled no vendored sqlite3.c. The library is pyopenms.libs/OpenMS-*.dll.
    • macOS, which keeps the vendored amalgamation: pyopenms/.dylibs/libOpenMS.dylib.
  • CI on 36e1604 is green: the four wheels build, and their tests pass on Linux (x86_64 and aarch64), Windows and macOS for Python 3.11 to 3.14. build-and-test passes on Windows, on macOS and on Linux with g++ (x86_64 and aarch64) and clang++.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

src/openms/extern/SQLiteCpp/sqlite3 held the amalgamation of SQLite
3.49.2, which CVE-2025-6965 (NVD 7.7 HIGH, fixed in 3.50.2) affects.
Builds with USE_EXTERNAL_SQLITECPP=OFF, the default, compile it into
libOpenMS; the release-readiness check of the 2026-09-29 nightly found it
in all four pyOpenMS wheels.

sqlite3.c and sqlite3.h are those of sqlite-amalgamation-3530100.zip from
sqlite.org; its sqlite3.c has the SHA3-256 that the 3.53.1 release notes
publish (414432ae5719f6cdc485f3927e12c7ad107e2b8c6b434e5df2eadb5312bfabb5).
3.53.1 is the version the pinned vcpkg builds for the packages. The
replaced files were identical to the 3.49.2 amalgamation, so no local
changes are lost.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7
… SQLite

The packages and the main CI take SQLiteCpp and SQLite from vcpkg
(USE_EXTERNAL_SQLITECPP and the feature sqlitecpp in the ci-base preset).
The Linux and Windows wheels, built with vcpkg since #10331 and #10333,
still compiled the copies vendored in src/openms/extern; they now do the
same as the packages, so SQLite follows the vcpkg baseline in all of them.

On Linux the opentims port links vcpkg's SQLite, so libOpenMS was linked
against the vendored SQLite and vcpkg's; now there is one. On Windows the
fetched opentims keeps compiling against the vendored sqlite3.h, which is
the same version as vcpkg's. SQLiteCpp is a private dependency of
libOpenMS, so the pyOpenMS build needs nothing new. The macOS wheel is
built with Homebrew and keeps the vendored copies.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7
@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: dd525995-2a6a-48d6-bff0-9d0ab24b3ff5

📥 Commits

Reviewing files that changed from the base of the PR and between ef94635 and b2a8328.

📒 Files selected for processing (6)
  • .github/workflows/pyopenms-wheels-cibuildwheel.yml
  • CHANGELOG
  • src/openms/extern/SQLiteCpp/sqlite3/README.md
  • src/openms/extern/SQLiteCpp/sqlite3/sqlite3.c
  • src/openms/extern/SQLiteCpp/sqlite3/sqlite3.h
  • tools/ci/build_openms_manylinux.sh

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


📝 Walkthrough

Walkthrough

The bundled SQLite amalgamation is updated from version 3.49.2 to 3.53.1. Linux and Windows wheel builds now use SQLiteCpp and SQLite from vcpkg. The macOS wheel retains the vendored copies.

Changes

SQLite wheel configuration

Layer / File(s) Summary
Update bundled SQLite version
src/openms/extern/SQLiteCpp/sqlite3/README.md, CHANGELOG
The README and changelog identify the bundled SQLite amalgamation as version 3.53.1, replacing version 3.49.2. The changelog notes that the default USE_EXTERNAL_SQLITECPP=OFF builds it into libOpenMS.
Configure wheel SQLite sources
tools/ci/build_openms_manylinux.sh, .github/workflows/pyopenms-wheels-cibuildwheel.yml, CHANGELOG
Linux and Windows wheel builds enable the vcpkg sqlitecpp feature and set USE_EXTERNAL_SQLITECPP=ON. The changelog records that macOS retains the vendored copies and that all wheels use SQLite 3.53.1.

Priority: ⬆️ High

Change: Other

Merge Risk: ⚪ Minimal · up to b2a83

This change updates SQLite to 3.53.1 and points the Linux and Windows wheels at vcpkg's copy. The supplied evidence shows the configuration is consistent, and no merge-blocking risk was found. The wheels themselves have not yet been inspected for the SQLite version.

Architecture Summary

Architecture risk: 🔵 Low · up to b2a83

The change affects 3 systems.

Changed systems: CHANGELOG, src, tools

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — CHANGELOG (service) was modified; 1 changed file maps to changed impact.
  • observed — src (service) was modified; 1 changed file maps to changed impact.
  • observed — tools (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in CHANGELOG: The vendored SQLite amalgamation version changes from 3.49.2 to 3.53.1; with USE_EXTERNAL_SQLITECPP=OFF (the default), it is compiled into libOpenMS.
  • observed — Modified behavior in CHANGELOG: Linux and Windows wheels now use SQLiteCpp and SQLite from vcpkg rather than OpenMS-vendored copies; macOS retains the vendored copies. All wheels use SQLite 3.53.1 instead of 3.49.2.
  • observed — Modified behavior in src/openms/extern/SQLiteCpp/sqlite3/README.md: The README now identifies the bundled sqlite3.c and sqlite3.h files as coming from SQLite amalgamation 3.53.1 (2026-05-05), replacing version 3.49.2 (2025-05-07).
  • observed — Modified behavior in tools/ci/build_openms_manylinux.sh: The comments now identify sqlitecpp as an enabled manifest feature and explain that SQLiteCpp and SQLite come from vcpkg, avoiding linkage against both vcpkg’s SQLite and the vendored copy; other vendored libraries remain unchanged.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
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.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the two main changes: updating the vendored SQLite version and using vcpkg for Linux and Windows wheels.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the SQLite trail,
New version numbers mark the way.
Vcpkg joins the wheel-build route,
While macOS keeps its bundled source.
I thump a tune and hop away.

Comment @coderabbitai help to get the list of available commands.

@timosachsenberg
timosachsenberg merged commit b47f293 into develop Sep 29, 2026
32 checks passed
@timosachsenberg
timosachsenberg deleted the claude/confident-lovelace-muuw2w-wheel-sqlite branch September 29, 2026 18:20
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.

2 participants