Skip to content

fix(cli): offline level snapshot reports what ran; unreachable start URL writes a report, exit 5 #1275 #1269 - #1297

Closed
nc9 wants to merge 2 commits into
mainfrom
fix/1275-1269-offline-unreachable
Closed

nc9 wants to merge 2 commits into
mainfrom
fix/1275-1269-offline-unreachable

Conversation

@nc9

@nc9 nc9 commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #1261

What changed

  • eeat/about-page recognises /wer-wir-sind and /unsere-geschichte (also under /pages/, with a trailing slash or .html).
  • /team, /the-team, /das-team, /agentur and /agency are deliberately NOT built-in slugs (a team page is often not an About page, an agency page is often a service page); a test pins that, and the docs say so.
  • New paths option (array of strings, max 50, each 1 to 512 characters, default []) on eeat/about-page, eeat/contact-page and eeat/privacy-policy, checked before the built-in slugs. Patterns use matchesExcludePattern, the same matcher as excludePatterns: a substring of the path, /exact-segment/, or regex:. A crawled page at a configured path satisfies the rule with no schema type; a configured path that pages link to but the crawl did not fetch is reported as linked but not crawled, as for a built-in slug; on the privacy rule, links to a configured path count toward the privacy-linked coverage.
  • The option is declared in each rule's optionsSchema, so the existing rule-options preflight (squirrel config validate, the audit's preflight) flags a paths value that is not an array of strings and lists paths among the rule's options.
  • No rule added or removed, rule count unchanged, no perRuleTally change (golden pins did not move). legal/privacy-policy shares the privacy helpers and is unchanged (it passes no paths).

Tests (failing first)

  • packages/rules/tests/eeat-page-paths-1261.test.ts (30 tests); with the source reverted, 20 of them fail.
  • Passing: that file, eeat-about-contact-not-crawled, rule-options-check, docs-rule-pages, docs-category-table, rule-verdict-scope, meta-string-limits, max-rules-limit, template-verdict-inputs, template-verdict-page-independence, streaming-rules-canonical-golden, the whole scripts/test-suites.ts --run rules suite (8170 pass, 0 fail), make validate in docs/, tsgo on rules and utils.
  • Not run: an end-to-end squirrel audit against a real Shopify or Storyblok site. Local Bun is not the pinned 1.4.4.

Open points

  • paths uses substring semantics by default (the excludePatterns matcher), so paths = ["/pages/manufaktur"] also matches /pages/manufaktur-extra; use /pages/manufaktur/ or regex: for an exact match. Documented.

Docs: docs/rules/eeat/about-page.mdx, contact-page.mdx, privacy-policy.mdx (Options tables) and docs/configuration/rule-options.mdx. Skill: none.

Review follow-ups

  • audit-run-lifecycle-wiring.test.ts now expects exit 5 for the unreachable start URL.
  • TLS classification: classifyAuditFailureReasonText now matches certificate verification, unknown certificate, ssl routines and wrong version number (Bun and OpenSSL wording), so the TLS-to-plain-http e2e passes on macOS and Linux.
  • Timeout end to end: a server that accepts and never answers gives Connection timed out, which the shared failure vocabulary files under connection (its parity corpus pins "Connection timed out" to connection), so the test asserts that, and the docs now say connection covers a timed-out connection.
  • Docs: auditLevel.settings are described as the effective settings (output.mdx), docs/reports.mdx <audit-level> documents offline, cloud-checks, render and external-links, and the unreachable example shows the real getaddrinfo ENOTFOUND text.
  • CHANGELOG calls out blocked exit 1 to 3 as breaking for scripts.
  • Fixed the exit-code comment drift, the ?. No audit ran double punctuation, and an unreachable run no longer leaves its project folder behind (checked on a fresh HOME).
  • Private API: auditLevel is read through the tolerant parseResolvedAuditSettings (apps/api active-runs, admission-dispatch, audit-billing, not-checked; the register route's level is auditLevelNameSchema), never a strict schema, and offline runs neither register nor publish, so the new offline key cannot be rejected. An older API would simply drop it.

nc9 added 2 commits October 30, 2026 10:25
…URL writes a report and exits 5; blocked always exits 3 #1275 #1269

Signed-off-by: Nik Cubrilovic <[email protected]>
… settings docs, no empty project dir, breaking-exit note #1269 #1275

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9

nc9 commented Oct 30, 2026

Copy link
Copy Markdown
Contributor Author

Landed in v0.0.142 via the stacked release PR #1331: a8acade5 and the commits after it on main (rebase-merged, so this PR shows as closed rather than merged).

@nc9 nc9 closed this Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

eeat/about-page: more German slugs and a paths option for site-specific about pages

1 participant