Skip to content

scrape: test-health batch e3855-scrape-01 #3924

Closed

Description

@schlessera

Context

Batch e3855-scrape-01 of the test-health push in #3855: all 8 packages/scrape/tests/*.test.ts files, audited in four clusters through all eight lenses (run th-20261110210631-dee915).

Fixed findings:

  • packages/scrape/tests/jsonld.test.ts:75 (weak-matcher): "ignores scripts that are not JSON-LD" asserted only a document count of one, so an extractor that took the application/json script instead of the ld+json one still passed. It now asserts the posting document itself.
  • packages/scrape/tests/adapter.test.ts:19 (modules: finance and jobs test fixtures still use stock company names instead of the Odysseus world #2787, fixture world): the listing fixture used the stock names Acme GmbH and Beta AG. They are now Ithaca Shipwrights GmbH and Phaeacian Fleet AG, with every assertion kept.
  • opaque-failure in adapter.test.ts:67, address-policy.test.ts:124 and jsonld.test.ts:61: boolean some/every/> 0 checks now compare values, so a failure prints them.

Scope

Test code under packages/scrape/tests/ only.

Out of scope

Product code, timeouts and deadlines, shard and selection rules.

Acceptance criteria

  • Every strengthened assertion is shown to fail against a mutated guard and pass once it is restored, recorded as a killed mutation receipt.
  • bun scripts/test-health.ts batch verify --base origin/epic/3855-test-health --head HEAD gives ok: true, with no test removed.
  • git grep -inE "acme|globex|initech" -- packages/scrape returns nothing.

Verification

bun run test packages/scrape, the batch gate above, and hosted proof on the pull request.

Contract impact

Tests only. No shipped runtime or contract change.

Activity

  1. added this to the 0.45.0 milestone on Nov 10, 2026
  2. added
    type: test
    area: scrape
    priority: p1
    on Nov 10, 2026
  3. schlessera commented on Nov 11, 2026

    @schlessera
    OwnerAuthor

    Delivered by #3926, which merged into epic/3855-test-health as afdfb0839 (the push in #3855). It landed in the combined merge without proof of its own; the gate, typecheck and check:pr passed on the combined branch. The epic's two exhaustive runs on dc2439551, 42996974186 and 42997012467, then passed. GitHub does not apply Closes for a pull request into a non-default branch, so I'm closing this by hand. The change reaches main with the epic's single landing pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: scrapepriority: p1type: test

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions