Skip to content

E2E: a journey checks nothing written is readable on the disk - #1888

Open
vmillet-dev wants to merge 1 commit into
dev/1.3.2from
e2e-disk-journey
Open

vmillet-dev wants to merge 1 commit into
dev/1.3.2from
e2e-disk-journey

Conversation

@vmillet-dev

Copy link
Copy Markdown
Owner

Closes #1884

Two things only the assembled application does, which no test checked any more since #1879: nothing a person writes can be read from the profile on the disk, and an opened attachment's plain copy goes with DevNotes.

Journey 14, « Nothing readable on the disk » — on its own profile, it runs alone:

  1. a note of each kind in a space and a folder of its own: a snippet (title, code, context, a tag), a Note, a todo list, a calculation, a drawing with a text;
  2. a file attached, a {{field}} filled and copied, a global variable, a word searched;
  3. a request with a header, a JSON body and an environment's secret, sent to the journey's server and saved;
  4. DevNotes closed, every file of the profile and every name under it is read: none of the 24 words written, nor the passphrase. The tag, plain by design, is read — what proves the scan reads the database;
  5. an attachment opened leaves its plain copy under the profile while DevNotes runs, gone once closed;
  6. after a crash with one open, the copy is gone before the gate is passed, and the file is still attached.

Journey 12 ends by reading what it set aside — the library replaced by the restore, the damaged one, the archived one: neither what was written after the copy nor either phrase.

SDK — disk(): expect_nowhere(words) reads every file and every name, fails on a file it cannot read and on a profile without a database, and names the file and the word it found; expect_somewhere(word) waits for a word. App::while_closed(|disk| …), App::crash_and_launch_again(), attachments().open(n).

The e2e flavour — platform::desktop::from_scenario: « open with » starts no program and says it did; app picks it as it picks the updater's. A journey never opens a program of the machine any more, a link included.

Found — nothing in the clear: the drawings' pictures, the global variables, the search, the history, the logs and the copies all read nothing of what was written.

Checks run locally (Windows, on a desktop of their own)

  • cargo fmt --all --check; cargo clippy -p e2e -p app -p platform --all-targets --all-features -- -D warnings (with -A clippy::needless_pass_by_value: platform::shortcuts::system fails it on Windows alone, untouched here).
  • Journeys 14 and 12, each alone, then together: green.
  • With the tag added to the forbidden words, journey 14 fails: « … devnotes.sqlite3 says « larkspur-tag » » (not committed).

Journey 14 writes every sealed kind, quits and reads the whole profile; an opened attachment's plain copy goes at the exit and before the gate after a crash. Journey 12 ends by reading what it set aside. In the e2e flavour, « open with » starts no program.
@vmillet-dev vmillet-dev added the test Test suites: coverage, structure, reliability label Dec 4, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Test suites: coverage, structure, reliability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant