Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,23 @@ jobs:

- name: Run Tests and Verifications
run: mvn --batch-mode clean verify

xerial-control:
# Reference probe, not a parity gate: the same vendored tests run against the pinned
# xerial driver. A failure means the vendored test is not a valid reference or the
# driver diverges without a recorded reason, not that libSQL must match xerial.
name: Xerial Control (reference probe)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7

- name: Set up Amazon Corretto 25
uses: actions/setup-java@v5
with:
distribution: 'corretto'
java-version: '25'
cache: 'maven'

- name: Run the xerial control profile
run: mvn --batch-mode -pl libsql-conformance -am -Pxerial-control verify
20 changes: 20 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,23 @@ jobs:

- name: Run Tests and Verifications
run: mvn --batch-mode clean verify

xerial-control:
# Reference probe, not a parity gate: the same vendored tests run against the pinned
# xerial driver. A failure means the vendored test is not a valid reference or the
# driver diverges without a recorded reason, not that libSQL must match xerial.
name: Xerial Control (reference probe)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7

- name: Set up Amazon Corretto 25
uses: actions/setup-java@v5
with:
distribution: 'corretto'
java-version: '25'
cache: 'maven'

- name: Run the xerial control profile
run: mvn --batch-mode -pl libsql-conformance -am -Pxerial-control verify
31 changes: 31 additions & 0 deletions libsql-conformance/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
<properties>
<docker.config.dir>${project.build.directory}/docker-config</docker.config.dir>
<xerial.version>3.53.4.0</xerial.version>
<!-- Set only by the xerial-control profile; the guard below rejects a hand-set
conformance.control.driver, because the control run must stay a reference
probe selected by the profile rather than a per-build driver switch. -->
<xerial.control.profile.active>false</xerial.control.profile.active>
</properties>

<dependencies>
Expand Down Expand Up @@ -82,6 +86,30 @@
<artifactId>maven-antrun-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>guard-control-driver</id>
<phase>generate-test-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<condition property="conformance.control.misconfigured">
<and>
<isset property="conformance.control.driver" />
<not>
<equals
arg1="${xerial.control.profile.active}"
arg2="true" />
</not>
</and>
</condition>
<fail
if="conformance.control.misconfigured"
message="conformance.control.driver is only set by the xerial-control profile. Run with -Pxerial-control instead of passing -Dconformance.control.driver, so the control run stays a reference probe." />
</target>
</configuration>
</execution>
<execution>
<id>verify-vendored-upstream</id>
<phase>generate-test-sources</phase>
Expand Down Expand Up @@ -164,6 +192,9 @@
-->
<profile>
<id>xerial-control</id>
<properties>
<xerial.control.profile.active>true</xerial.control.profile.active>
</properties>
<dependencies>
<dependency>
<groupId>org.xerial</groupId>
Expand Down
Loading