Skip to content

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

Backlog

Description

@vmillet-dev

Context — The review of #1883 compared the 44 former scenarios with the thirteen journeys and the unit and kittest tests. Two things only the assembled application does are checked nowhere any more:

  • that nothing a person writes can be read from the profile on the disk — the database, its copies, what a restore, a recovery or a forgotten phrase sets aside, the logs, the preferences — and the passphrase nowhere. The core's tests seal value by value; the former 37_recette_socle read the whole profile.
  • that the plain copy an opened attachment leaves under the profile is gone at the exit, and before the gate after a crash (ui::app, on launch and on exit). The former 11_attachments held it.

Change — A journey 14 writes something of every sealed kind, quits and reads the whole profile for it; it opens an attachment, quits, then crashes with one open, and finds the plain copy gone each time. Journey 12 ends by reading what it set aside. Each journey runs alone, on its own profile.

To do

  1. platform::desktop::from_scenario: in the e2e flavour the desktop's « open with » starts no program and answers that it did; app picks it as it picks the updater's.
  2. SDK, a disk() area: expect_nowhere(words) reads every file and every name under the profile, fails on a file it cannot read and on a profile without a database; expect_somewhere(word) waits for a word, skipping what SQLite holds while DevNotes runs. attachments().open(n); App::crash_and_launch_again(), which stops at the gate.
  3. e2e/tests/14_nothing_readable_on_the_disk.rs: a marker in a snippet's title, code, context and field value, a Note, a task, a calculation, a drawing's text, a space, a folder, an attachment's name and bytes, a global variable, an HTTP request's name, address, header and body, an environment's secret, sent to the journey's server; a tag, plain by design, found as the witness that the scan reads the database.
  4. Journey 12 ends with a step: what it set aside holds nothing of what was written after the copy.
  5. CONTRIBUTING.md, the desktop-e2e-testing skill, docs/architecture.md and CLAUDE.md say fourteen journeys.
  6. A word found in the clear is a defect: its own bug ticket and fix, the journey never weakened.

Tests

  • Journeys 14 and 12 green on Windows, Linux and macOS, each also run alone.
  • A plain file put in a profile by hand makes expect_nowhere fail and name it (checked locally, not committed).

Activity

  1. added
    test
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    test

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions