Skip to content

ci: run the SQLite suites against DoltLite - #317

Draft
roxblnfk wants to merge 2 commits into
2.xfrom
ci/doltlite
Draft

roxblnfk wants to merge 2 commits into
2.xfrom
ci/doltlite

Conversation

@roxblnfk

@roxblnfk roxblnfk commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

🔍 What was changed

  • New doltlite workflow: fetches libdoltlite.so with dload and runs the SQLite suites in the official php image with the library preloaded (LD_PRELOAD), so pdo_sqlite runs on DoltLite instead of libsqlite3; a first step checks dolt_version(). The preload has no effect on setup-php builds.
  • dload.xml describes DoltLite, which dload does not know.
  • Adds internal/dload to dev dependencies (same commit as in the Dolt and Doltgres PRs).

Review notes

Checklist

  • Part of Try dolt #313
  • How was this tested:
    • Same setup locally in php:8.4-cli (DoltLite 0.51.16): 675 of 737 SQLite tests pass, 62 fail; the same container without the preload passes all
    • CI run on this PR

CI jobs fetch database server binaries (Dolt, Doltgres, DoltLite) from GitHub releases with it.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
DoltLite is a SQLite fork with the sqlite3_* API, so pdo_sqlite runs on it once the library is preloaded. The preload has no effect on setup-php builds, so the suites run in the official php image. dload.xml describes DoltLite, since dload does not know it.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
@psalm-shepherd

Copy link
Copy Markdown

Psalm found errors in other files

src/Driver/Postgres/Injection/CompileJsonContainsKey.php:25:14 - filter_var is part of the ext-filter extension, which composer.json doesn't require: add it to require, or to suggest if the code works without it
src/Driver/Postgres/Injection/PostgresJsonExpression.php:68:16 - filter_var is part of the ext-filter extension, which composer.json doesn't require: add it to require, or to suggest if the code works without it
src/Driver/Postgres/Injection/PostgresJsonExpression.php:89:29 - filter_var is part of the ext-filter extension, which composer.json doesn't require: add it to require, or to suggest if the code works without it
src/Schema/AbstractColumn.php:786:53 - Argument 1 of DateTimeImmutable::setTimestamp expects int, but possibly different type int|numeric-string provided
src/Driver/Postgres/Schema/PostgresTable.php:0:0 - Baseline for issue "LessSpecificImplementedReturnType" has 1 extra entry.
src/Schema/AbstractColumn.php:0:0 - Baseline for issue "InvalidArgument" has 1 extra entry.

@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.59%. Comparing base (9b1699d) to head (8caf5d7).

Additional details and impacted files
@@            Coverage Diff             @@
##              2.x     #317      +/-   ##
==========================================
+ Coverage   94.56%   98.59%   +4.02%     
==========================================
  Files         143      143              
  Lines        5260     5045     -215     
==========================================
  Hits         4974     4974              
+ Misses        286       71     -215     
Flag Coverage Δ
mysql 55.25% <ø> (+2.72%) ⬆️
postgres 61.99% <ø> (+2.56%) ⬆️
sqlite 53.24% <ø> (+2.78%) ⬆️
sqlserver 55.36% <ø> (+1.74%) ⬆️
unit 56.89% <ø> (+0.82%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@roxblnfk roxblnfk mentioned this pull request Nov 25, 2026
1 of 21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants