Skip to content
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

apply_waivers.py script issue #412

Open
quic-pansing opened this issue Dec 6, 2024 · 0 comments
Open

apply_waivers.py script issue #412

quic-pansing opened this issue Dec 6, 2024 · 0 comments

Comments

@quic-pansing
Copy link
Contributor

quic-pansing commented Dec 6, 2024

1:- argparse is not defined

[ 73.246436] init.sh[418]: Traceback (most recent call last):
[ 73.246711] init.sh[418]: File "/usr/bin/log_parser/apply_waivers.py", line 512, in
[ 73.246902] init.sh[418]: main()
[ 73.247032] init.sh[418]: File "/usr/bin/log_parser/apply_waivers.py", line 496, in main
[ 73.247192] init.sh[418]: parser = argparse.ArgumentParser(description='Apply waivers to test suite JSON results.')
[ 73.247314] init.sh[418]: ^^^^^^^^
[ 73.247461] init.sh[418]: NameError: name 'argparse' is not defined. Did you forget to import 'argparse'?yes

2:- apply_waivers is not defined

[ 43.911179] init.sh[391]: Traceback (most recent call last):
[ 43.911374] init.sh[391]: File "/usr/bin/log_parser/apply_waivers.py", line 513, in
[ 43.911543] init.sh[391]: main()
[ 43.911668] init.sh[391]: File "/usr/bin/log_parser/apply_waivers.py", line 510, in main
[ 43.911862] init.sh[391]: apply_waivers(args.suite_name, args.json_file, args.waiver_file, args.output_json_file)
[ 43.911987] init.sh[391]: ^^^^^^^^^^^^^
[ 43.912152] init.sh[391]: NameError: name 'apply_waivers' is not definedyes

3:-   issue while applying waiver for MVP test cases

[ 66.527525] init.sh[408]: Log parsed successfully. JSON output saved to /mnt/acs_results/acs_summary/acs_jsons/dt_kselftest.json
[ 66.722870] init.sh[409]: ERROR: Waiver for TestSuite 'DTValidation' is missing 'Reason'. Skipping TestSuite-level waiver.
[ 66.723110] init.sh[409]: Traceback (most recent call last):
[ 66.723242] init.sh[409]: File "/usr/bin/log_parser/apply_waivers.py", line 513, in
[ 66.723405] init.sh[409]: main()
[ 66.723525] init.sh[409]: File "/usr/bin/log_parser/apply_waivers.py", line 510, in main
[ 66.723826] init.sh[409]: apply_waivers(args.suite_name, args.json_file, args.waiver_file, args.output_json_file)
[ 66.724041] init.sh[409]: File "/usr/bin/log_parser/apply_waivers.py", line 359, in apply_waivers
[ 66.724828] init.sh[409]: suite_level_waivers, testsuite_level_waivers, subsuite_level_waivers, testcase_level_waivers, subtest_level_waivers = load_waivers(waiver_data, suite_name)
[ 66.724987] init.sh[409]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 66.725130] init.sh[409]: File "/usr/bin/log_parser/apply_waivers.py", line 95, in load_waivers
[ 66.725378] init.sh[409]: subtests = test_suite.get('TestCase', {}).get('SubTests', []) or test_suite.get('SubSuite', {}).get('TestCase', {}).get('SubTests', [])
[ 66.725581] init.sh[409]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 66.725722] init.sh[409]: AttributeError: 'list' object has no attribute 'get'

4:- In testcategoryDt.json BSA PE tests are marked as waivable = No, But BSA is optional for IR device tree band certification - So how can we apply waivers in this case

5:- The script is not processing the waivers which are not present in the testcategoryDt.json so we are not able to provide waivers for some failure cases
Ex: QueryMode_Func of ConsoleSupportTest waiver is not being applied as it is not there in testcategoryDt.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant