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

Making this test less flaky, and good error reports #1299

Merged
merged 5 commits into from
Sep 21, 2024

Conversation

benjaminsavage
Copy link
Collaborator

No description provided.

let max_tolerance = (*expected as f64) * tolerance + 10.0;
assert!(
(expected - actual).abs() as f64 <= max_tolerance,
"expected {:?} unmatched events, got {:?}",
Copy link
Member

Choose a reason for hiding this comment

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

it might be worth reframing this around "expected {:?} +/- {tolerance}"

);
for (expected, actual) in zip(EXPECTED_HISTOGRAM.iter(), histogram) {
assert!(
(expected - actual).abs() <= expected / 20 + 10,
Copy link
Member

Choose a reason for hiding this comment

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

something explaining this math would be helpful

Copy link

codecov bot commented Sep 21, 2024

Codecov Report

Attention: Patch coverage is 57.89474% with 8 lines in your changes missing coverage. Please review.

Project coverage is 93.47%. Comparing base (f329272) to head (7b9f9da).
Report is 21 commits behind head on main.

Files with missing lines Patch % Lines
ipa-core/src/test_fixture/hybrid_event_gen.rs 57.89% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1299      +/-   ##
==========================================
+ Coverage   93.41%   93.47%   +0.05%     
==========================================
  Files         208      209       +1     
  Lines       33798    33823      +25     
==========================================
+ Hits        31574    31615      +41     
+ Misses       2224     2208      -16     

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

@benjaminsavage benjaminsavage merged commit fbce8ec into private-attribution:main Sep 21, 2024
11 of 12 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.

2 participants