Skip to content

Added clone method to canned random#3076

Merged
cody-littley merged 1 commit intomainfrom
cjl/canned-random-clone
Mar 16, 2026
Merged

Added clone method to canned random#3076
cody-littley merged 1 commit intomainfrom
cjl/canned-random-clone

Conversation

@cody-littley
Copy link
Contributor

Describe your changes and provide context

In order to benchmark reads against the receipt store, we need a mechanism to get random numbers on other threads. The CannedRandom utility used by cryptosim is not currently thread safe. This PR adds a mechanism to generate random data on multiple threads safely.

@github-actions
Copy link

github-actions bot commented Mar 16, 2026

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedMar 16, 2026, 6:59 PM

@codecov
Copy link

codecov bot commented Mar 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.41%. Comparing base (bb2c5b3) to head (a4e2736).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3076      +/-   ##
==========================================
- Coverage   58.41%   58.41%   -0.01%     
==========================================
  Files        2081     2081              
  Lines      171790   171790              
==========================================
- Hits       100352   100351       -1     
- Misses      62504    62505       +1     
  Partials     8934     8934              
Flag Coverage Δ
sei-db 70.41% <ø> (-0.22%) ⬇️

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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cody-littley cody-littley added this pull request to the merge queue Mar 16, 2026
Merged via the queue into main with commit 3a6e71d Mar 16, 2026
41 checks passed
@cody-littley cody-littley deleted the cjl/canned-random-clone branch March 16, 2026 19:43
yzang2019 added a commit that referenced this pull request Mar 16, 2026
* main:
  fix(giga): match v2 correctness checks (#3071)
  Added clone method to canned random (#3076)
  Helper files for the flatKV cache implementation (#3072)
  fix: restore PRs inadvertently reverted by #3039 squash-merge (#3070)
  Refine logging to avoid printing expensive objects on hot path (#3066)
  Fix flaky tendermint syncer test (#3065)
  Add runtime log level control via gRPC admin service (#3062)
  chore: dcoument run RPC suite on legacy vs giga (#3041)
  chore: self-contained revert tests, contract reorg, and failure analysis (#3033)
yzang2019 pushed a commit that referenced this pull request Mar 19, 2026
## Describe your changes and provide context

In order to benchmark reads against the receipt store, we need a
mechanism to get random numbers on other threads. The `CannedRandom`
utility used by cryptosim is not currently thread safe. This PR adds a
mechanism to generate random data on multiple threads safely.

Co-authored-by: Cody Littley <cody.littley@seinetwork.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants