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
- One invariant, run after every successful install in the gate (
invariantsintests/run.sh). Whatever the case, afterwards: the compiler inlibis the pinned one; theomcinbinis 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; theInstaller: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. - 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. - Pins and installer are one thing. The pins of the file that runs must equal the pins in the
install.shof the installer commit that goes into the store; the final line says which. - Each kind has a case and a broken copy.
tests/LESSONS.tsvlists 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 (mutateintests/run.sh).
What a reviewer is asked (the brief quotes this, the verdict answers each line)
- For every sentence in
README.md, ininstall.sh --helpand in what the installer prints that says what was installed, kept or refused: which gate case holds it, and what it would take for the sentence to be false? Try the ordinary ways a person arrives there (symlinked home or workspace, an older or newer clone, a newer pinned release, a file of their own already in~/.local/bin, a folder that already has files, a differentumask). - Does a run that exits 0 leave the machine as its final lines say?
- Has any fallback been added that makes one form of run behave as another without saying so?
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.