Repository navigation
Conversation
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| ManagedBy: billing.SubscriptionManagedLine, | ||
| UniqueReferenceID: "usage-based-missing-meter-collection", | ||
| FeatureKey: apiRequestsTotal.Feature.Key, | ||
| }), |
Contributor
There was a problem hiding this comment.
These clock changes are not immediately paired with defer clock.UnFreeze() in the same scope. A subtest failure can therefore leave the shared clock frozen until outer cleanup runs, weakening subtest isolation; the same pattern also occurs at lines 270, 352, and 493.
Context Used: AGENTS.md (source)
Prompt To Fix With AI
This is a comment left during a code review.
Path: test/credits/credit_then_invoice_test.go
Line: 199
Comment:
**Unpaired frozen-clock changes**
These clock changes are not immediately paired with `defer clock.UnFreeze()` in the same scope. A subtest failure can therefore leave the shared clock frozen until outer cleanup runs, weakening subtest isolation; the same pattern also occurs at lines 270, 352, and 493.
**Context Used:** AGENTS.md ([source](https://github.com/openmeterio/openmeter/blob/main/AGENTS.md))
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
turip
force-pushed
the
feat/billing-dlq-regression-tests
branch
from
September 8, 2026 07:35
98c4e97 to
f561198
Compare
turip
changed the base branch from
main
to
feat/billing-line-engine-billability
September 8, 2026 07:35
turip
force-pushed
the
feat/billing-line-engine-billability
branch
from
September 8, 2026 14:09
19ea3e0 to
b7c8d73
Compare
Base automatically changed from
feat/billing-line-engine-billability
to
main
September 9, 2026 07:55
turip
force-pushed
the
feat/billing-dlq-regression-tests
branch
from
September 9, 2026 08:26
f561198 to
ae14860
Compare
turip
force-pushed
the
feat/billing-dlq-regression-tests
branch
from
September 9, 2026 14:49
136ff43 to
1997978
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Current status
This PR is intentionally draft and the new regression scenarios expose existing failures. The active-run case currently returns the same error observed in production: an active realization run already exists for this charge.
Verification
No Jira ticket.
The PR appears safe to merge because no blocking failure remains.
Summary
Diagram