👷 don't run @effectionx/watch in CI website build#1163
Merged
Conversation
The www workflow was running `deno task dev`, which wraps the server in @effectionx/watch. That watcher restarts the server when files change in the working directory — including `www/built/`, where Staticalize writes crawled pages. A restart mid-crawl returned 500 to in-flight requests, causing intermittent failures on a different URL each run. Run the server directly in CI; no watcher needed.
commit: |
jbolda
approved these changes
May 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The scheduled
wwwworkflow has been failing intermittently — a different URL returns 500 each time (/guides/v3/events,/docs/collections,/x/signals,/docs/tutorial), and the failed runs all bail in ~40s while successful ones take 2m+.Theory:
deno task devwraps the server in@effectionx/watch. While Staticalize crawls pages, it writes output intowww/built/. The watcher (running fromwww/) sees those writes, restarts the server, and in-flight requests get 500. Staticalize aborts on the first non-2xx.(Locally the watcher should pick up
.gitignoreexcludes includingbuilt/, so this could be a bug in @effectionx/watch, but either way, there's no reason to watch in CI.)Approach
Replace
deno task devwithdeno run -A main.tsxin.github/workflows/www.yaml. No watcher in CI = no mid-crawl restarts.