The store's place is one definition, so a stand-in writes where the launch reads (martha#124) #136
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "pluto/124-fixture-store-folder"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (fix):
npm testis green on main again, so a package's handoff can rest on it, and a stand-in writes the session store exactly where the launch reads it.What broke. 126 recorded that the engine writes its store inside the data folder's sessions folder and taught the launcher to read it there. Three stand-ins still spelled the store beside that folder, so on main every engine start died at readiness with
the session store at .../data/sessions/sessions.db cannot be read (unable to open database file):start_an_engine_member.node-test.ts8/25, the other two not failing only because they build the path they read.The fix, one definition rather than three copies.
theStorePathUnderTheRootnow holds the place once,theSessionStoreOfis built from it, and every stand-in row that says where a store goes asks it: the engine-start row, the drive-the-engine store, and the read-back's store. A row cannot spell a second layout again; if one does, the engine start's 17 reds say so.Proof, on the merged tree (main
c02dc1f7, one merge commit, no conflict):Mutant, run and restored: dropping the folder from
theStorePathUnderTheRootfails the read-back's own expectation,theSessionStoreOf(RECORDED_GOOSE_ENGINE, '/r') === '/r/data/sessions/sessions.db', which is the one place the shape is written literally. Worth saying plainly: the three fixtures derive from that function, so they cannot disagree with it, and the row that spells its own path (the bug that happened) is caught by the engine start's 17.For PR 135 (#134), which has the same row. Its M2 test can go green by using
theStorePathUnderTheRoot(FACTS)for the row'spathand merging main; nothing else in 135 needs to change for this.Refs #124, #127.
126 recorded that the engine writes its session store inside the data folder's sessions folder, and taught the launcher to read it there. Three stand-ins still spelled the store beside that folder, so on main every engine start died at readiness: "the session store at .../data/sessions/sessions.db cannot be read". theStorePathUnderTheRoot now holds the place once, the read and every stand-in row ask it, and no row can spell a second layout: the engine start's row (17 of its 25 tests were red), the drive-the-engine store, and the read-back's store. A row that spells its own path again is the only way back, and that is what those 17 catch. Mutant, run: dropping the folder from theStorePathUnderTheRoot fails the read-back's own expectation of the path ('/r/data/sessions/sessions.db'), which is the one place the shape is written down literally. Restored.