engine: the session store is read under the data folder's sessions folder (martha#124) #126
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "pluto/124-session-store-path"
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): a martha-engine member starts, because the launch reads its session store where the engine writes it (macula-io/martha#124).
The launch read
<goose-root>/data/sessions.db. The engine at the recorded commit writes<goose-root>/data/sessions/sessions.db:SESSIONS_FOLDERis"sessions"(crates/goose/src/session/session_manager.rs:34) and the database issession_dir.join(DB_NAME)(:1116). So the first read aftersession/newrefused the member with "the session store at ... cannot be read (unable to open database file)", and installing the engine could not change it.What changes:
SessionStoregainsfolder, a recorded fact besidefileandjournal_mode.SESSIONS_FOLDERconstant, so no value is restated as a literal.theSessionStoreOfjoins the data folder, the folder and the file."folder": "sessions", so no other fact drifted.Evidence: the path assertion in
the_session_store_read_back.node-test.tswas changed first and run red (+ '/r/data/sessions.db'vs- '/r/data/sessions/sessions.db'), then green with the fix; 80 tests over the store, the engine driver and the facts parser pass,tsc --noEmitand eslint are clean.Refs macula-io/martha#102, macula-io/martha#124
The tip moved to
5439ac48, because the dropped-test check was redThe red (job
no test the base passed goes missing, run 962):4fac61e8renamed one test title insrc/launch_a_goose_member/the_session_store_read_back.node-test.ts. That title named the store underdata/, and #124 reads it underdata/sessions/, so the title changed along with the assertion it names. The check compares titles, so the base's title counted as dropped.The repair is the check's own mechanism, not a weakened test:
5439ac48is an empty commit carryingDrops-test: <path> :: <the base title>. The test is still there under its new name, and the commit says which title it renamed.Verified locally on the real pair:
node src/check_no_test_the_base_passed_goes_missing/main.ts --base 979d7a06 --head 5439ac48answers465 test file(s) compared, every title the base passed is at the tip, rc 0. The same command on7b8629acreproduced the CI red exactly, one missing title, so the job and the local run agree.The old tip's other jobs: all green except this one.
the relay loads in the recorded hostandthe clean-install proof removes its containerwere cancelled when this push superseded them, so their word on this pull request comes from the new tip. Runs 3380-3384 are queued on5439ac48.The reviewed range was
f187dd7f..7b8629ac; the tip is now5439ac48and the only addition is the claim commit. Refs #124.