Skip to content

MOD-9403: Replace varint.* with the Rust implementation#6308

Merged
LukeMathWalker merged 6 commits intomasterfrom
drop-c-varint
Jun 24, 2025
Merged

MOD-9403: Replace varint.* with the Rust implementation#6308
LukeMathWalker merged 6 commits intomasterfrom
drop-c-varint

Conversation

@zeenix
Copy link
Contributor

@zeenix zeenix commented Jun 12, 2025

This completes the porting of the varint module from C to Rust.

This PR is based on PR #6287. It mainly just drops the C implementation in favour of the Rust one
that's added by #6287.

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

@zeenix zeenix marked this pull request as draft June 12, 2025 13:25
@zeenix zeenix force-pushed the drop-c-varint branch 2 times, most recently from dbd66fa to 16b2811 Compare June 12, 2025 15:33
@zeenix zeenix requested review from LukeMathWalker and chesedo June 12, 2025 15:39
@zeenix zeenix marked this pull request as ready for review June 12, 2025 15:39
@codecov
Copy link

codecov bot commented Jun 17, 2025

Codecov Report

Attention: Patch coverage is 11.11111% with 80 lines in your changes missing coverage. Please review.

Project coverage is 88.75%. Comparing base (a1b894e) to head (b0aabd0).
Report is 21 commits behind head on master.

Files with missing lines Patch % Lines
...search_rs/c_entrypoint/varint/src/vector_writer.rs 0.00% 53 Missing ⚠️
...edisearch_rs/c_entrypoint/varint/src/field_mask.rs 0.00% 15 Missing ⚠️
src/redisearch_rs/c_entrypoint/varint/src/value.rs 0.00% 12 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6308      +/-   ##
==========================================
- Coverage   88.80%   88.75%   -0.05%     
==========================================
  Files         243      251       +8     
  Lines       40893    41358     +465     
  Branches     3483     3636     +153     
==========================================
+ Hits        36313    36709     +396     
- Misses       4537     4600      +63     
- Partials       43       49       +6     
Flag Coverage Δ
flow 81.48% <100.00%> (-0.85%) ⬇️
unit 46.80% <11.11%> (+0.50%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

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

match token {
Token::Any => {
let num_chars = rng.borrow_mut().gen_range(1..=10);
let num_chars = rng.borrow_mut().random_range(1..=10);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to update the lockfile, and the latest version of proptest marked this as deprecated.

@LukeMathWalker LukeMathWalker force-pushed the drop-c-varint branch 2 times, most recently from 3dee9df to a7148bf Compare June 17, 2025 09:59
@LukeMathWalker LukeMathWalker force-pushed the drop-c-varint branch 2 times, most recently from 15a2bc7 to dffc306 Compare June 17, 2025 11:08
zeenix and others added 2 commits June 17, 2025 13:18
This is the Rust re-implementation of the Varint* API. We'll use this
later to replace the C version.
Copy link
Collaborator

@chesedo chesedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few nit pick comments and some questions

chesedo
chesedo previously approved these changes Jun 17, 2025
Copy link
Collaborator

@lerman25 lerman25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great

@LukeMathWalker LukeMathWalker added this pull request to the merge queue Jun 24, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 24, 2025
@LukeMathWalker LukeMathWalker added this pull request to the merge queue Jun 24, 2025
Merged via the queue into master with commit 428d202 Jun 24, 2025
14 of 15 checks passed
@LukeMathWalker LukeMathWalker deleted the drop-c-varint branch June 24, 2025 15:06
GuyAv46 added a commit that referenced this pull request Jul 20, 2025
github-merge-queue bot pushed a commit that referenced this pull request Jul 22, 2025
* Revert "[MOD-10235] Polish varint implementation (#6346)"

This reverts commit a08d223.

* change runner

* Revert "[MOD-9403] Remove stale varint target (#6372)"

This reverts commit f3aefd2.

* Revert "MOD-9403: Replace varint.* with the Rust implementation (#6308)"

This reverts commit 428d202.
@LukeMathWalker LukeMathWalker restored the drop-c-varint branch February 6, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants