Skip to content

fix(ci): run ExperienceStore SQLite tests on GitHub Actions - #22

Draft
shehrii9 wants to merge 1 commit into
mainfrom
cursor/ci-sqlite-experience-ec5e
Draft

shehrii9 wants to merge 1 commit into
mainfrom
cursor/ci-sqlite-experience-ec5e

Conversation

@shehrii9

Copy link
Copy Markdown
Owner

Summary

Re-enables L2 experience memory tests on CI, which were skipped after better-sqlite3 segfaults on GitHub Actions.

Root cause: vitest.config.ts used pool: "threads". Native addons like better-sqlite3 are unsafe in Vitest worker threads on Linux (browser tests already used the default fork pool and exercised SQLite successfully).

Fix:

  • Switch unit test pool to forks (with existing maxWorkers: 1)
  • Remove describe.skipIf(CI) from experience.test.ts and experience-softmatch.test.ts
  • Restore npm run test:sqlite (scripts/ci-experience-smoke.ts) in CI and release workflows before npm test

Testing

CI=true npm run test:sqlite
CI=true npm test   # 52 tests, including ExperienceStore suites
Open in Web Open in Cursor 

Vitest used pool=threads, which can segfault with better-sqlite3 on Linux.
Switch unit tests to pool=forks, re-enable ExperienceStore vitest suites,
and restore npm run test:sqlite in CI and release workflows.

Co-authored-by: Shaharyar Ahmad <shehrii9@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants