Skip to content

Commit

Permalink
Fix: running scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
KashunCheng committed Jun 20, 2023
1 parent 31b1e42 commit 61eead1
Show file tree
Hide file tree
Showing 6 changed files with 8,034 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ lib:
(cd ssa && make)

clean:
(cd k8s_util/lib && make clean)
(cd acto/k8s_util/lib && make clean)
(cd ssa && make)
3 changes: 2 additions & 1 deletion acto/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
dest='dryrun',
action='store_true',
help='Only generate test cases without executing them')
parser.add_argument('--checkonly', action='store_true')

args = parser.parse_args()

Expand Down Expand Up @@ -155,7 +156,7 @@

# Post processing
post_diff_test_dir = os.path.join(args.workdir_path, 'post_diff_test')
p = PostDiffTest(testrun_dir=post_diff_test_dir, config=config)
p = PostDiffTest(testrun_dir=args.workdir_path, config=config)
if not args.checkonly:
p.post_process(post_diff_test_dir, num_workers=args.num_workers)
p.check(post_diff_test_dir, num_workers=args.num_workers)
Expand Down
2 changes: 1 addition & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The file stores the result of different oracles in Acto.
We provide a post-processing script to gather all the alarms into a csv file for alarm inspection.
After all tests finish, run
```sh
python3 checker.py --config data/cass-operator/config.json --num-workers 8 --testrun-dir testrun-cass
python3 -m acto.checker.checker --config data/cass-operator/config.json --num-workers 8 --testrun-dir testrun-cass
```
to post-process all the results.
We run this post-process step because previously we wanted to test the false alarm
Expand Down
3 changes: 2 additions & 1 deletion scripts/feature_results_to_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@
'input': json_instance['post_result']['error']['testcase'],
'symptom': json_instance['post_result']['error']
}
#classify_alarm(alarm_features)
# TODO: implement classify_alarm
# classify_alarm(alarm_features)
taint_analysis_df_list.append({
'Trial number': json_instance['post_result']['trial_num'],
'testcase': json_instance['post_result']['error']['testcase'],
Expand Down
Loading

0 comments on commit 61eead1

Please sign in to comment.