Skip to content

Commit

Permalink
Create daily_cleanup_parallelworks.yaml (NOAA-GFDL#289)
Browse files Browse the repository at this point in the history
* Create daily_cleanup_parallelworks.yaml

* Renamed the directory housing the CI scripts on Parallworks.

* changing path to build directories.
  • Loading branch information
laurenchilutti authored Oct 4, 2023
1 parent f919f46 commit 324e3da
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/SHiELD_parallelworks_intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
# this is enough nodes for the first 17 tests to run in parallel, and we
# have 17 runners configured.
- run: salloc --partition=p2 -N 46 -J $GITHUB_REF sleep 20m &
- run: /contrib/fv3/intelFV3CIScripts/checkout.sh $GITHUB_REF
- run: /contrib/fv3/GFDL_atmos_cubed_sphere_CI/checkout.sh $GITHUB_REF

build:
runs-on: [self-hosted,devcimultiintel]
Expand All @@ -37,7 +37,7 @@ jobs:
fail-fast: true
max-parallel: 3
matrix:
runpath: [/contrib/fv3/intelFV3CIScripts/]
runpath: [/contrib/fv3/GFDL_atmos_cubed_sphere_CI/]
runscript: [swcompile.sh, nhcompile.sh, hydrocompile.sh]
steps:
- env:
Expand All @@ -53,7 +53,7 @@ jobs:
fail-fast: false
max-parallel: 17
matrix:
runpath: [/contrib/fv3/intelFV3CIScripts/]
runpath: [/contrib/fv3/GFDL_atmos_cubed_sphere_CI/]
runscript:
# These are placed in order of largest to smallest jobs
#layout 8,8 needs 8 nodes on dvcimultiintel cluster
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/daily_cleanup_parallelworks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Old Build Cleanup

# This GitHub Action Workflow is runing on the devcimultiintel cluster
# This will delete all build directories older than 30 days
# Build directories are on the cloud at /contrib/fv3/2023.2.0

on:
schedule:
# run daily at midnight
- cron: '0 0 * * *'

jobs:
delete:
runs-on: [self-hosted, devcimultiintel]
name: Delete Builds
steps:
- run: find /contrib/fv3/2023.2.0/GFDL_atmos_cubed_sphere/refs/pull -maxdepth 1 -mindepth 1 -mtime +30 -type d -print -delete

0 comments on commit 324e3da

Please sign in to comment.