Repository navigation
docs: point the install one-liner at objectfs.io, and widen its gate (#138) - #441
Merged
Merged
Conversation
…138) The address is verified before anything is pointed at it. Against the deployed site: HTTP 200, content-type application/x-sh, byte-identical to scripts/install.sh, and `curl -fsSL https://objectfs.io/install.sh | bash -s -- --dry-run` resolving v0.13.0 for the running platform end to end. That order is the point — a documented URL that 404s is the defect this replaces, so pointing the docs at it first would have been the same mistake with a different host. Five surfaces documented the one-liner, not two. TestDocumentedInstallOneLiners- NameAServedAddress in the previous commit named README.md and web/index.html, passed, and missed docs/index.md, docs-platform/index.md and docs-platform/guide/getting-started.md. So it now walks the tree for any .md or .html line that both names install.sh and names a URL, rather than reading a list: an enumerated list can only check the surfaces whoever wrote it already knew about, which is the same blindness as a link checker that starts from the links that exist. CHANGELOG.md is skipped, since an entry recording that an address changed has to name both the old one and the new one. The floor is 5 rather than an exact count — a new page documenting the install is a normal thing to add, but zero or one means the walk stopped matching and the check has gone quiet rather than clean. Four mutations, one per surface, each fails naming the right file. Verified with a git-based restore after the first harness clobbered docs/index.md: it backed files up by basename into /tmp, and docs/index.md and docs-platform/index.md collide there, so the restore wrote the wrong content back. Caught by reading `git diff`, which is also what confirms the tree now holds five one-liner edits and nothing else. docs-platform/index.md's comment is updated rather than deleted. It explained that the script was fetched from the repository *because* no name under the domain was served; the apex now serves it, and the part about every other name still standing is the part worth keeping.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #440, which made
https://objectfs.io/install.shexist. This points the documentation at it — after measuring that it answers.The address is verified, not assumed
Against the deployed site, on the merge commit
a7a3805:That order is the whole point. A documented URL that 404s is the defect this replaces, so pointing the docs at it before it answered would have been the same mistake with a different host.
Five surfaces, not two
#440's gate named
README.mdandweb/index.html, passed, and missed three more files documenting the same command:docs/index.md,docs-platform/index.md,docs-platform/guide/getting-started.md.So the check now walks the tree for any
.mdor.htmlline that both namesinstall.shand names a URL, instead of reading a list. An enumerated list can only ever check the surfaces whoever wrote it already knew about — the same blindness as a link checker that starts from the links that exist, which is how four non-existent install channels survived ingetting-started.mdfor a year.CHANGELOG.mdis skipped: an entry recording that an address changed has to be able to name both the old one and the new one. The floor is 5 rather than an exact count, since a new page documenting the install is a normal thing to add — but zero or one means the walk stopped matching and the check has gone quiet rather than clean.Verification
Four mutations, one per surface, each fails naming the right file:
docs/index.md→get.objectfs.iodocs-platform/guide/getting-started.md→packages.objectfs.ioweb/index.html→docs.objectfs.ioREADME.md→install.objectfs.ioPlus, from #440 and re-checked here: a brand-new sixth page with a dead URL fails, and deleting all five one-liners fails the vacuity floor.
One thing worth recording about the harness rather than the code. The first mutation run backed files up by basename into
/tmp, anddocs/index.mdanddocs-platform/index.mdcollide there — so the restore wrote the wrong file's content back and clobbereddocs/index.mdwith 604 lines of the other file. Caught by readinggit diff, not by the tests, all of which still passed. Re-verified with agit checkout --based restore, andgit diffconfirms the tree now holds five one-liner edits and nothing else.docs-platform/index.md's comment is updated rather than deleted: it explained the script was fetched from the repository because no name under the domain was served, and the part about every other name still being unserved is worth keeping.Refs #138