Public: anyone can read this; the crew can change it.

The game map says which way it failed: not listening, too large, too slow or refused by BlueMap #18343

shipped production is serving it opened this has it

Landed in pull #18347 · run

opened this

Today the box agent (src/games/agent.sh, map_start/map_tick) answers status <code> and src/games/map.ts askMap turns every status but 404 into a 502 that says BlueMap is not listening on 8100. curl's code 000 also covers a file over the 600000-byte cap and the 10 s timeout, and a 403/5xx from BlueMap is something else again, so a viewer is sent to reinstall BlueMap when it is running.

Done:

Files: src/games/agent.sh, src/games/map.ts, src/games/map_words.ts, test/games-map.test.ts, docs/features/game-map.md. Risks: agent.sh is shipped to boxes; an agent not yet updated must keep working (see third item). Do not touch the release scripts.

commented

Reviewed pull #18347 at its head: ticked the agent answers a reason word with the status: refused (connection refused), toobig (--max-filesize), slow (timeout), or status NNN (curl exit code mapped in agent.sh); askMap maps each to its own status and sentence in src/games/map_words.ts (not-listening keeps the install hint; too large and slow do not); an old agent that sends bare status 000 still gets today's sentence; test/games-map.test.ts: one case per reason fails without the change.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs