Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(derive): Past batch validity variant #684

Merged
merged 3 commits into from
Oct 10, 2024
Merged

Conversation

clabby
Copy link
Collaborator

@clabby clabby commented Oct 10, 2024

Overview

Adds a new variant to the BatchValidity enum that activates with Holocene. When a batch is outdated, after Holocene, the Past variant is returned. In the BatchQueue, this instructs a silent drop, without flushing the active span batch and channel.

We should follow this PR up with removing the additional check within add_batch, deferring to the validity checks in derive_next_batch.

@clabby clabby self-assigned this Oct 10, 2024
@clabby clabby added K-feature Kind: feature A-derive Area: kona-derive crate labels Oct 10, 2024
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

Attention: Patch coverage is 82.41758% with 16 lines in your changes missing coverage. Please review.

Project coverage is 93.7%. Comparing base (61f77ad) to head (d886af1).
Report is 4 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
crates/derive/src/stages/batch_queue.rs 83.3% 7 Missing ⚠️
crates/derive/src/stages/batch_stream.rs 0.0% 6 Missing ⚠️
crates/derive/src/batch/span_batch/batch.rs 0.0% 3 Missing ⚠️
Additional details and impacted files

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@clabby clabby force-pushed the cl/batch-validity-fix branch from ba4f3df to b245c70 Compare October 10, 2024 14:30
@clabby clabby force-pushed the cl/batch-validity-fix branch from b245c70 to 5225b43 Compare October 10, 2024 14:32
@clabby clabby force-pushed the cl/batch-validity-fix branch from 118593a to 5225b43 Compare October 10, 2024 14:53
@clabby clabby changed the title feat(derive): BatchOutdated validity variant feat(derive): Past batch validity variant Oct 10, 2024
@refcell
Copy link
Collaborator

refcell commented Oct 10, 2024

This LGTM - rip coverage

@clabby clabby marked this pull request as ready for review October 10, 2024 19:35
@refcell refcell added this pull request to the merge queue Oct 10, 2024
Merged via the queue into main with commit 0108f73 Oct 10, 2024
16 of 17 checks passed
This was referenced Oct 10, 2024
refcell pushed a commit that referenced this pull request Oct 18, 2024
* feat(derive): `BatchOutdated` validity variant

* `BatchValidity::Past`

* log rename
@github-actions github-actions bot mentioned this pull request Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-derive Area: kona-derive crate K-feature Kind: feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants