Create and run a manual smoke test of wakil qmd sync / wakil init on a fresh workspace
- User
Create and run a manual smoke test of
wakil qmd sync/wakil initon a fresh workspace Assistant
I'll look at the
wakil initandwakil qmd synccommands to understand their behavior before writing the smoke test.Assistant
Now let me look at the
qmd synccommand specifically and the qmd service/integration modules.Assistant
Good —
qmdbinary is installed locally. Now let's check if there's an existing test-scripts directory or convention for manual smoke tests in this repo.Assistant
wakilruns viauv run wakil. Now let's set up a fresh workspace directory in the scratchpad and run the smoke test manually, step by step, capturing real output.Assistant
Now let's write a smoke-test script that exercises
wakil initandwakil qmd syncend-to-end against the realqmdbinary, with some seed Markdown content and clear pass/fail checks at each step.Assistant
One real config-file-name mismatch in my test script — let me check the actual config filename.
Assistant
It's
config.yaml, notconfig.yml. Fixing the test script and re-running the full suite.Assistant
All 12 checks pass now. Let's also verify re-running
wakil initon the already-initialized workspace is idempotent (a common real-world path), and clean up the temp workspaces afterward.Assistant
Idempotent re-init works cleanly too (0 added, 2 unchanged, no duplicate QMD collection errors). Now cleaning up the temp workspaces.
Assistant
Ran a manual smoke test against the real
qmdbinary (v2.1.0, no mocking) in a fresh temp workspace. All 12 checks passed:wakil initon a fresh dir — creates.wakil/config.yaml,.wakil/qmd/index.yml,.wakil/wakil.db, indexes 2 seed notes, and auto-registers the default QMD collection.wakil statuspost-init — reports QMD asavailableand index asworkspace-scoped.wakil qmd collection list— shows the auto-registered collection.wakil qmd syncon a workspace that already has a collection — correctly no-ops ("No new collections to propose").wakil init --no-qmd-collection+wakil qmd sync --yes— no collection after init, then sync proposes and registers one non-interactively.
- User
where is the qmd db being created?
Assistant
The QMD database lives at
<workspace>/.wakil/qmd/index.sqlite, set via theINDEX_PATHenv var (_qmd_envinsrc/wakil/integrations/qmd.py:58-63) alongsideQMD_CONFIG_DIR=<workspace>/.wakil/qmd/(which holdsindex.yml, the collection registry). It's a separate SQLite file from.wakil/wakil.db— the comment at the top of that file notes qmd manages its own schema via an independent process with no locking coordination with wakil's SQLAlchemy connection, so they're kept as sibling files rather than sharing one DB.- User
check off this todo in the pull request: "manual smoke test of
wakil qmd sync/wakil initon a fresh workspace" Assistant
Found PR #14. I'll check off that specific test-plan item, leaving the others untouched.
Assistant
This will edit the PR description on GitHub — updating the checkbox state visible to anyone viewing PR #14. Confirming before I push it.
Assistant
Done — checked off "Manual smoke test of
wakil qmd sync/wakil initon a fresh workspace" on PR #14. Thewakil enrichitem stays unchecked.