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

Feature Request: Create a Python API for launching the OLCF Test Harness #154

Open
hagertnl opened this issue Dec 8, 2023 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@hagertnl
Copy link
Contributor

hagertnl commented Dec 8, 2023

Instead of passing around a bunch of runtests.py commands and rgt.inp files, it may be easier to create a Python API that allows users to import an API module and run, similar to the following:

from olcf_test_harness_pyapi import oth_launch

# This call blocks until an apptest has been submitted to the queue
oth_launch.launch_apptest(app="osu-microbenchmarks", test="test_startup", path="/path/to/tests/applications", mode=['start', 'stop'])

We can grow the API as needed from there, but I think this would be very helpful. Then we could possibly have Python scripts that we can create and use instead of many different rgt.inp files.

@hagertnl hagertnl added the enhancement New feature or request label Dec 8, 2023
@hagertnl
Copy link
Contributor Author

hagertnl commented Dec 8, 2023

Commenting to keep track of some more API functions that would be nice:

  • find_tests(path="/path/to/tests", app="appname") - find all available tests for a certain app in a directory. Possibly useful for Python scripting to make sure test names are valid

@hagertnl
Copy link
Contributor Author

Another use case: a utility named check_available_apps.py, which would act like this:

$ check_available_apps.py --path /path/to/test/applications
App: LAMMPS
Git Branch/Commit: main/a0b1c2
Tests:
- test1
- test2
- test3
App: GROMACS
...

This would be helpful to verify --mode checkout results.

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

No branches or pull requests

1 participant