Skip to content

Commit

Permalink
feat(derive): Holocene Channel Bank Checks (#572)
Browse files Browse the repository at this point in the history
* feat(derive): holocene channel bank checks

* fix(ci): stack overflow
  • Loading branch information
refcell authored Sep 27, 2024
1 parent 7952058 commit 2002e33
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 52 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
cache-on-failure: true
- uses: taiki-e/install-action@nextest
- name: cargo test
run: cargo nextest run --release --workspace --all --all-features --locked
run: RUST_MIN_STACK=33554432 cargo nextest run --release --workspace --all --all-features --locked
cargo-lint:
runs-on: ubuntu-latest
timeout-minutes: 20
Expand Down
82 changes: 41 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions crates/derive/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ lazy_static! {
&["error"]
).expect("Batch Reader Errors failed to register");

/// Tracks the number of times the channel queue was detected
/// non-empty during a frame ingestion, and new channel creation
/// was attempted post-holocene.
pub static ref CHANNEL_QUEUE_NON_EMPTY: IntGauge = register_int_gauge!(
"kona_derive_channel_queue_non_empty",
"Number of times a channel was attempted to be created in the channel bank, but the queue is non-empty post-holocene."
).expect("Channel Queue Non Empty failed to register");

/// Tracks the compression ratio of batches.
pub static ref BATCH_COMPRESSION_RATIO: IntGauge = register_int_gauge!(
"kona_derive_batch_compression_ratio",
Expand Down
Loading

0 comments on commit 2002e33

Please sign in to comment.