Skip to content

Add a parity check between two API deployments - #6

Draft
TimMonko wants to merge 1 commit into
cf/04-workerfrom
cf/05-parity-check
Draft

TimMonko wants to merge 1 commit into
cf/04-workerfrom
cf/05-parity-check

Conversation

@TimMonko

Copy link
Copy Markdown
Member

scripts/check_parity.py fetches the same v1 routes from a base URL
(default: https://api.napari.org) and a candidate, then compares status
codes and JSON bodies. It covers every fixed route, the public/ files
served at the root, and manifest, pypi, conda and shields for a sample
of plugins, by normalized name and in a non-normalized spelling.

The intended changes are reported as expected, not as failures: an
unknown plugin is now a 404 where the Next.js routes returned 500.

Against a local wrangler dev on 2026-11-15, with 40 plugins sampled:
293 routes, 290 identical, 3 expected differences, 0 failures.

Run it again against the workers.dev preview before switching DNS.


Stack created with GitHub Stacks CLI • Give Feedback 💬

@TimMonko
TimMonko added this pull request to stack #9 November 20, 2026 06:03
scripts/check_parity.py fetches the same v1 routes from a base URL
(default: https://api.napari.org) and a candidate, then compares status
codes and JSON bodies. It covers every fixed route, the public/ files
served at the root, and manifest, pypi, conda and shields for a sample
of plugins, by normalized name and in a non-normalized spelling.

The intended changes are reported as expected, not as failures: an
unknown plugin is now a 404 where the Next.js routes returned 500.

Against a local wrangler dev on 2026-11-15, with 40 plugins sampled:
293 routes, 290 identical, 3 expected differences, 0 failures.

Run it again against the workers.dev preview before switching DNS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant