-
Notifications
You must be signed in to change notification settings - Fork 268
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
Change the format of output produced by --progress
#5341
Merged
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...ts/TestFiles/LitTests/LitTest/verification/Inputs/outOfResourceAndIsolateAssertions.check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
CHECK: Verified 0/2 symbols. Waiting for f to verify. | ||
CHECK: Verification part 1/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 2/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 3/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 4/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 5/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 6/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 7/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 8/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 9/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 10/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 11/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verified 1/2 symbols. Waiting for L to verify. | ||
CHECK: Verification part 1/9 of L, on line 7, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 2/9 of L, on line 9, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 3/9 of L, on line 10, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 4/9 of L, on line 10, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 5/9 of L, on line 10, ran out of resources \(time: .*, resource count: .*\) | ||
CHECK: Verification part 6/9 of L, on line 11, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 7/9 of L, on line 12, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 8/9 of L, on line 12, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 9/9 of L, on line 12, ran out of resources | ||
outOfResourceAndIsolateAssertions.dfy\(10,18\): Error: Verification out of resource \(L\) | ||
outOfResourceAndIsolateAssertions.dfy\(12,18\): Error: Verification out of resource \(L\) | ||
|
||
Dafny program verifier finished with 18 verified, 0 errors, 2 out of resource |
24 changes: 12 additions & 12 deletions
24
...egrationTests/TestFiles/LitTests/LitTest/verification/Inputs/progressSecondSequence.check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
// CHECK-L:Verification part 1/3 of Foo, on line 6, verified successfully, redacted and consuming 8.7E+002 resources | ||
// CHECK-L:Verification part 2/3 of Foo, on line 8, verified successfully, redacted and consuming 3.1E+003 resources | ||
// CHECK-L:Verification part 3/3 of Foo, on line 9, verified successfully, redacted and consuming 2.8E+003 resources | ||
// CHECK-L:Verification part 1/2 of Faz, on line 12, verified successfully, redacted and consuming 8.7E+002 resources | ||
// CHECK-L:Verification part 2/2 of Faz, on line 12, verified successfully, redacted and consuming 3.1E+003 resources | ||
// CHECK-L:Verification part 1/2 of Fopple, on line 14, verified successfully, redacted and consuming 8.7E+002 resources | ||
// CHECK-L:Verification part 2/2 of Fopple, on line 14, verified successfully, redacted and consuming 3.1E+003 resources | ||
// CHECK-L:Verification part 1/3 of Burp, on line 16, verified successfully, redacted and consuming 8.7E+002 resources | ||
// CHECK-L:Verification part 2/3 of Burp, on line 18, verified successfully, redacted and consuming 3.1E+003 resources | ||
// CHECK-L:Verification part 3/3 of Burp, on line 19, verified successfully, redacted and consuming 2.8E+003 resources | ||
// CHECK-L:Verification part 1/2 of Blanc, on line 22, verified successfully, redacted and consuming 8.7E+002 resources | ||
// CHECK-L:Verification part 2/2 of Blanc, on line 22, verified successfully, redacted and consuming 3.1E+003 resources | ||
// CHECK:Verification part 1/3 of Foo, on line 6, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 2/3 of Foo, on line 8, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 3/3 of Foo, on line 9, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 1/2 of Faz, on line 12, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 2/2 of Faz, on line 12, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 1/2 of Fopple, on line 14, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 2/2 of Fopple, on line 14, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 1/3 of Burp, on line 16, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 2/3 of Burp, on line 18, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 3/3 of Burp, on line 19, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 1/2 of Blanc, on line 22, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 2/2 of Blanc, on line 22, verified successfully \(time: .*, resource count: .*\) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
...ce/IntegrationTests/TestFiles/LitTests/LitTest/verification/isolate-assertions.dfy.expect
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
...rationTests/TestFiles/LitTests/LitTest/verification/outOfResourceAndIsolateAssertions.dfy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
...ests/TestFiles/LitTests/LitTest/verification/outOfResourceAndIsolateAssertions.dfy.expect
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
Source/IntegrationTests/TestFiles/LitTests/LitTest/verification/progress.dfy.expect
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you want to put the two time properties in parenthesis, instead of include them in the sentence? Also why "time" instead of "duration" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ultimately this makes the message shorter, making it more likely that it'll fit on a single line. When you're seeing many of these go by, the ability to quickly do pattern recognition on the output without explicitly reading it is very helpful, in my experience.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you change "time" into "duration", and possibly
resource count
intoresources
orticks
, although I appreciate the latter might be a bigger change?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thinking about this more, I'm slightly inclined to make it more like the IDE and include something like
(0:00:1.25, 23947 RU)
. I'm worried about using multiple terms to describe resource usage. So far, we've always said "resource count" as an overall descriptor or used the abbreviation "RU" for the units, and the IDE uses "RU" heavily.When using a unit suffix instead of a descriptive prefix, having either "time: " or "duration: " before the other one feels inconsistent to me. And it'll be formatted in such a way that I think it's obvious that it's describing a time/duration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One solution would be to list units for both, and not format the duration in "H:M:S" structure. So it would be something like "(3274.86 s, 23194090 RU)". I think perhaps that's my favorite, because it also makes high duration easier to pick out.