Repository navigation
fix(pages): link the docs the site publishes, and gate that it does - #430
Merged
Merged
Conversation
The first deploy of objectfs.io served every page under /docs/ and the landing page pointed at none of them. Its nav and footer both sent a reader to github.com/scttfrdmn/objectfs#readme, so the documentation site pages.yml exists to publish had no entry point but a typed URL. Nothing in the PR that added it could have caught this. TestLandingPageIsDeployed WithItsAssets skips `docs/` because there is no such directory in web/ — mkdocs assembles it — the workflow asserts _site/docs/index.html exists rather than that anything points at it, and a link checker over the built site would have found zero broken links. The failure is an absent link, invisible to every check that starts from the links that are present. So TestLandingPageLinksToTheDocs asserts both surfaces carry it, and that "Documentation" does not point back at GitHub: the docs are published from this repository now, and two documentation destinations with no rule for which is current is the arrangement that let four non-existent install channels survive in docs-platform/. Both mutations fail the intended test. Verified in a 375px iframe that the mobile menu still opens with the added link, and at 900 and 1280 that the desktop nav has room for it. The narrow screenshots that first looked like an overflow were a headless capture-width floor, not a layout bug — the geometry probe reports the hamburger at display:flex inside the viewport at every width down to 375.
… gated too The absent link had two directions and the first deploy shipped both. The landing page pointed at none of /docs/ — fixed earlier in this branch — and every page mkdocs built pointed only inward, because Material links its header logo and title to the docs index, which is a link to the page the reader is already on. A reader arriving from a search result was inside a documentation subdirectory with no exit to the project's front page. extra.homepage now names the apex. Verified against a real build, not asserted: with mkdocs-material, mkdocs-minify-plugin and mike installed as pages.yml installs them, --strict builds clean and both the header logo and the mobile drawer title carry href=https://objectfs.io/ on the index and on a deep page. Gated, because removing the key breaks nothing any other check can see: --strict still succeeds, the tree is still complete, and every internal link still resolves. The only difference is that the one edge out of the tree is gone again, which is the same shape of failure as the inbound half. The check matches the whole line rather than a substring. The first version used strings.Contains, which `homepage: https://objectfs.io/docs/` satisfies while restoring the defect exactly — and the comment claiming that trap was covered was sitting directly above the code that did not cover it. Mutation found it. Three mutants now fail: key removed, homepage pointed at /docs/, homepage pointed at GitHub.
scttfrdmn
added a commit
that referenced
this pull request
Aug 14, 2026
…433) * ci: stop install-script from throwing away the output it asserts on The success branch captured the install output in a command substitution without `|| true`, so under `set -e` a failing install killed the step at the assignment and `echo "$out"` never ran. The log then held only bash's /opt/ofs/bin/objectfs: No such file or directory Process completed with exit code 127 and none of the three ::error:: messages below it — messages written specifically for the runs where they would now never be printed. The refusal branch above already has `|| true` for exactly this reason. Found while diagnosing a transient rockylinux:9 failure on #431 whose only diff was a toolchain line. The same job passed on main and on #430 at the same time, and the rerun was green, so the failure was a flake — but the flake's cause is unrecoverable because the step discarded the evidence. A job whose assertions can only be read when they pass reports the same non-answer this job exists to reject. The idempotency step below has the same shape and does not need the same fix: its substitution ends in `[ ... ] && echo SAME || echo DIFFERENT`, which exits 0 regardless. * docs(install): objectfs.io is served now, and that is not why the repo host is absent install.sh's header said "Both objectfs.io and packages.objectfs.io resolve to registrar parking IPs", which stopped being true when #429 put the landing page and the docs on Pages. The conclusion is unchanged and the reason it is unchanged is the part worth writing down: Porkbun answers a wildcard, so packages.objectfs.io resolves exactly like every other name under the domain and completes no TLS handshake. Resolution was never the evidence — which is the same argument the landing-page domain test exists to make.
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.
#429 deployed. Verifying the live site turned up a defect it shipped: the landing page links nothing under
/docs/.…and every href on the landing page:
The nav has no docs entry at all, and the footer's "Documentation" points at GitHub's rendered README. The documentation site this workflow exists to publish has no entry point but a typed URL.
Why nothing caught it
TestLandingPageIsDeployedWithItsAssetsskipsdocs/— correctly, since no such directory exists inweb/; mkdocs assembles it into_site/docs.pages.ymlasserts_site/docs/index.htmlexists, not that anything points at it.The failure is an absent link, which is invisible to every check that starts from the links that are present. That is the whole reason this gets a test rather than just a fix.
The fix
docs/in the nav and in the footer, with the footer's "Documentation" repointed from GitHub to the published site.TestLandingPageLinksToTheDocsasserts both surfaces carry it, and separately that "Documentation" does not point at GitHub — the docs are published from this repository now, and two documentation destinations with no rule for which is current is the arrangement that let four non-existent install channels survive indocs-platform/. Both mutations fail the intended test, with both assertions firing independently.Verification
go build ./... && gofmt -l . && go vet ./... && golangci-lint run— cleango test -race ./internal/config/— clean; 2 new mutations caughtdocs/stub: mobile menu at 375px opens with the added link, desktop nav has room at 900px and 1280pxOne note on method: the first narrow screenshots looked like the hamburger had been pushed off-screen. It had not — headless Chrome has a capture-width floor around 500px, so a 375px request laid out wider and cropped. A geometry probe in a sized iframe reports the hamburger at
display: flex, inside the viewport, at every width down to 375, and rendering the page in a 375px iframe shows it correctly. Worth recording because the artifact is convincing and looks exactly like a responsive bug.The same edge was missing in the other direction
Checked
/docs/for links back out and found none. Material points its header logo and title at the docs index by default — a link to the page the reader is already on — so every page mkdocs built linked only inward. A reader arriving from a search result was inside a documentation subdirectory with no exit to the project's front page.extra.homepage: https://objectfs.io/fixes it. Verified against a real build rather than asserted: withmkdocs-material,mkdocs-minify-pluginandmikeinstalled the waypages.ymlinstalls them,mkdocs build --strictis clean and both the header logo and the mobile drawer title carryhref=https://objectfs.io/— on the index and on a deep page (features/read-ahead/).Gated by
TestTheDocsLinkBackToTheLandingPage, for the same reason as the inbound half: removing the key breaks nothing any other check can see.--strictstill succeeds, the tree is still complete, every internal link still resolves, and the only difference is that the one edge out of the tree is gone.The check matches the whole line, not a substring — and that was found by mutation, not by writing it correctly. The first version used
strings.Contains, whichhomepage: https://objectfs.io/docs/satisfies while restoring the defect exactly. The comment claiming that trap was covered was sitting directly above the code that did not cover it. Three mutants now fail:extra:homepagepointed at/docs/homepagepointed at GitHub