Skip to content

CI: fix failing audit, bump rust version #826

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

Merged
merged 2 commits into from
May 10, 2025

Conversation

sethdusek
Copy link
Collaborator

@sethdusek sethdusek commented May 8, 2025

Bump rust version (needed by some dependencies), and fix issues reported by audit

@coveralls
Copy link

coveralls commented May 8, 2025

Pull Request Test Coverage Report for Build 14908097067

Details

  • 9 of 10 (90.0%) changed or added relevant lines in 7 files are covered.
  • 8 unchanged lines in 7 files lost coverage.
  • Overall coverage decreased (-0.03%) to 78.164%

Changes Missing Coverage Covered Lines Changed/Added Lines %
ergotree-ir/src/traversable.rs 1 2 50.0%
Files with Coverage Reduction New Missed Lines %
ergo-lib/src/chain/transaction.rs 1 64.44%
ergo-lib/src/chain/transaction/storage_rent.rs 1 33.33%
ergo-rest/src/api/peer_discovery_internals/non_chrome.rs 1 72.52%
ergotree-interpreter/src/eval/scoll.rs 1 66.84%
ergotree-ir/src/mir/value.rs 1 55.93%
ergotree-ir/src/pretty_printer/print.rs 1 56.18%
ergotree-ir/src/chain/ergo_box/register.rs 2 62.26%
Totals Coverage Status
Change from base Build 14855011327: -0.03%
Covered Lines: 11512
Relevant Lines: 14728

💛 - Coveralls

sethdusek added 2 commits May 8, 2025 18:48
ignore paste issue for now, bump pyo3 to newer version even though we aren't affected by the vulnerabillity
@sethdusek sethdusek requested a review from kushti May 9, 2025 06:45
@sethdusek sethdusek marked this pull request as ready for review May 9, 2025 06:45
Copy link
Member

@kushti kushti left a comment

Choose a reason for hiding this comment

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

approved but please check notes

@@ -232,7 +232,7 @@ pub trait ReadSigmaVlqExt: io::Read + io::Seek {

/// Read a vector of bits with the given size
fn get_bits(&mut self, size: usize) -> Result<Vec<bool>, VlqEncodingError> {
let byte_num = (size + 7) / 8;
let byte_num = size.div_ceil(8);
Copy link
Member

Choose a reason for hiding this comment

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

is it the same?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, all the code changes are to address lints added in newer compiler versions. https://rust-lang.github.io/rust-clippy/master/index.html#manual_div_ceil

} else {
selected_boxes_value - target_balance
};
let value_change_amt: u64 = selected_boxes_value.saturating_sub(target_balance);
Copy link
Member

Choose a reason for hiding this comment

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

is it the same?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@sethdusek sethdusek merged commit 50e2677 into ergoplatform:develop May 10, 2025
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants