interplane.Get Omega
Read in your language

interplane-install

This project has not described itself yet.

Brought by drakestapleton

branch main Branches Tags History

interplane-install / REVIEW-LESSONS.md

45 lines · 3166 bytes Raw Blame History Source

Review lessons (read before a review; the reviewer's brief quotes this file, and the verdict answers it)

Three reviews of this installer found the same kind of defect each time: **what the installer or its README tells a person was installed is not what is on the machine**, in a case the author's own fixtures did not cover (a symlinked folder, a next Omega release, an older installer run later, an edited install.sh, a password with an @, a folder with other files in it).

Why the earlier correction did not end it: a fixture list written by the author can never be complete, and each review adds cases the author did not think of. So the correction does not depend on listing cases.

What replaced it

  1. One invariant, run after every successful install in the gate (invariants in tests/run.sh). Whatever the case, afterwards: the compiler in lib is the pinned one; the omc in bin is the pinned one or a file of the person's own that the run said it kept; the store tool is the pinned commit; the command is the store's installer; the Installer: line names that installer; the store verifies. A new way of running the installer is checked by it without anyone writing a case for that claim. It ends because it compares two states (what is installed, what the run said) and not a list of scenarios.
  2. The installer refuses instead of falling back. A checkout that cannot be used (a copy, a subfolder, edited install.sh, an installer older than the store's) stops the run before anything is written. A fallback is the way a promise silently turns into another one.
  3. Pins and installer are one thing. The pins of the file that runs must equal the pins in the install.sh of the installer commit that goes into the store; the final line says which.
  4. Each kind has a case and a broken copy. tests/LESSONS.tsv lists each kind with the name prefixes of the gate cases that hold it; the gate fails when one has no passing case. Each fix is also run against a copy of the installer with that fix removed, which the gate's own cases must reject (mutate in tests/run.sh).

What a reviewer is asked (the brief quotes this, the verdict answers each line)

Size of this correction

The invariant check and the lesson list are part of this repository's own gate only. They block nothing in any other repository. The repository had five commits at this change and no landed main on Interplane, so there was no history of landed commits to replay the new check over.