Skip to content

regtest: check if destination dirs exist before copyTree call#3228

Merged
andrew-platt merged 4 commits intoOpenFAST:rc-4.2.1from
andrew-platt:b/reg_test_CopyTree
Mar 3, 2026
Merged

regtest: check if destination dirs exist before copyTree call#3228
andrew-platt merged 4 commits intoOpenFAST:rc-4.2.1from
andrew-platt:b/reg_test_CopyTree

Conversation

@andrew-platt
Copy link
Collaborator

Ready to merge

Feature or improvement description
Occasionally an AeroDyn BAR regression test could fail with strange file IO related issues. After some brainstorming with @deslaughter we concluded that the copyTree command for the BAR_Baseline directory (called inside the executeAerodynRegressionCase.py) was rewriting the airfoil files while other BAR tests might be trying to read them. To avoid this, the copyTree only occurs if the directory doesn't exist already (there could still be system timing causing rewrites anyhow, but should be less frequent -- this is addressed in 5.0.0).

Also we decided that our preference is to not copy over the directory every time we run the regression test locally - this works better with our development workflow where we want to keep manual input file changes between test runs.

Related issue, if one exists
Showed up during testing with https://github.com/OpenFAST/openfast/actions/runs/22595786003/attempts/1

Impacted areas of the software
Testing only

Additional supporting information
none

Generative AI usage
none

Test results, if applicable
none

@andrew-platt andrew-platt added this to the v4.2.1 milestone Mar 2, 2026
@andrew-platt andrew-platt requested a review from deslaughter March 2, 2026 22:58
@andrew-platt andrew-platt self-assigned this Mar 2, 2026
@andrew-platt andrew-platt merged commit 0666232 into OpenFAST:rc-4.2.1 Mar 3, 2026
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants