Skip to content

refactor: Bump jazzy from 0.15.4 to 0.15.5 and sqlite3 from 1.7.3 to 2.10.2 - #1946

Merged
mtrezza merged 1 commit into
parse-community:masterfrom
mtrezza:refactor/jazzy-0.15.5-sqlite3-2.10.2
Oct 28, 2026
Merged

mtrezza merged 1 commit into
parse-community:masterfrom
mtrezza:refactor/jazzy-0.15.5-sqlite3-2.10.2

Conversation

@mtrezza

@mtrezza mtrezza commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Development-only security update of the docs toolchain. It addresses Dependabot alerts that have no Dependabot PR. sqlite3 is a dependency of jazzy, which Scripts/jazzy.sh uses to generate the API docs; neither is part of the SDK.

jazzy 0.15.4 requires sqlite3 ~> 1.3, so every patched sqlite3 (2.9.5 or later) needs jazzy 0.15.5, the latest release, which widens the requirement to >= 1.3, < 3.0. This PR:

  • pins jazzy 0.15.4 → 0.15.5 in the Gemfile (still an exact pin)
  • updates sqlite3 1.7.3 → 2.10.2 in Gemfile.lock

Why sqlite3 2.10.2 and not 2.9.6

The first patched version is 2.9.6 for alert 140 and 2.9.5 for alert 121. This PR goes to 2.10.2 because 2.9.6 is still affected by GHSA-4fqr-96q8-xrfx (medium, CVSS 4.8). sqlite3-ruby cast string lengths to int, so on 64-bit platforms a string of 4 GiB or more was truncated: the SQL of a query, a String or Blob bound to a statement, or one returned from a custom function. A truncated query could lose its trailing clauses. The advisory affects <= 2.10.1 and is fixed in 2.10.2. That makes 2.10.2 the lowest version that fixes every known sqlite3-ruby advisory. It is also the latest release.

GHSA-4fqr-96q8-xrfx is a repository advisory that sqlite3-ruby published on 2026-10-26. It is not yet in GitHub's global advisory database, so there is no Dependabot alert for it here yet.

Security

Advisory Severity Affected Fixed in Dependabot alert
GHSA-mwm8-39rw-8826 medium >= 1.4.0, <= 2.9.5 2.9.6 alert 140
GHSA-28hh-pr2h-2w89 low <= 2.9.4 2.9.5 alert 121
GHSA-4fqr-96q8-xrfx medium <= 2.10.1 2.10.2 none yet (not in the global database)

These are the only open alerts for Gemfile.lock. The other 23 are fixed, and this change brings none of them back. The two other sqlite3-ruby advisories, GHSA-j7fr-3v8c-3qc3 (>= 2.1.0, <= 2.9.4) and GHSA-mgvv-5mxp-xq67 (= 1.5.0), affect neither 1.7.3 nor 2.10.2.

Ruby and Bundler

  • sqlite3 2.10.2 requires Ruby >= 3.2, and its precompiled arm64-darwin gem requires >= 3.2, < 4.1.dev. The workflows that install gems use ruby/setup-ruby without ruby-version, so they run Ruby 4.0.0 from .ruby-version. No Ruby change is needed. jazzy 0.15.5 still requires Ruby >= 2.6.3.

  • The lock keeps BUNDLED WITH 4.0.10, its PLATFORMS (arm64-darwin-25, ruby) and the CHECKSUMS section. The release workflows therefore see the same lock format as on master. This includes the extra Bundler 2.4.22 install in release-automated.yml.

  • sqlite3 2.10.2 has two lock entries, the same way ffi already does:

    • the source gem for the ruby platform, which still depends on mini_portile2 ~> 2.8.0 (2.8.9, unchanged)
    • the precompiled arm64-darwin gem

    1.7.3 had only a source gem entry, because its precompiled gems require Ruby < 3.4.

Changes

