fix(selfhost): defer queue admission when rate-limit resetAt is unparseable#1910
fix(selfhost): defer queue admission when rate-limit resetAt is unparseable#1910galuis116 wants to merge 2 commits into
Conversation
9d57831 to
48965c1
Compare
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 Gittensory review result - reject/close recommendedReview updated: 2026-06-30 22:39:09 UTC
🛑 Suggested Action - Reject/Close
Review summary Blockers
Nits — 6 non-blocking
Why this is blocked
CI checks failing
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Apply a single conservative admission delay anchored to the observation timestamp, then admit work so queue jobs can refresh malformed resetAt values instead of deferring forever.
48965c1 to
630d142
Compare
JSONbored
left a comment
There was a problem hiding this comment.
See review for blockers, as well as failed CI.
Summary
githubObservedRateLimitDelayMsnow returns a conservative 60s admission delay when REST budget is at/below the floor butresetAtis malformed, matchingdelayUntil's fail-closed behavior.Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.No upstream issue was opened: neither contributor token has
CreateIssuepermission onJSONbored/gittensory. This is a narrow fail-closed guard for self-host queue admission.Validation
git diff --checknpm run actionlintnpm run typechecknpm run test:coveragelocally;codecov/patchrequires ≥97% coverage of the lines AND branches you changed (aim for 98%+ on your diff so CI variance does not fail near the threshold). Global coverage is a non-blocking trend with a loose 90% backstop, not the gate.npm run test:workersnpm run build:mcpnpm run test:mcp-packnpm run ui:openapi:checknpm run ui:lintnpm run ui:typechecknpm run ui:buildnpm audit --audit-level=moderateIf any required check was skipped, explain why:
Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
N/A — backend-only change.
Notes
Pairs with the Cloudflare-worker
shouldWaitForGitHubRateLimitguard; both defer conservatively whenresetAtcannot be parsed.Made with Cursor