fix(review): canonicalize calibration login lookup#5206
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5206 +/- ##
=======================================
Coverage 94.34% 94.34%
=======================================
Files 473 473
Lines 39973 39974 +1
Branches 14573 14573
=======================================
+ Hits 37712 37713 +1
Misses 1585 1585
Partials 676 676
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-12 09:52:15 UTC
⏸️ Suggested Action - Manual Review
Review summary Blockers
Nits — 5 non-blocking
Concerns raised — review before merging
Review context
Contributor next steps
Signal definitions
[BETA] Chat with GittensoryAsk Gittensory a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/gittensory-commands 🟩 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.
|
7e1f312 to
7063d30
Compare
Motivation
Description
computeContributorCalibrationby trimming and lower-casing the input and querying withWHERE lower(login) = ?so all case variants map to the same ledger history (src/review/predicted-gate-calibration-ledger.ts).test/unit/predicted-gate-calibration-ledger.test.ts).worker-configuration.d.ts).Testing
npx vitest run test/unit/predicted-gate-calibration-ledger.test.ts, which passed (24 tests).npm run cf-typegen:checkand regeneratedworker-configuration.d.ts, and the cf-typegen check passed after regeneration.npm run typecheck, which failed due to unrelated existing type errors elsewhere in the tree (not introduced by this change), preventing a fullnpm run test:cigreen run in this environment.npm audit --audit-level=moderatereturned a registry error (403) in this environment and did not complete.Codex Task