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

Split clean-up into separate job #1906

Commits on Oct 19, 2023

  1. Split clean-up into separate job

    Moves the clean-up that was previously done in the archive jobs into
    their own separate job. It is mostly a copy of what existed in the
    archive scripts, except some adjustments to account for ensemble
    members in the same job as the deterministic and some others for
    shellcheck compliance/other standard code improvements.
    
    Some settings used by both jobs were elevated to `config.base`.
    Others only needed for cleanup were moved to the new config for that
    job.
    
    Resolves NOAA-EMC#583
    WalterKolczynski-NOAA committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    9ddb598 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e228a07 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e00984b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    017efe9 View commit details
    Browse the repository at this point in the history
  5. Rename control variable for cleaning up COM

    Since clean-up is no longer part of the archive job, the name of
    the variable that controls whether COM is cleaned up is renamed.
    
    Since the clean-up job does very little if this is NO, in the
    future may want to just not run this job in that situation.
    
    Refs NOAA-EMC#583
    WalterKolczynski-NOAA committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    f1e9523 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    58ccf10 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e1ca1ac View commit details
    Browse the repository at this point in the history
  8. Streamline cleanup script

    The old cleanup script was more convoluted than it needed to be.
    The script has been streamlined quite a bit and now works properly.
    Instead of going through every COM template, `COM_TOP is used along
    with find to get everything at once (well, a few passes of find are
    needed to deal with regular files, symlinks, and then directories).
    
    Refs NOAA-EMC#583
    Resolves NOAA-EMC#1872
    WalterKolczynski-NOAA committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    8df75c6 View commit details
    Browse the repository at this point in the history
  9. Fix error in rerunning a failed ensemble member

    When trying to rerun a failed ensemble member, the script would fail
    due to `set -u` when grep returned non-zero for not being able to
    find `PASS` in the group status file. This is resolved by turning it
    off and then back on.
    WalterKolczynski-NOAA committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    b038580 View commit details
    Browse the repository at this point in the history
  10. Add enkf back into cleanup

    The streamlining of the cleanup script resulted in enkf not being
    cleaned up. Script not runs for `$RUN` and `enkf${RUN}`. Since the
    existence of the directory is checked before trying to clean up,
    it doesn't matter if `enkf${RUN}` is not a valid `$RUN` for the
    experiment.
    
    Refs NOAA-EMC#583
    WalterKolczynski-NOAA committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    4539f49 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    275ed9b View commit details
    Browse the repository at this point in the history
  12. Add wildcards to cleanup excludes

    The `-name` option to find works differently than `grep`, so wild-
    cards need to be added to make sure files to exclude are matched
    properly.
    WalterKolczynski-NOAA committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    986b5a9 View commit details
    Browse the repository at this point in the history
  13. Give enkf its own cleanup job

    Split cleanup for enkf off into it's own rocoto job to make the
    script cleaner. This eliminates the need to loop over RUNs and
    avoids the unnecessary check of non-existent RUNs.
    
    Refs NOAA-EMC#583
    WalterKolczynski-NOAA committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    69d24d6 View commit details
    Browse the repository at this point in the history
  14. Use different exclude lists for cleanup

    Changes the exclude list into a configurable variable as a comma-
    separated string. This allows for the use of different strings for
    ensemble and deterministic.
    
    Refs NOAA-EMC#583
    Refs NOAA-EMC#1872
    WalterKolczynski-NOAA committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    88d9b11 View commit details
    Browse the repository at this point in the history