jazzy 0.15.4 → 0.15.5 (changelog, diff):

  • Generate docs using SwiftPM 6.4. The gem now bundles SourceKitten 0.39.0, which jazzy also uses to parse the Objective-C umbrella header (--objc).
  • Support mustache 1.1.3: the theme's template path is passed to mustache as a String. The lock keeps mustache 1.1.2.
  • Not in the changelog:
    • The sqlite3 requirement widens from ~> 1.3 to >= 1.3, < 3.0. The other runtime requirements are unchanged.
    • search_builder.rb adds a workaround for activesupport < 8 with json 3. jazzy redefines JSON.parse and JSON.generate so that they drop a :quirks_mode option before calling the original methods. The redefined methods accept options only as keywords. The lock keeps json 2.19.9 and activesupport 7.2.3.1.
    • The development dependency on Bundler moves to ~> 4.0. It is not installed here.
    • print_option_help in lib/jazzy/config.rb uses grep(String) instead of select { |opt| opt.is_a?(String) }. The result is the same, and it only affects --help output.
    • The other library changes are RuboCop comments. The rest of the diff is specs, CI, the README and jazzy's own development lock file.
  • No command-line option changes, so all options in Scripts/jazzy.sh still apply.

sqlite3 1.7.3 → 2.10.2 (changelog):

  • 2.0.0: a major release that removes long-deprecated APIs.
    • Drops Ruby 2.7. Adds precompiled gems for Linux musl. Vendored SQLite 3.45.3.
    • Added:
      • Database#busy_handler_timeout=
      • the SUPER_JOURNAL flag
      • Statement#stat, #memused, #sql and #expanded_sql
      • SQLite3.status
    • Improved:
      • no memory leak for statements that are not closed
      • some C code moved to Ruby
      • faster ResultSet hashes
      • a GC compaction fix for busy_handler
      • an encoding fix for values passed to custom functions
      • an unused ResultSet instance variable removed
    • Changed:
      • errors are consistently SQLite3::Exception or a subclass
      • Database#columns returns frozen strings
      • results from the database are frozen
      • the database encoding is no longer cached
      • Database#transaction returns the block's result
      • Database#execute_batch returns the last statement's result
    • Removed:
      • SQLite3::Translator and type translation
      • types and fields on result rows
      • non-Array bind parameters for Database#execute, #execute_batch and #query
      • SQLite3::VersionProxy
      • FunctionProxy#count and #set_error
  • 2.0.1:
    • ArgumentError when execute, execute_batch or query get several bind parameters that are not in an Array.
    • Fixes an encoding error in execute_batch with some non-ASCII strings; prepare now encodes the remainder as UTF-8.
  • 2.0.2, 2.0.4: vendored SQLite 3.46.0 and 3.46.1.
  • 2.0.3: Database#quote allocates fewer strings.
  • 2.1.0:
    • Drops Ruby 3.0.
    • Fork safety: writable connections carried across fork() are closed in the child.
    • A database with unclosed statements is closed in a deferred manner (sqlite3_close_v2) instead of raising BusyException.
    • A write barrier when setting busy_handler.
    • FAQ fixes.
  • 2.1.1, 2.3.1: vendored SQLite 3.47.0 and 3.47.1.
  • 2.2.0: URI filenames; verbose syntax errors from Database#prepare.
  • 2.3.0:
    • The SQLITE_DBPAGE and DBSTAT extensions are enabled.
    • Adds Database#optimize and SQLite3::VERSION_INFO.
    • Fixes Database#encoding= for UTF-16BE.
    • Build failures no longer mention pkg-config.
  • 2.4.0: Database#load_extension accepts objects that respond to #to_path; Database.new accepts extensions:.
  • 2.4.1: vendored SQLite 3.47.2, which fixes a float conversion bug on x64 and i386; no spurious ForkSafety warnings.
  • 2.5.0: precompiled gems for Ruby 3.4.
  • 2.6.0: vendored SQLite 3.49.1; rake-compiler-dock 1.9.1. On Windows, extensions can't be loaded with the precompiled gems or the vendored SQLite.
  • 2.7.0 to 2.8.1: vendored SQLite 3.50.1 to 3.51.1. 2.7.2 backports a SQLite build fix for Rocky Linux; 2.8.1 builds the precompiled gems with rake-compiler-dock 1.10.0.
  • 2.9.0: precompiled gems for Ruby 4.0; drops Ruby 3.1; adds Statement#named_params; docstring improvements.
  • 2.9.1 to 2.9.4: vendored SQLite 3.51.2 to 3.53.1.
  • 2.9.5: vendored SQLite 3.53.2. Fixes GHSA-28hh-pr2h-2w89 (alert 121) and GHSA-j7fr-3v8c-3qc3, a use-after-free with aggregate functions after a soft database close.
  • 2.9.6: fixes GHSA-mwm8-39rw-8826 (alert 140).
    • Also fixes:
      • a leak of custom aggregate handler instances
      • GC compaction issues with custom functions, aggregates, collations, trace and authorizer=
      • open_v2 and open16 replacing a live connection
      • TEXT arguments with a NUL byte being truncated in define_function
      • an exception in a define_function block leaving the connection's mutex held
    • Database.new raises ArgumentError for a filename or VFS name that contains a NUL byte.
    • A failed open closes the handle immediately.
  • 2.10.0:
    • Vendored SQLite 3.54.0: ALTER TABLE rejects the column names ROWID, _ROWID_ and OID; the authorizer runs for functions in DEFAULT clauses; Windows XP is no longer supported.
    • Added: ResultSet#each and #each_hash return an Enumerator without a block; Database#serialize and #deserialize.
    • Fixed: Database#statement_timeout= interrupted statements almost immediately.
    • Improved: Statement#types allocates fewer strings.
    • Changed:
      • ResultSet#each and #each_hash with a block return the result set, so Database#execute and #execute2 with a block return the closed ResultSet instead of nil.
      • Statement#columns and #types return frozen arrays.
      • Statement#column_decltype and #types return UTF-8 strings.
  • 2.10.1: vendored SQLite 3.54.1, which fixes a possible heap buffer overflow on 32-bit builds. Database#define_aggregator no longer creates an anonymous class per function.
  • 2.10.2: fixes GHSA-4fqr-96q8-xrfx by raising RangeError for strings longer than INT_MAX bytes.
    • Also fixes:
      • a crash when an aggregate's finalize returns a value that can't be converted
      • a use-after-free when the Database#collations hash is changed
      • a deadlock when a collation, trace, busy_handler or authorizer callback raises, or when an interrupt arrives while an aggregate handler is being created
      • a crash on throw in a custom function
    • Changed:
      • SQLite finishes its current call before an exception from a callback is raised, and the other callbacks in that call skip their Ruby code.
      • execute_batch2 raises the custom function's exception.
      • Exceptions from callbacks during Statement#reset! and Database#close are discarded.
      • Per-fiber state is kept in Thread.current[:__sqlite3_callback_frames__], so a query on a frozen Thread raises FrozenError.
      • SQLite3::MemoryException is raised instead of aborting when an aggregate context can't be allocated.
    • Improved: Statement#step allocates less; ObjectSpace.dump reports the Database and Statement type names.
    • Docs: bind parameters stay bound across executions.

How jazzy uses sqlite3

On every run, jazzy builds the search index of the Dash docset (docs/api/docsets/Parse.docset/Contents/Resources/docSet.dsidx) in DocsetBuilder#create_index, with three calls:

  • SQLite3::Database.new(path) { |db| ... }
  • db.execute with CREATE TABLE and CREATE UNIQUE INDEX
  • db.execute('INSERT OR IGNORE ...', [name, type, path]), with the bind parameters in an Array

None of the removed or changed APIs above affects these calls:

  • 2.0.0 removed non-Array bind parameters; jazzy passes an Array.
  • In 2.10.0, execute with a block returns the result set, and Statement#columns and #types return frozen arrays. jazzy passes no block and doesn't call either method.
  • 2.10.2 changes how exceptions from callbacks are raised; jazzy registers no callbacks. Its strings are far below the new INT_MAX limit.
  • 2.1.0's fork safety closes writable connections inherited by a forked child. jazzy closes the database before it runs tar.

Breaking Changes

None affecting this repository. sqlite3 2.0.0 is a major release that removes long-deprecated APIs and drops Ruby 2.7. Later 2.x releases drop Ruby 3.0 and 3.1. See the Changes and How jazzy uses sqlite3 sections above.

Code Changes Required

None. Only the Gemfile (the jazzy pin) and Gemfile.lock change. In the lock, the changes are:

  • the jazzy entry and its sqlite3 requirement
  • the sqlite3 entries
  • the jazzy line in DEPENDENCIES
  • the three matching CHECKSUMS lines

No other gem changes.

Verification

The project uses Ruby 4.0.0, which is not available locally, so neither Bundler nor jazzy was run locally. The lock entries were edited by hand from the rubygems.org compact index. A script then checked the lock against the index:

  • Every locked gem and platform variant exists, with the dependency lines and requirement formatting that Bundler writes.
  • Every requirement is satisfied for both locked platforms, and every gem's Ruby requirement includes 4.0.0.
  • Every CHECKSUMS entry matches the index. The SHA-256 of the downloaded gems (jazzy 0.15.5 and both sqlite3 2.10.2 gems) matches too, as does the gemspec metadata inside them.
  • DEPENDENCIES matches the Gemfile pins, and only jazzy and sqlite3 change in the lock.

The real validation is CI. Every CI job installs the gems with bundle install through ruby/setup-ruby with bundler-cache, from the frozen lock, and Bundler checks the downloaded gems against CHECKSUMS. The docs job also runs Scripts/jazzy.sh, which builds the docset search index with sqlite3 2.10.2.

Summary by CodeRabbit

  • Chores
    • Refreshed the internal tooling used to generate project documentation. This maintenance update does not change the app’s features, screens, or behavior. No user-facing functionality was added or removed, and documentation generation remains available as before. The update is limited to behind-the-scenes maintenance, with no changes to how the app is used.

@parse-github-assistant

Copy link
Copy Markdown

🚀 Thanks for opening this pull request! We appreciate your effort in improving the project. Please let us know once your pull request is ready for review.

Tip

  • Keep pull requests small. Large PRs will be rejected. Break complex features into smaller, incremental PRs.
  • Use Test Driven Development. Write failing tests before implementing functionality. Ensure tests pass.
  • Group code into logical blocks. Add a short comment before each block to explain its purpose.
  • We offer conceptual guidance. Coding is up to you. PRs must be merge-ready for human review.
  • Our review focuses on concept, not quality. PRs with code issues will be rejected. Use an AI agent.
  • Human review time is precious. Avoid review ping-pong. Inspect and test your AI-generated code.

Note

Please respond to review comments from AI agents just like you would to comments from a human reviewer. Let the reviewer resolve their own comments, unless they have reviewed and accepted your commit, or agreed with your explanation for why the feedback was incorrect.

Caution

Pull requests must be written using an AI agent with human supervision. Pull requests written entirely by a human will likely be rejected, because of lower code quality, higher review effort and the higher risk of introducing bugs. Please note that AI review comments on this pull request alone do not satisfy this requirement. Our CI and AI review are safeguards, not development tools. If many issues are flagged, rethink your development approach. Invest more effort in planning and design rather than using review cycles to fix low-quality code.

@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 57a13301-fac6-496e-989c-6d6df89a2799
Commits

Reviewing files that changed from the base of the PR and between 13e490b and 4c0537e.

