Code Review Bench PR #25691 - Switched to time-based domain warmup#10
Code Review Bench PR #25691 - Switched to time-based domain warmup#10ketkarameya wants to merge 2 commits intobase_pr_25691_20260125_3977from
Conversation
| return Math.min(scaledIncrease, absoluteIncrease); | ||
| async getWarmupLimit(emailCount: number): Promise<number> { | ||
| const day = await this.#getDaysSinceFirstEmail() | ||
| if (day > this.#warmupConfig.totalDays) { |
There was a problem hiding this comment.
⚠️ Bug: Off-by-one: day 42 doesn't return Infinity as intended
The condition day > this.#warmupConfig.totalDays (i.e., day > 42) means that on day 42 exactly, the code falls through to the exponential formula instead of returning Infinity. This produces a limit of ~237,137 on day 42, not unlimited sending.
The PR context explicitly states "Day 42+: Infinity (unlimited)" and the unit test at line 284-301 expects Infinity for daysAgo(42). With the current > check, that test would fail because 42 > 42 is false.
The fix is to use >= instead of >:
if (day >= this.#warmupConfig.totalDays) {This ensures day 42 and beyond correctly return Infinity, matching the documented 42-day warmup period (days 0-41 = 42 days of warming).
Was this helpful? React with 👍 / 👎
| if (day > this.#warmupConfig.totalDays) { | |
| if (day >= this.#warmupConfig.totalDays) { |
- Apply suggested fix
There was a problem hiding this comment.
Configure merge blocking · Maintainers can dismiss this review. Gitar never approves changes.
Code Review
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
Code Review Bench PR TryGhost#25691 - Switched to time-based domain warmup
Benchmark PR for Gitar evaluation
Original PR: agentic-review-benchmarks#9
Changes domain warmup strategy from count-based to time-based approach.
Summary by Gitar
limit(day) = 200 × 1000^(day/41)csd_email_count(ASC order) to calculate days elapsed since warmup startWarmupScalingTable(complex threshold table) toWarmupVolumeOptions(three parameters: start, end, totalDays) reducing code by ~19 lines net