Skip to content

fix(storage): defer sqlite runtime loading - #1258

Merged
Astro-Han merged 2 commits into
apache:mainfrom
xuruiray:agent/fix-storage-sqlite-warning
Jul 20, 2026
Merged

Astro-Han merged 2 commits into
apache:mainfrom
xuruiray:agent/fix-storage-sqlite-warning

Conversation

@xuruiray

@xuruiray xuruiray commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • defer the runtime load of node:sqlite until a SQLite store is actually constructed
  • keep the existing @maka/storage exports and synchronous store API unchanged
  • add a subprocess regression test that requires a clean stderr for the package entrypoint

Closes #1257

Evidence

Before/after: the same Maka CLI startup command (node packages/cli/dist/cli.js --help) prints the SQLite warning on main but exits with an empty stderr stream on this PR.

Maka CLI startup before and after PR 1258

Validation

  • Maka CLI startup on main — exit code 0, stderr 168 bytes with SQLite ExperimentalWarning
  • Maka CLI startup on this PR — exit code 0, stderr 0 bytes
  • npm test --workspace @maka/storage — 397 passed, 1 skipped, 0 failed
  • npm test --workspace maka-agent — 631 passed, 0 failed
  • npm run typecheck — passed
  • npm run lint — passed
  • git diff --check — passed
  • npm test — all workspaces passed except runtime-host in the parallel runner; immediate isolated npm test --workspace @maka/runtime-host passed 45/45

@xuruiray
xuruiray marked this pull request as ready for review July 20, 2026 07:33
@xuruiray
xuruiray force-pushed the agent/fix-storage-sqlite-warning branch from 9c9ff12 to b678ced Compare July 20, 2026 11:15
xuruiray added a commit to xuruiray/maka-agent that referenced this pull request Jul 20, 2026
Summary:
- add a visual capture of the clean top-level storage import

Rationale:
- make the before/after behavior visible in PR apache#1258

Tests:
- node --input-type=module -e "await import('./packages/storage/dist/index.js')"
- verified exit code 0 and stderr byte count 0

Co-authored-by: Codex <codex@openai.com>
@xuruiray
xuruiray marked this pull request as draft July 20, 2026 11:30
xuruiray added a commit to xuruiray/maka-agent that referenced this pull request Jul 20, 2026
Summary:
- add a visual capture of the clean top-level storage import

Rationale:
- make the before/after behavior visible in PR apache#1258

Tests:
- node --input-type=module -e "await import('./packages/storage/dist/index.js')"
- verified exit code 0 and stderr byte count 0

Co-authored-by: Codex <codex@openai.com>
@xuruiray
xuruiray force-pushed the agent/fix-storage-sqlite-warning branch from 333c14d to 4d80a13 Compare July 20, 2026 11:31
Summary:
- add a visual capture of the clean top-level storage import

Rationale:
- make the before/after behavior visible in PR apache#1258

Tests:
- node --input-type=module -e "await import('./packages/storage/dist/index.js')"
- verified exit code 0 and stderr byte count 0

Co-authored-by: Codex <codex@openai.com>
@xuruiray
xuruiray force-pushed the agent/fix-storage-sqlite-warning branch from 4d80a13 to 6e93171 Compare July 20, 2026 11:40
@xuruiray
xuruiray marked this pull request as ready for review July 20, 2026 11:51
@Astro-Han
Astro-Han merged commit ba2c293 into apache:main Jul 20, 2026
3 checks passed
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.

fix(cli): avoid node:sqlite ExperimentalWarning on non-SQLite storage imports

2 participants