Skip to content

fix: add --allow-past-effective-time to simple benchmark - #3490

Open
dheerajodha wants to merge 1 commit into
conforma:mainfrom
dheerajodha:fix-simple-benchmark-effective-time
Open

fix: add --allow-past-effective-time to simple benchmark#3490
dheerajodha wants to merge 1 commit into
conforma:mainfrom
dheerajodha:fix-simple-benchmark-effective-time

Conversation

@dheerajodha

Copy link
Copy Markdown
Contributor

The simple benchmark uses --effective-time with a past date (2024-12-10) but does not pass --allow-past-effective-time, which is now required since past effective times are rejected by default.

What:

Add --allow-past-effective-time flag to the simple benchmark's argument list.

Why:

The simple benchmark uses --effective-time 2024-12-10T00:00:00Z (a past date) but past effective times are now rejected by default (PR #3424). Without this flag the benchmark fails at runtime with: "effective time … is in the past; use --allow-past-effective-time to override".

The stress benchmark already has this flag (added in EC-1818). This brings the simple benchmark in line.

Tickets:

N/A — pre-existing issue surfaced during EC-1819 review.

The simple benchmark uses --effective-time with a past date
(2024-12-10) but does not pass --allow-past-effective-time, which
is now required since past effective times are rejected by default.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: e9c502e8-ccf3-4be1-a18f-4d31bc643b81

📥 Commits

Reviewing files that changed from the base of the PR and between 0250ec5 and 4a13b71.

📒 Files selected for processing (1)
  • benchmark/simple/simple.go

📝 Walkthrough

Walkthrough

The benchmark validation command now includes the --allow-past-effective-time option.

Changes

Benchmark validation

Layer / File(s) Summary
Add validation option
benchmark/simple/simple.go
The benchmark validation command includes --allow-past-effective-time.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely identifies the added flag for the simple benchmark.
Description check ✅ Passed The description includes complete What, Why, and Tickets sections with clear context and runtime impact.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@fullsend-ai-review

fullsend-ai-review Bot commented Aug 11, 2026

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 1:09 PM UTC · Completed 1:15 PM UTC

Commit: 87c4a29 · View workflow run →

@fullsend-ai-review

Copy link
Copy Markdown

Looks good to me


Labels: PR fixes a broken benchmark (runtime failure due to missing CLI flag)

@fullsend-ai-review fullsend-ai-review Bot added ready-for-merge All reviewers approved — ready to merge bug Something isn't working labels Aug 11, 2026
@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
acceptance 54.42% <ø> (+<0.01%) ⬆️
generative 16.35% <ø> (-0.01%) ⬇️
integration 27.56% <ø> (-0.01%) ⬇️
unit 72.14% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ready-for-merge All reviewers approved — ready to merge size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant