openfast
openfast copied to clipboard
GitHub actions workflows require that the repository be named "openfast"
Bug description
In the GitHub Actions workflows, it is hardcoded that the path to the build directory is openfast/build
. However, if the repo is named something else, the default paths will be different. In one case, this breaks the automated tests since libraries are loaded based on this assumed path. See https://github.com/SimonHH/openfast_SrvD_HubForces/runs/6677828602?check_suite_focus=true
80: Test command: /opt/hostedtoolcache/Python/3.7.13/x64/bin/python3 "/home/runner/work/openfast_SrvD_HubForces/openfast_SrvD_HubForces/reg_tests/executeInflowwindPyRegressionCase.py" "ifw_py_turbsimff" "/opt/hostedtoolcache/Python/3.7.13/x64/bin/python3" "/home/runner/work/openfast_SrvD_HubForces/openfast_SrvD_HubForces/reg_tests/.." "/home/runner/work/openfast_SrvD_HubForces/openfast/build/reg_tests/modules/inflowwind" "0.00001" "Linux" "GNU" "-p"
[1205](https://github.com/SimonHH/openfast_SrvD_HubForces/runs/6677828602?check_suite_focus=true#step:9:1206)
80: Test timeout computed to be: 5400
[1206](https://github.com/SimonHH/openfast_SrvD_HubForces/runs/6677828602?check_suite_focus=true#step:9:1207)
80: Traceback (most recent call last):
[1207](https://github.com/SimonHH/openfast_SrvD_HubForces/runs/6677828602?check_suite_focus=true#step:9:1208)
80: File "/home/runner/work/openfast_SrvD_HubForces/openfast/build/reg_tests/modules/inflowwind/ifw_py_turbsimff/inflowWind_testDriver.py", line 52, in <module>
[1208](https://github.com/SimonHH/openfast_SrvD_HubForces/runs/6677828602?check_suite_focus=true#step:9:1209)
80: import inflowwind_library # this file handles the conversion from python to c-bound types and should not be changed by the user
[1209](https://github.com/SimonHH/openfast_SrvD_HubForces/runs/6677828602?check_suite_focus=true#step:9:1210)
80: ModuleNotFoundError: No module named 'inflowwind_library'
[1210](https://github.com/SimonHH/openfast_SrvD_HubForces/runs/6677828602?check_suite_focus=true#step:9:1211)
80: /opt/hostedtoolcache/Python/3.7.13/x64/bin/python3 /home/runner/work/openfast_SrvD_HubForces/openfast/build/reg_tests/modules/inflowwind/ifw_py_turbsimff/inflowWind_testDriver.py > /home/runner/work/openfast_SrvD_HubForces/openfast/build/reg_tests/modules/inflowwind/ifw_py_turbsimff/inflowWind_testDriver.log
[1211](https://github.com/SimonHH/openfast_SrvD_HubForces/runs/6677828602?check_suite_focus=true#step:9:1212)
80: COMPLETE with code 1
[1212](https://github.com/SimonHH/openfast_SrvD_HubForces/runs/6677828602?check_suite_focus=true#step:9:1213)
80:
[1213](https://github.com/SimonHH/openfast_SrvD_HubForces/runs/6677828602?check_suite_focus=true#step:9:1214)
9/9 Test #80: ifw_py_turbsimff ...........................***Failed 0.26 sec
[1214](https://github.com/SimonHH/openfast_SrvD_HubForces/runs/6677828602?check_suite_focus=true#step:9:1215)
Errors while running CTest
Possibly replace all instances of openfast
in a path with a GitHub Actions environment variable for the repo name
This is an extreme corner use case. We won't fix it.