-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into issue-1915-cdylib
- Loading branch information
Showing
15 changed files
with
159 additions
and
119 deletions.
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
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
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
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
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
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
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
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
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
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,36 @@ | ||
#!/usr/bin/python3 | ||
# Copyright Kani Contributors | ||
# SPDX-License-Identifier: Apache-2.0 OR MIT | ||
|
||
import argparse | ||
from bs4 import BeautifulSoup | ||
|
||
def main(): | ||
parser = argparse.ArgumentParser( | ||
description='Scans an HTML dashboard file and prints' | ||
'the number of failures grouped by stage') | ||
parser.add_argument('input') | ||
args = parser.parse_args() | ||
|
||
with open(args.input) as fp: | ||
run = BeautifulSoup(fp, 'html.parser') | ||
|
||
failures = [0] * 3 | ||
|
||
for row in run.find_all('div', attrs={'class': 'pipeline-row'}): | ||
stages = row.find_all('div', attrs={'class': 'pipeline-stage'}) | ||
i = 0 | ||
for stage in stages: | ||
if stage.a['class'][1] == 'fail': | ||
failures[i] += 1 | ||
break | ||
i += 1 | ||
|
||
print('bookrunner failures grouped by stage:') | ||
print(' * rustc-compilation: ' + str(failures[0])) | ||
print(' * kani-codegen: ' + str(failures[1])) | ||
print(' * cbmc-verification: ' + str(failures[2])) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
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
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
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,16 @@ | ||
Status: UNREACHABLE\ | ||
Description: "cover condition: x == 2"\ | ||
in function cover_unreachable | ||
|
||
Status: UNREACHABLE\ | ||
Description: "Unreachable with a message"\ | ||
in function cover_unreachable | ||
|
||
Status: SATISFIED\ | ||
Description: "cover condition: x == 5"\ | ||
in function cover_unreachable | ||
|
||
|
||
** 1 of 3 cover properties satisfied (2 unreachable) | ||
|
||
VERIFICATION:- SUCCESSFUL |
Oops, something went wrong.