Files ignored due to path filters: 1
  • Gemfile.lock is excluded by !**/*.lock
Files selected for processing: 1
  • Gemfile

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

Walkthrough

The Gemfile updates the pinned jazzy version from 0.15.4 to 0.15.5.

Changes: Jazzy dependency update

Layer / File(s) Summary
Update the jazzy version
Gemfile
The pinned jazzy version changes from 0.15.4 to 0.15.5.

Priority: Low

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

Suggested reviewers: parseplatformorg

Merge Risk: Minimal · up to 4c053

The dependency updates are consistent with the stated documentation-tooling purpose and are mergeable.

Caution

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

  • Ignore

Failed Failed checks: 1 error

Check name Status Explanation Resolution
Description check Error The description is thorough and covers the change. It explains the jazzy 0.15.4 to 0.15.5 pin change in the Gemfile and the sqlite3 1.7.3 to 2.10.2 update in Gemfile.lock. It gives the reason for choo… Add the template's required parts. (1) Complete the checklist. Check the vulnerability-disclosure box, which applies because the PR addresses public Dependabot alerts, and state the reason in the description. Check the issue-reference box. …
Passed Passed checks: 5 passed
Check name Status Explanation
Title check Passed The title begins with the permitted prefix "refactor:" and uses a capitalized first word after the prefix. It accurately describes the dependency updates.
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.
Security Check Passed No security vulnerability pattern is introduced. The authoritative diff changes only Gemfile and Gemfile.lock: jazzy moves from 0.15.4 to 0.15.5, and sqlite3 moves from 1.7.3 to 2.10.2 with ma…
Engage In Review Feedback Passed The current review produced zero actionable findings and no review threads. There was no feedback comment that required engagement, implementation, or discussion before resolution.
Full details: Security Check

Explanation

No security vulnerability pattern is introduced. The authoritative diff changes only Gemfile and Gemfile.lock: jazzy moves from 0.15.4 to 0.15.5, and sqlite3 moves from 1.7.3 to 2.10.2 with matching checksums. Scripts/jazzy.sh uses the gem only for documentation generation, and workflows invoke it in docs jobs. No application source or security-sensitive logic changes. The update removes the older vulnerable dependency rather than adding one.

Full details: Description check

Explanation

The description is thorough and covers the change. It explains the jazzy 0.15.4 to 0.15.5 pin change in the Gemfile and the sqlite3 1.7.3 to 2.10.2 update in Gemfile.lock. It gives the reason for choosing 2.10.2 over 2.9.6 (GHSA-4fqr-96q8-xrfx), a security table, a Ruby and Bundler compatibility note, a changelog review, a breaking-changes section, a code-changes section, and a verification section. It does not follow the Parse Platform template. The checklist items (vulnerability disclosure and issue reference) are absent. The 'Issue Description' section with 'Closes:' is absent. The 'Approach' section is folded into other headings. The TODO checkboxes for tests and documentation are absent. The author does not state whether tests were added. Since no code behavior changes, the missing test and documentation items may not apply, but the author should say so explicitly.

Resolution

Add the template's required parts. (1) Complete the checklist. Check the vulnerability-disclosure box, which applies because the PR addresses public Dependabot alerts, and state the reason in the description. Check the issue-reference box. If no tracking issue exists, create one or link the Dependabot alerts as the reference. (2) Replace the 'Closes: FILL_THIS_OUT' line. Name the issue, or state that no issue closes. (3) Add an 'Approach' section, or rename the existing security and verification text under that heading. (4) Under 'TODOs before merging', state whether tests are needed. Mark 'Add tests' and 'Add changes to documentation' as done, or state why they do not apply, since this change is a dependency bump with no code change. Delete any TODO that does not apply.

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@codecov

codecov Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.73%. Comparing base (dd05d41) to head (4c0537e).
⚠️ Report is 111 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #1946       +/-   ##
===========================================
+ Coverage   64.24%   85.73%   +21.49%     
===========================================
  Files         201      282       +81     
  Lines       23233    31241     +8008     
===========================================
+ Hits        14926    26786    +11860     
+ Misses       8307     4455     -3852     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mtrezza
mtrezza merged commit 720fc68 into parse-community:master Oct 28, 2026
18 checks passed
@mtrezza
mtrezza deleted the refactor/jazzy-0.15.5-sqlite3-2.10.2 branch October 28, 2026 13:29
@parseplatformorg

Copy link
Copy Markdown
Contributor

🎉 This change has been released in version 7.1.0

@parseplatformorg parseplatformorg added the state:released Released as stable version label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:released Released as stable version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants