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

rgt_test_input.ini mis-configuration causes harness crash #135

Open
hagertnl opened this issue Sep 28, 2023 · 0 comments · May be fixed by #175
Open

rgt_test_input.ini mis-configuration causes harness crash #135

hagertnl opened this issue Sep 28, 2023 · 0 comments · May be fixed by #175
Labels
bug Something isn't working

Comments

@hagertnl
Copy link
Contributor

I got the following crash when forgetting to put the [Replacements] header in the rgt_test_input.ini. The harness should handle this a little more gracefully:

Traceback (most recent call last):
  File "/sw/acceptance/olcf-test-harness/harness/bin/test_harness_driver.py", line 527, in <module>
    test_harness_driver()
  File "/sw/acceptance/olcf-test-harness/harness/bin/test_harness_driver.py", line 487, in test_harness_driver
    Vargs.separate_build_stdio)
  File "/sw/acceptance/olcf-test-harness/harness/bin/test_harness_driver.py", line 164, in auto_generated_scripts
    mymachine = MachineFactory.create_machine(harness_config, apptest, separate_build_stdio=separate_build_stdio)
  File "/sw/acceptance/olcf-test-harness/harness/machine_types/machine_factory.py", line 84, in create_machine
    apptest=app_subtest)
  File "/sw/acceptance/olcf-test-harness/harness/machine_types/ibm_power9.py", line 47, in __init__
    self._rgt_test.read_input_file()
  File "/sw/acceptance/olcf-test-harness/harness/machine_types/rgt_test.py", line 433, in read_input_file
    self._read_rgt_input_ini()
  File "/sw/acceptance/olcf-test-harness/harness/machine_types/rgt_test.py", line 489, in _read_rgt_input_ini
    rgt_test_config.read(self.test_input_filename)
  File "/usr/lib64/python3.6/configparser.py", line 697, in read
    self._read(fp, filename)
  File "/usr/lib64/python3.6/configparser.py", line 1080, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: '/gpfs/alpine/stf016/proj-shared/hagertnl/harness/summit/applications/CORAL-LSMS/WL_Fe_n0001/Scripts/rgt_test_input.ini', line: 1
'job_name = WL-Fe_n0001\n'
In function subtest._start_test we have a critical error.
The command 'test_harness_driver.py -r -l tshot_summit/hagertnl@2023-09-28T16:45:40.86' has exited with a failure.
The exit return value is 1
.
Application CORAL-LSMS future exception:
Command failed: test_harness_driver.py -r -l tshot_summit/hagertnl@2023-09-28T16:45:40.86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant