Skip to content

fix(brisk): drop screenshot placeholders on the pwa host; fix sweep test breakage - #273

Merged
ralyodio merged 1 commit into
mainfrom
fix/pwa-sweep-tests
Nov 8, 2026
Merged

ralyodio merged 1 commit into
mainfrom
fix/pwa-sweep-tests

Conversation

@ralyodio

@ralyodio ralyodio commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

CI on main went red after #272. The failing step was bun run lint (biome format on test/house-aggregators.test.js: the longer pwa URLs pushed lines past the width), which stopped CI before bun test. Running the suite locally showed two more sweep-caused failures, one of them a real runtime bug.

Runtime fix (brisk adapter): SCREENSHOT still matched only brisk\.news (the sweep deliberately skipped regex-escaped forms), while BASE now points at brisk.pwa.pit.world. brisk builds its on-demand /api/screenshot placeholder on its own host, so from the pwa host those placeholders would be stored as item images. The regex now matches both hosts; the test covers both.

Test-only:

  • test/house-aggregators.test.js: biome reflow.
  • test/installmap.test.js: recordId('https://agenticjobs.pwa.pit.world/api/mcp') is agenticjobs.pwa.pit.world, not agenticjobs.work (the sweep changed the input only).

Local: lint clean; full bun test with Postgres 17 + Redis 7 was 2692 pass / 3 fail before the fix; two of those were the ones above. The third, credit codes > a code becomes a free Premium term, timed out at 5s under full-suite load on dev2 (NOAUTH noise from the box's own Redis), passes alone (13/13), and the sweep did not touch it.

🤖 Generated with Claude Code

The pwa sweep moved the brisk adapter to brisk.pwa.pit.world but, by
design, left the regex-escaped brisk\.news in SCREENSHOT alone. brisk
builds its /api/screenshot placeholder URLs on its own host, so once it
serves from the pwa host those placeholders would be carried into the
collection as item images. Match both hosts.

Also fixes the rest of the CI breakage from the sweep:
- reflow house-aggregators.test.js, whose longer URLs broke biome format
  (the step that failed in CI and hid the test failures below);
- installmap recordId test expected agenticjobs.work for an endpoint the
  sweep had moved to agenticjobs.pwa.pit.world.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit 5fd35f0 into main Nov 8, 2026
3 checks passed
@ralyodio
ralyodio deleted the fix/pwa-sweep-tests branch November 8, 2026 17:11
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.

1 participant