From e9247c1761db8e89ea6356ab65ff57508b77ba50 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Sun, 14 Jun 2026 23:50:23 +0200 Subject: [PATCH] ci: rebuild .pql/pql.db from the changelog after installing pql MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Installing pql cut the failures 36→8, but the remaining ticket-query tests run against the working directory's `.pql/pql.db`, which is gitignored — the post-checkout hook normally rebuilds it from the committed `.pql/changelog/`. A fresh CI checkout has the changelog but no db, so pql reports vault-not-found (exit 66). Run `pql plan import` after the install to materialize it. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/test.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1563659a..c998322d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,6 +31,10 @@ jobs: tar -xzf /tmp/pql.tgz -C /tmp sudo install -m 0755 /tmp/pql /usr/local/bin/pql pql --version + # The pql tests query the repo's vault, but .pql/pql.db is gitignored + # (the post-checkout hook rebuilds it from the committed changelog). + # A fresh CI checkout has the changelog but no db — materialize it. + pql plan import # test-coverage runs the full fast suite WITH coverage (it includes the # a11y suite — see the push-check note in the Makefile), which is what # coverage-gate consumes. @@ -55,6 +59,10 @@ jobs: tar -xzf /tmp/pql.tgz -C /tmp sudo install -m 0755 /tmp/pql /usr/local/bin/pql pql --version + # The pql tests query the repo's vault, but .pql/pql.db is gitignored + # (the post-checkout hook rebuilds it from the committed changelog). + # A fresh CI checkout has the changelog but no db — materialize it. + pql plan import - uses: coactions/setup-xvfb@v1 with: { run: make test-integration } @@ -76,6 +84,10 @@ jobs: tar -xzf /tmp/pql.tgz -C /tmp sudo install -m 0755 /tmp/pql /usr/local/bin/pql pql --version + # The pql tests query the repo's vault, but .pql/pql.db is gitignored + # (the post-checkout hook rebuilds it from the committed changelog). + # A fresh CI checkout has the changelog but no db — materialize it. + pql plan import - run: make smoke-bundle # The web-WASM Playwright job is withheld: `flutter build web --wasm` cannot