Skip to content

CI: fail when a page is missing from the Worker route list - #361

Merged
drumpat01 merged 1 commit into
mainfrom
claude/issue-357-ci-route-list-check
Oct 23, 2026
Merged

drumpat01 merged 1 commit into
mainfrom
claude/issue-357-ci-route-list-check

Conversation

@drumpat01

Copy link
Copy Markdown
Owner

Closes #357

Why CI didn't catch /travel-journal-app-iphone: JourneyDeck CI (journeydeck-ci.yml) runs npm test = test:application + test:e2e + checks. npm run test:site (cloudflare/site/tests, incl. 'every web file is in the route map' and 'a new app.ts route that is not in the map fails this test') is not part of that chain and no workflow runs it, so those tests failed on main without blocking anything.

Fix (minimal, package.json only):

  • New script test:site:routes = the route-map tests only (cloudflare/site/tests/routes.test.ts with the CSV hook; no workerd, ~1 s).
  • Added it to test:application after test:server, so the existing CI step npm test now fails when a web page or app.ts route is missing from route-list.csv.
  • Verified: passes on current main (10/10); adding an unlisted web/zz-new-page.html makes it fail ('every web file is in the route map'). npm run test:server 90/90.

Not included: a workflow-file step. Editing .github/workflows needs a token with workflow scope, which this bot doesn't have; the package.json route needs no workflow change. The full test:site suite isn't added to CI because its workerd retention test was flaky locally.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-23T15:27:11.217342Z
We couldn’t complete this review. Comment @codex review to try again.
e921c91 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@drumpat01
drumpat01 merged commit 097dc75 into main Oct 23, 2026
1 check failed
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.

CI: fail when a new page is missing from the Worker route list

1 participant