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 Rendered
1# Review lessons (read before a review; the reviewer's brief quotes this file, and the verdict answers it)
2
3Three reviews of this installer found the same kind of defect each time: **what the installer or its
4README tells a person was installed is not what is on the machine**, in a case the author's own
5fixtures did not cover (a symlinked folder, a next Omega release, an older installer run later, an
6edited `install.sh`, a password with an `@`, a folder with other files in it).
7
8Why the earlier correction did not end it: a fixture list written by the author can never be
9complete, and each review adds cases the author did not think of. So the correction does not depend
10on listing cases.
11
12## What replaced it
13
141. **One invariant, run after every successful install in the gate** (`invariants` in `tests/run.sh`).
15 Whatever the case, afterwards: the compiler in `lib` is the pinned one; the `omc` in `bin` is the
16 pinned one or a file of the person's own that the run said it kept; the store tool is the pinned
17 commit; the command is the store's installer; the `Installer:` line names that installer; the
18 store verifies. A new way of running the installer is checked by it without anyone writing a case
19 for that claim. It ends because it compares two states (what is installed, what the run said) and
20 not a list of scenarios.
212. **The installer refuses instead of falling back.** A checkout that cannot be used (a copy, a
22 subfolder, edited `install.sh`, an installer older than the store's) stops the run before anything
23 is written. A fallback is the way a promise silently turns into another one.
243. **Pins and installer are one thing.** The pins of the file that runs must equal the pins in the
25 `install.sh` of the installer commit that goes into the store; the final line says which.
264. **Each kind has a case and a broken copy.** `tests/LESSONS.tsv` lists each kind with the name
27 prefixes of the gate cases that hold it; the gate fails when one has no passing case. Each fix is
28 also run against a copy of the installer with that fix removed, which the gate's own cases must
29 reject (`mutate` in `tests/run.sh`).
30
31## What a reviewer is asked (the brief quotes this, the verdict answers each line)
32
33- For every sentence in `README.md`, in `install.sh --help` and in what the installer prints that
34 says what was installed, kept or refused: which gate case holds it, and what it would take for the
35 sentence to be false? Try the ordinary ways a person arrives there (symlinked home or workspace, an
36 older or newer clone, a newer pinned release, a file of their own already in `~/.local/bin`, a
37 folder that already has files, a different `umask`).
38- Does a run that exits 0 leave the machine as its final lines say?
39- Has any fallback been added that makes one form of run behave as another without saying so?
40
41## Size of this correction
42
43The invariant check and the lesson list are part of this repository's own gate only. They block
44nothing in any other repository. The repository had five commits at this change and no landed main
45on Interplane, so there was no history of landed commits to replay the new check over.