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

Remove pslot dir from local archive folder on CI case completion #2961

Conversation

TerrenceMcGuinness-NOAA
Copy link
Collaborator

@TerrenceMcGuinness-NOAA TerrenceMcGuinness-NOAA commented Sep 25, 2024

Description

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:

  • Modified ci/Jenkinsfile to include cleanup steps for the DATAROOT directory before new experiments are ran incase 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 DATAROOT, ARCDIR, and ATADIR directories.
  • Added get config var from EXPDIR utility get_config_var.py for getting config values in BASH

Resolves #2954, #3066

Type of change

  • Bug fix (fixes something broken)
  • New feature (adds functionality)
  • Maintenance (code refactor, clean-up, new CI test, etc.)

Change characteristics

  • Is this a breaking change (a change in existing functionality)? NO
  • Does this change require a documentation update? NO
  • Does this change require an update to any of the following submodules? NO

How has this been tested?

This PR was self tested with the CI system.
image# Checklist

  • Any dependent changes have been merged and published
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have documented my code, including function, input, and output descriptions
  • My changes generate no new warnings
  • New and existing tests pass with my changes
  • This change is covered by an existing CI test or a new one has been added
  • I have made corresponding changes to the system documentation if necessary

@TerrenceMcGuinness-NOAA TerrenceMcGuinness-NOAA added the CI/CD Issue related to CI/CD label Sep 25, 2024
@TerrenceMcGuinness-NOAA TerrenceMcGuinness-NOAA added the CI-Hera-Ready **CM use only** PR is ready for CI testing on Hera label Sep 25, 2024
ci/scripts/utils/ci_utils.sh Fixed Show fixed Hide fixed
ci/scripts/utils/ci_utils.sh Fixed Show fixed Hide fixed
ci/scripts/utils/ci_utils.sh Fixed Show fixed Hide fixed
ci/scripts/utils/ci_utils.sh Fixed Show fixed Hide fixed
@emcbot emcbot added CI-Hera-Building **Bot use only** CI testing is cloning/building on Hera CI-Hera-Running **Bot use only** CI testing on Hera for this PR is in-progress CI-Hera-Failed **Bot use only** CI testing on Hera for this PR has failed and removed CI-Hera-Ready **CM use only** PR is ready for CI testing on Hera CI-Hera-Building **Bot use only** CI testing is cloning/building on Hera CI-Hera-Running **Bot use only** CI testing on Hera for this PR is in-progress labels Sep 25, 2024
@emcbot
Copy link

emcbot commented Sep 26, 2024

Experiment C48mx500_3DVarAOWCDA FAILED on Hera in Build# 1 in
/scratch1/NCEPDEV/global/CI/2961/RUNTESTS/EXPDIR/C48mx500_3DVarAOWCDA_b5113675

@emcbot
Copy link

emcbot commented Sep 26, 2024

Experiment C48_S2SW FAILED on Hera in Build# 1 in
/scratch1/NCEPDEV/global/CI/2961/RUNTESTS/EXPDIR/C48_S2SW_b5113675

@emcbot
Copy link

emcbot commented Sep 26, 2024

Experiment C48_ATM FAILED on Hera in Build# 1 in
/scratch1/NCEPDEV/global/CI/2961/RUNTESTS/EXPDIR/C48_ATM_b5113675

@emcbot
Copy link

emcbot commented Sep 26, 2024

Experiment C48_S2SWA_gefs FAILED on Hera in Build# 1 in
/scratch1/NCEPDEV/global/CI/2961/RUNTESTS/EXPDIR/C48_S2SWA_gefs_b5113675

@emcbot
Copy link

emcbot commented Sep 26, 2024

Experiment C96_atm3DVar FAILED on Hera in Build# 1 in
/scratch1/NCEPDEV/global/CI/2961/RUNTESTS/EXPDIR/C96_atm3DVar_b5113675

@emcbot
Copy link

emcbot commented Sep 26, 2024

Experiment C96C48_hybatmDA FAILED on Hera in Build# 1 in
/scratch1/NCEPDEV/global/CI/2961/RUNTESTS/EXPDIR/C96C48_hybatmDA_b5113675

@emcbot
Copy link

emcbot commented Sep 26, 2024

Experiment C96C48_ufs_hybatmDA FAILED on Hera in Build# 1 in
/scratch1/NCEPDEV/global/CI/2961/RUNTESTS/EXPDIR/C96C48_ufs_hybatmDA_b5113675

@emcbot
Copy link

emcbot commented Sep 26, 2024

Experiment C96C48_hybatmaerosnowDA FAILED on Hera in Build# 1 in
/scratch1/NCEPDEV/global/CI/2961/RUNTESTS/EXPDIR/C96C48_hybatmaerosnowDA_b5113675

@emcbot emcbot added CI-Hera-Failed **Bot use only** CI testing on Hera for this PR has failed and removed CI-Hera-Failed **Bot use only** CI testing on Hera for this PR has failed labels Sep 26, 2024
@emcbot
Copy link

emcbot commented Sep 26, 2024

CI Failed on Hera in Build# 1
Built and ran in directory /scratch1/NCEPDEV/global/CI/2961


Experiment C48mx500_3DVarAOWCDA_b5113675 Completed 2 Cycles: *SUCCESS* at Thu Sep 26 09:53:40 UTC 2024
Experiment C48_S2SW_b5113675 Completed 1 Cycles: *SUCCESS* at Thu Sep 26 11:55:53 UTC 2024
Experiment C48_ATM_b5113675 Completed 1 Cycles: *SUCCESS* at Thu Sep 26 12:01:25 UTC 2024
Experiment C48_S2SWA_gefs_b5113675 Completed 1 Cycles: *SUCCESS* at Thu Sep 26 12:01:26 UTC 2024
Experiment C96_atm3DVar_b5113675 Completed 3 Cycles: *SUCCESS* at Thu Sep 26 13:15:02 UTC 2024
Experiment C96C48_hybatmDA_b5113675 Completed 3 Cycles: *SUCCESS* at Thu Sep 26 13:39:45 UTC 2024
Experiment C96C48_ufs_hybatmDA_b5113675 Completed 2 Cycles: *SUCCESS* at Thu Sep 26 13:46:23 UTC 2024
Experiment C96C48_hybatmaerosnowDA_b5113675 Completed 3 Cycles: *SUCCESS* at Thu Sep 26 14:29:00 UTC 2024

ci/scripts/utils/ci_utils.sh Fixed Show fixed Hide fixed
ci/scripts/utils/ci_utils.sh Fixed Show fixed Hide fixed
ci/scripts/utils/ci_utils.sh Fixed Show fixed Hide fixed
ci/scripts/utils/ci_utils.sh Fixed Show fixed Hide fixed
ci/scripts/utils/ci_utils.sh Fixed Show fixed Hide fixed
@TerrenceMcGuinness-NOAA TerrenceMcGuinness-NOAA added CI-Hercules-Ready **CM use only** PR is ready for CI testing on Hercules CI-Orion-Ready **CM use only** PR is ready for CI testing on Orion and removed CI-Hercules-Ready **CM use only** PR is ready for CI testing on Hercules CI-Orion-Failed **Bot use only** CI testing on Orion for this PR has failed labels Nov 8, 2024
@emcbot emcbot added CI-Orion-Building **Bot use only** CI testing is cloning/building on Orion CI-Orion-Failed **Bot use only** CI testing on Orion for this PR has failed and removed CI-Orion-Ready **CM use only** PR is ready for CI testing on Orion labels Nov 8, 2024
@emcbot
Copy link

emcbot commented Nov 8, 2024

Experiment C48_S2SWA_gefs FAILED on Orion in Build# 5 in
/work2/noaa/stmp/CI/ORION/2961/RUNTESTS/EXPDIR/C48_S2SWA_gefs_788dd8fb

@emcbot
Copy link

emcbot commented Nov 8, 2024

Experiment C48_S2SW FAILED on Orion in Build# 5 in
/work2/noaa/stmp/CI/ORION/2961/RUNTESTS/EXPDIR/C48_S2SW_788dd8fb

@emcbot emcbot added CI-Orion-Failed **Bot use only** CI testing on Orion for this PR has failed and removed CI-Orion-Failed **Bot use only** CI testing on Orion for this PR has failed CI-Orion-Building **Bot use only** CI testing is cloning/building on Orion labels Nov 8, 2024
@emcbot
Copy link

emcbot commented Nov 8, 2024

CI Failed on Orion in Build# 5
Built and ran in directory /work2/noaa/stmp/CI/ORION/2961


