Skip to content

Fix central-alerts cache-reuse test for Hono encoded query order - #289

Merged
admdly merged 1 commit into
mainfrom
fix/central-alerts-encoded-duplicate-query
Oct 30, 2026
Merged

admdly merged 1 commit into
mainfrom
fix/central-alerts-encoded-duplicate-query

Conversation

@admdly

@admdly admdly commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

CI (test/services/central-alerts/v1/index.test.ts > should reuse the effective page for ?limit=1) fails on main and on #287 with expected 500 to be 200.

Root cause is the Hono 4.13.14 upgrade (#286): honojs/hono#5495 fixed req.query(key) skipping an earlier encoded duplicate, so ?%6cimit=2&limit=1 now resolves to limit=2 (first-wins in string order) instead of limit=1. The test had locked the old, buggy framework behavior; the app itself maps every effective page to exactly one normalized cache key, so no app-code change is needed.

  • ?limit=1 group: ?%6cimit=2&limit=1 replaced with ?%6cimit=1&limit=2
  • New ?limit=2 group locks the corrected duplicate resolution (?%6cimit=2&limit=1, ?limit=2.0)

Hono 4.13.14 (honojs/hono#5495) fixed req.query() skipping an earlier
encoded duplicate, so ?%6cimit=2&limit=1 now resolves to limit=2
(first-wins in string order) instead of limit=1. Update the ?limit=1
cache-reuse variants to use encoded-first value 1, and add a ?limit=2
case locking the corrected duplicate resolution.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-10-30T09:40:08.932538Z ba1e884 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.

@admdly admdly self-assigned this Oct 30, 2026
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
api ba1e884 Oct 30 2026, 09:39 AM

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Auto-approved: Updates a central-alerts cache-reuse test to match Hono 4.13.14's first-wins resolution of encoded duplicate query params. Test-only change; no app code, API, or operational behavior changes.

Turn on auto-fix | Re-trigger cubic

@admdly
admdly merged commit f3d31c6 into main Oct 30, 2026
9 checks passed
@admdly
admdly deleted the fix/central-alerts-encoded-duplicate-query branch October 30, 2026 09:40
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