-
Notifications
You must be signed in to change notification settings - Fork 180
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
Bug fix for cleaning DATAROOT from failed CI cases #3066
Comments
@TerrenceMcGuinness-NOAA Could this be moved into the setup scripts? Since this has been an issue for users as well, it might be good to have the option for them to delete |
12 tasks
21 tasks
WalterKolczynski-NOAA
pushed a commit
to WalterKolczynski-NOAA/global-workflow
that referenced
this issue
Nov 22, 2024
…MC#3076) This Pr removes **pslot** dir (with hash) from local archive folder on CI case completion and also adds `cleanup_experiment` function in the BASH utilities to clean up after a CI case runs. This change consolidates cleanup actions and adds functionality to clean the local archive folders. Key changes: - Fixes bug for cleaning up the `RUNDIRS` directory before new experiments are run in the case the pipeline is being ran for a second time - Updated `$HOMEgfs/ci/scripts/check_ci.sh` to use the new `cleanup_experiment` function under the BASH CI system. - Added `cleanup_experiment `function in `$HOMEgfs/ci/scripts/utils/ci_utils.sh` to handle various cleanups including: - COMROOT/EXPDIR per case - ARCDIR and ATADIR directories for archive - STMP/RUNDIRS/${PSLOT} - Added get config var from EXPDIR utility [get_config_var.py](https://github.com/NOAA-EMC/global-workflow/pull/2961/files#diff-b780733ae1d45917730364e09a6c510e79d4cc8cffad6d9020c7961c53b987bc) for getting config values in BASH Resolves NOAA-EMC#2954 Resolves NOAA-EMC#3066
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What new functionality do you need?
Currently we clear DATAROOT for each CI case on completion per its tagged hash label. This needs to be extended to also preform the action on creation to cover for the corner cases when an experiment has failed and is being re-ran that still has the same hash label.
What are the requirements for the new functionality?
Fix the above bug with updates to the pipeline
Suggest a solution (optional)
Code the solution directly in the pipeline to delete the DATA_DIR before creation of the EXPDIR
The text was updated successfully, but these errors were encountered: