-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor and document sieve testing script (#111)
* Refactor Sieve testing script * Remove evaluation_sanity_check * Fix check_test_plan_gen.py * Document Sieve script * Fix parallel testing scripts * Fix bug in sieve client and sieve analyze for supporting REST read
- Loading branch information
1 parent
f94c0b2
commit 0afb34a
Showing
21 changed files
with
441 additions
and
531 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,26 @@ | ||
from evaluation_sanity_check import check, generate | ||
import sys | ||
import glob | ||
import os | ||
|
||
# current_dir = "log" | ||
# previous_dir = sys.argv[1] | ||
|
||
# generate.generate_test_plan_stat() | ||
# check.check_massive_testing_results(current_dir, previous_dir) | ||
check.check_bug_reproduction_test_plans() | ||
def check_bug_reproduction_test_plans(): | ||
gen_configs = glob.glob( | ||
os.path.join( | ||
"sieve_learn_results/*/*/learn/*/*.yaml", | ||
) | ||
) | ||
|
||
reprod_configs = glob.glob("bug_reproduction_test_plans/*.yaml") | ||
|
||
for reprod_config in reprod_configs: | ||
if "indirect" in reprod_config: | ||
continue | ||
found = False | ||
for gen_config in gen_configs: | ||
if open(reprod_config).read() == open(gen_config).read(): | ||
print(reprod_config + " <= " + gen_config) | ||
found = True | ||
if not found: | ||
print("\033[91m" + reprod_config + " not found\033[0m") | ||
|
||
|
||
check_bug_reproduction_test_plans() |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.