Experiment C48_S2SWA_gefs_788dd8fb Terminated with  tasks failed and  dead at Fri Nov  8 11:52:02 AM CST 2024
Experiment C48_S2SWA_gefs_788dd8fb Terminated: **
Experiment C48_S2SW_788dd8fb Terminated with  tasks failed and  dead at Fri Nov  8 11:53:42 AM CST 2024
Experiment C48_S2SW_788dd8fb Terminated: **

@emcbot emcbot added the CI-Orion-Running **Bot use only** CI testing on Orion for this PR is in-progress label Nov 8, 2024
@emcbot
Copy link

emcbot commented Nov 8, 2024

Experiment C48_ATM FAILED on Orion in Build# 7 with error logs:

/work2/noaa/stmp/CI/ORION/2961/RUNTESTS/COMROOT/C48_ATM_7d3b8bfe/logs/2021032312/gfs_stage_ic.log

Follow link here to view the contents of the above file(s): (link)

@emcbot emcbot removed the CI-Orion-Running **Bot use only** CI testing on Orion for this PR is in-progress label Nov 8, 2024
@emcbot
Copy link

emcbot commented Nov 8, 2024

Experiment C48_ATM FAILED on Orion in Build# 7 in
/work2/noaa/stmp/CI/ORION/2961/RUNTESTS/EXPDIR/C48_ATM_7d3b8bfe

@emcbot
Copy link

emcbot commented Nov 8, 2024

Experiment C48_S2SW FAILED on Orion in Build# 7 in
/work2/noaa/stmp/CI/ORION/2961/RUNTESTS/EXPDIR/C48_S2SW_7d3b8bfe

@emcbot
Copy link

emcbot commented Nov 8, 2024

Experiment C96_atm3DVar FAILED on Orion in Build# 7 in
/work2/noaa/stmp/CI/ORION/2961/RUNTESTS/EXPDIR/C96_atm3DVar_7d3b8bfe

@emcbot
Copy link

emcbot commented Nov 8, 2024

Experiment C96_S2SWA_gefs_replay_ics FAILED on Orion in Build# 7 with error logs:

/work2/noaa/stmp/CI/ORION/2961/RUNTESTS/COMROOT/C96_S2SWA_gefs_replay_ics_7d3b8bfe/logs/2020110100/gefs_stage_ic.log

Follow link here to view the contents of the above file(s): (link)

@emcbot
Copy link

emcbot commented Nov 8, 2024

Experiment C96C48_hybatmDA FAILED on Orion in Build# 7 with error logs:

/work2/noaa/stmp/CI/ORION/2961/RUNTESTS/COMROOT/C96C48_hybatmDA_7d3b8bfe/logs/2021122018/enkfgdas_stage_ic.log
/work2/noaa/stmp/CI/ORION/2961/RUNTESTS/COMROOT/C96C48_hybatmDA_7d3b8bfe/logs/2021122018/gdas_stage_ic.log

Follow link here to view the contents of the above file(s): (link)

@emcbot
Copy link

emcbot commented Nov 8, 2024

Experiment C96_S2SWA_gefs_replay_ics FAILED on Orion in Build# 7 in
/work2/noaa/stmp/CI/ORION/2961/RUNTESTS/EXPDIR/C96_S2SWA_gefs_replay_ics_7d3b8bfe

@emcbot
Copy link

emcbot commented Nov 8, 2024

Experiment C48_S2SWA_gefs FAILED on Orion in Build# 7 with error logs:

/work2/noaa/stmp/CI/ORION/2961/RUNTESTS/COMROOT/C48_S2SWA_gefs_7d3b8bfe/logs/2021032312/gefs_stage_ic.log

Follow link here to view the contents of the above file(s): (link)

@emcbot
Copy link

emcbot commented Nov 8, 2024

Experiment C96C48_hybatmDA FAILED on Orion in Build# 7 in
/work2/noaa/stmp/CI/ORION/2961/RUNTESTS/EXPDIR/C96C48_hybatmDA_7d3b8bfe

@emcbot
Copy link

emcbot commented Nov 8, 2024

Experiment C48_S2SWA_gefs FAILED on Orion in Build# 7 in
/work2/noaa/stmp/CI/ORION/2961/RUNTESTS/EXPDIR/C48_S2SWA_gefs_7d3b8bfe

@emcbot emcbot added CI-Orion-Failed **Bot use only** CI testing on Orion for this PR has failed and removed CI-Orion-Failed **Bot use only** CI testing on Orion for this PR has failed labels Nov 8, 2024
@emcbot
Copy link

emcbot commented Nov 8, 2024

CI Failed on Orion in Build# 7
Built and ran in directory /work2/noaa/stmp/CI/ORION/2961


**CI Failed** on Orion in Build# 5<br>Built and ran in directory `/work2/noaa/stmp/CI/ORION/2961`

Experiment C48_S2SWA_gefs_788dd8fb Terminated with tasks failed and dead at Fri Nov 8 11:52:02 AM CST 2024
Experiment C48_S2SWA_gefs_788dd8fb Terminated: **
Experiment C48_S2SW_788dd8fb Terminated with tasks failed and dead at Fri Nov 8 11:53:42 AM CST 2024
Experiment C48_S2SW_788dd8fb Terminated: **
Experiment C48_ATM_7d3b8bfe Terminated with 0
FAIL
FAIL tasks failed and 1 dead at Fri Nov 8 01:16:41 PM CST 2024
Experiment C48_ATM_7d3b8bfe Terminated: FAIL
Error logs:
/work2/noaa/stmp/CI/ORION/2961/RUNTESTS/COMROOT/C48_ATM_7d3b8bfe/logs/2021032312/gfs_stage_ic.log
Experiment C48_S2SW_7d3b8bfe Terminated with 0
FAIL
FAIL tasks failed and 2 dead at Fri Nov 8 01:16:48 PM CST 2024
Experiment C48_S2SW_7d3b8bfe Terminated: FAIL
Error logs:
/work2/noaa/stmp/CI/ORION/2961/RUNTESTS/COMROOT/C48_S2SW_7d3b8bfe/logs/2021032312/gfs_stage_ic.log
/work2/noaa/stmp/CI/ORION/2961/RUNTESTS/COMROOT/C48_S2SW_7d3b8bfe/logs/2021032312/gfs_waveinit.log
Experiment C96_atm3DVar_7d3b8bfe Terminated with 0
FAIL
FAIL tasks failed and 1 dead at Fri Nov 8 01:16:54 PM CST 2024
Experiment C96_atm3DVar_7d3b8bfe Terminated: FAIL
Experiment C96C48_hybatmDA_7d3b8bfe Terminated with 0
FAIL
FAIL tasks failed and 2 dead at Fri Nov 8 01:16:54 PM CST 2024
Experiment C96C48_hybatmDA_7d3b8bfe Terminated: FAIL
Experiment C96_S2SWA_gefs_replay_ics_7d3b8bfe Terminated with 0
FAIL
FAIL tasks failed and 1 dead at Fri Nov 8 01:16:55 PM CST 2024
Experiment C96_S2SWA_gefs_replay_ics_7d3b8bfe Terminated: FAIL
Error logs:
/work2/noaa/stmp/CI/ORION/2961/RUNTESTS/COMROOT/C96_atm3DVar_7d3b8bfe/logs/2021122018/gdas_stage_ic.log
Error logs:
/work2/noaa/stmp/CI/ORION/2961/RUNTESTS/COMROOT/C96C48_hybatmDA_7d3b8bfe/logs/2021122018/enkfgdas_stage_ic.log
/work2/noaa/stmp/CI/ORION/2961/RUNTESTS/COMROOT/C96C48_hybatmDA_7d3b8bfe/logs/2021122018/gdas_stage_ic.log
Error logs:
/work2/noaa/stmp/CI/ORION/2961/RUNTESTS/COMROOT/C96_S2SWA_gefs_replay_ics_7d3b8bfe/logs/2020110100/gefs_stage_ic.log
Experiment C48_S2SWA_gefs_7d3b8bfe Terminated with 0
FAIL
FAIL tasks failed and 1 dead at Fri Nov 8 01:17:03 PM CST 2024
Experiment C48_S2SWA_gefs_7d3b8bfe Terminated: FAIL
Error logs:
/work2/noaa/stmp/CI/ORION/2961/RUNTESTS/COMROOT/C48_S2SWA_gefs_7d3b8bfe/logs/2021032312/gefs_stage_ic.log

@TerrenceMcGuinness-NOAA
Copy link
Collaborator Author

Changes moved to PR 3076

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/CD Issue related to CI/CD CI-Orion-Failed **Bot use only** CI testing on Orion for this PR has failed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove on disk archive files in CI pipeline after running a test
5 participants