Skip to content

Commit

Permalink
feat: always display uncertain estimation warnings (#7690)
Browse files Browse the repository at this point in the history
resolves #7004, see that issue for reasoning behind the change
  • Loading branch information
jakmeier committed Sep 26, 2022
1 parent 2b5dcaa commit 1386a41
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,7 @@ fn estimation_uncertain_changes(
add_warning(&mut warnings, name.clone(), "None".to_owned(), uncertain_after)
}
(Some(uncertain_before), Some(uncertain_after)) => {
if !uncertain_before.eq(&uncertain_after) {
add_warning(&mut warnings, name.clone(), uncertain_before, uncertain_after);
}
add_warning(&mut warnings, name.clone(), uncertain_before, uncertain_after);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ expression: report.to_string()
LogBase 5.00 Ggas ➜ 6.00 Ggas (+20.00%)
LogByte 1.01 Ggas ➜ 7.00 Ggas (+594.44%)
```
### Gas estimator uncertain changes: 2
### Gas estimator uncertain estimations: 2
```
UncertainTest HIGH-VARIANCE ➜ None
UncertainTest2 None ➜ BLOCK-MEASUREMENT-OVERHEAD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ expression: report.to_string()
```
LogBase 5.00 Ggas ➜ 6.00 Ggas (+20.00%)
```
### Gas estimator uncertain changes: 0
### Gas estimator uncertain estimations: 0

Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ expression: report.to_string()
AltBn128MultiExp 0 gas ➜ 10 gas (+inf%)
LogByte 15.00 Mgas ➜ 20.00 Mgas (+33.33%)
```
### Gas estimator uncertain changes: 0
### Gas estimator uncertain estimations: 0

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ expression: report.to_string()
```
LogBase 4.00 Ggas ➜ 5.00 Ggas (+25.00%)
```
### Gas estimator uncertain changes: 1
### Gas estimator uncertain estimations: 1
```
UncertainTest NEGATIVE-COST ➜ HIGH-VARIANCE
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl std::fmt::Display for ZulipReport {
}
writeln!(f, "```")?;
}
writeln!(f, "### Gas estimator uncertain changes: {}", self.changes_uncertain.len())?;
writeln!(f, "### Gas estimator uncertain estimations: {}", self.changes_uncertain.len())?;
if self.changes_uncertain.len() > 0 {
writeln!(f, "```")?;
for change in &self.changes_uncertain {
Expand Down

0 comments on commit 1386a41

Please sign in to comment.