ci: rebuild .pql/pql.db from the changelog after installing pql
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) <noreply@anthropic.com>
This commit is contained in:
@@ -31,6 +31,10 @@ jobs:
|
|||||||
tar -xzf /tmp/pql.tgz -C /tmp
|
tar -xzf /tmp/pql.tgz -C /tmp
|
||||||
sudo install -m 0755 /tmp/pql /usr/local/bin/pql
|
sudo install -m 0755 /tmp/pql /usr/local/bin/pql
|
||||||
pql --version
|
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
|
# 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
|
# a11y suite — see the push-check note in the Makefile), which is what
|
||||||
# coverage-gate consumes.
|
# coverage-gate consumes.
|
||||||
@@ -55,6 +59,10 @@ jobs:
|
|||||||
tar -xzf /tmp/pql.tgz -C /tmp
|
tar -xzf /tmp/pql.tgz -C /tmp
|
||||||
sudo install -m 0755 /tmp/pql /usr/local/bin/pql
|
sudo install -m 0755 /tmp/pql /usr/local/bin/pql
|
||||||
pql --version
|
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
|
- uses: coactions/setup-xvfb@v1
|
||||||
with: { run: make test-integration }
|
with: { run: make test-integration }
|
||||||
|
|
||||||
@@ -76,6 +84,10 @@ jobs:
|
|||||||
tar -xzf /tmp/pql.tgz -C /tmp
|
tar -xzf /tmp/pql.tgz -C /tmp
|
||||||
sudo install -m 0755 /tmp/pql /usr/local/bin/pql
|
sudo install -m 0755 /tmp/pql /usr/local/bin/pql
|
||||||
pql --version
|
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
|
- run: make smoke-bundle
|
||||||
|
|
||||||
# The web-WASM Playwright job is withheld: `flutter build web --wasm` cannot
|
# The web-WASM Playwright job is withheld: `flutter build web --wasm` cannot
|
||||||
|
|||||||
Reference in New Issue
Block a user