Closed mdahlhausen closed 2 days ago
Hi @mdahlhausen, a quick question - are you running the test on Linus/WSL or Windows? Could you provide the file and script that runs into this problem? I can duplicate the issue and possibly fix it today.
@weilixu I ran into this on my windows machine. It's happening with several tests in test_appendix_g_prm.rb that generate a chilled water loop. Seems like #1385 may be failing some regression tests because of this issue.
Some of the test case's directory path length in the PRM test suit are longer than 260 char, which often result in error when trying to open those directories on Window (In window, max length of path directory is 260 characters). I wonder if it is because of this?
There is a global variable at the top of test_appendix_g_prm.rb
: MAX_PATH_CHAR
. Could you se this variable to 200 and then run those failed test cases again and see if the errors are resolved?
@weilixu just finished running the tests with and without the max path set. Still having the same errors finding and loading the results.
Update: this is a max path issue on windows. PNNL to fix by shortening test names.
Fixed with this commit.
See this method
def plant_loop_total_cooling_capacity(plant_loop, sizing_run_dir = Dir.pwd)
TheDir.pwd
causes the sizing run directory to be located wherever it is called from and can cause issues with commits.