lnw scan fixture: real page text, better novel #86
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#80 (spec) — implements part of #77.
What to build
The backend's lightnovelworld chapter-scan test stops passing because of a fiction. Today's fixture is trimmed from
a-will-eternaland carries a hand-written cross-series anchor annotated "the last anchor is another series" — the live survey found no Series page on this Site that carries a foreign chapter anchor, so the test that proves the scan "ignores another series" proves nothing about a page the Site actually serves.Replace it with text trimmed from a real fetched Series page, and pick a different novel:
a-will-eternal's Chapter Slug and series slug coincide — which is exactly why the defect in the parent spec slipped through — and its chapter numbering is the anomaly filed as #79.This is a prefactor. Scan behaviour does not change here; the existing scoped scan must still be green against the new fixture.
Note when fetching: these Series pages run up to ~1.18 MB and the interesting part sits far below the fold. A probe that reads the first few hundred KB will mislead you — two earlier investigations reached opposite conclusions on exactly this. Fetch the whole document. Only the
.netdomain is live;.comis shut down and serves a notice page.Acceptance criteria
a-will-eternalnor any other novel whose Chapter Slug equals its series slugcd backend && go test ./...passes with the scan logic unchangedBlocked by
Landed on main as
01aed58(merge of ticket/86-lnw-scan-fixture; commits8d310bb,5bee351).lnwSeriesFixture is now text trimmed from a real, wholly-fetched /novel/all-jobs-and-classes-i-just-wanted-one-skill-not-them-all/ page: 8 verbatim
Completeness proof, worth recording: the page's wire body is ~32 KB because it is zstd-encoded, decoding to ~307 KB — curl's size_download misleads here. The document was verified whole (proper </html>, 425 absolute chapter anchors, full wpdiscuz region) across two independent fetches.
Two deviations, both accepted:
a-will-eternal remains in two URL-shape-only tests, where it is real and carries no fiction. go test ./... green.