interplane-install
This project has not described itself yet.
Brought by drakestapleton
interplane-install / REVIEW-LESSONS.md
| 1 | # Review lessons (read before a review; the reviewer's brief quotes this file, and the verdict answers it) |
| 2 | |
| 3 | Three reviews of this installer found the same kind of defect each time: **what the installer or its |
| 4 | README tells a person was installed is not what is on the machine**, in a case the author's own |
| 5 | fixtures did not cover (a symlinked folder, a next Omega release, an older installer run later, an |
| 6 | edited `install.sh`, a password with an `@`, a folder with other files in it). |
| 7 | |
| 8 | Why the earlier correction did not end it: a fixture list written by the author can never be |
| 9 | complete, and each review adds cases the author did not think of. So the correction does not depend |
| 10 | on listing cases. |
| 11 | |
| 12 | ## What replaced it |
| 13 | |
| 14 | 1. **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. |
| 21 | 2. **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. |
| 24 | 3. **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. |
| 26 | 4. **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 | |
| 43 | The invariant check and the lesson list are part of this repository's own gate only. They block |
| 44 | nothing in any other repository. The repository had five commits at this change and no landed main |
| 45 | on Interplane, so there was no history of landed commits to replay the new check over. |