Skip to content

Release v0.19.1 - xchain-sync - #17

Merged
jdogresorg merged 2 commits into
masterfrom
hotfix/v0.19.1
Sep 16, 2026
Merged

jdogresorg merged 2 commits into
masterfrom
hotfix/v0.19.1

Conversation

@jdogresorg

Copy link
Copy Markdown
Contributor

v0.19.0 cannot boot: the code-structure pass moved src/db.js to src/db/index.js and left the DDL reader resolving src/db/sql/, so the container died at boot with ENOENT from verifySyncTables.
Fixed by ae23ef1, cherry-picked onto the v0.19.0 tag: both call sites go through one sqlDir() helper resolving src/sql/, with a test that reads the real directory off disk.
Patch train v0.19.1, heights unchanged.

…oved into src/db/

The code-structure pass moved src/db.js to src/db/index.js and kept
path.join(__dirname, 'sql') at both readers, so the sync-owned DDL
directory resolved to src/db/sql/, which does not exist, and the
container died at boot with ENOENT from verifySyncTables. Both call
sites now go through one sqlDir() helper that resolves src/sql/.

The existing verifySyncTables unit tests stub fs.readdirSync and never
touched the real directory, which is how the gate stayed green. The new
test resolves the same directory the boot path reads, asserts it exists
on disk with every sync-owned .sql file, and drives verifySyncTables and
createTableFromFile with fs left unstubbed.
@jdogresorg
jdogresorg merged commit 5b44cb5 into master Sep 16, 2026
8 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.

1 participant