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

Clean-up temporary rundirs - take 2. #2753

Merged
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
3914c28
update PR template for submods. Define DATAROOT with RUN and PDYcyc t…
aerorahul Jul 8, 2024
a7a4356
Merge branch 'develop' into feature/cleanup-rundirs
aerorahul Jul 9, 2024
72933ec
source configs in jjob_header before creating DATA. remove DATAROOT f…
aerorahul Jul 9, 2024
3a587dd
missed aerosol forecast in GFS
aerorahul Jul 9, 2024
579130a
aerosol_init should not be called when it is a warm start
aerorahul Jul 9, 2024
94abc57
fix pynorms
aerorahul Jul 9, 2024
ec60311
Merge branch 'develop' into feature/cleanup-rundirs
aerorahul Jul 11, 2024
5fc2193
revert GFS f-o changes related to app=S2SWA
aerorahul Jul 11, 2024
ebcc0bf
Merge branch 'develop' into feature/cleanup-rundirs
aerorahul Jul 22, 2024
eaf9a44
order matters in jjob_header. retain it. Use the suggestion from DH…
aerorahul Jul 23, 2024
6cc64ce
update comment to be correct
aerorahul Jul 23, 2024
f3152c5
Merge branch 'develop' into feature/cleanup-rundirs
aerorahul Jul 23, 2024
ecb17b7
Merge branch 'develop' into feature/cleanup-rundirs
aerorahul Jul 27, 2024
075eddf
Merge branch 'develop' into feature/cleanup-rundirs
aerorahul Jul 29, 2024
7b10afc
alphabetize and add note on pending PRs
aerorahul Jul 30, 2024
eed8604
Merge branch 'develop' into feature/cleanup-rundirs
aerorahul Jul 30, 2024
b1e6dbb
clean-up and correct the issue in JGLOBAL_CLEANUP
aerorahul Jul 30, 2024
2ebfcd8
Update workflow/rocoto/tasks.py
aerorahul Jul 31, 2024
e785f36
Make all jobs source config.resources.
DavidHuber-NOAA Aug 1, 2024
3c02bc0
Update parm/config/gfs/config.fbwind
aerorahul Aug 1, 2024
a63c0d8
Merge branch 'develop' into feature/cleanup-rundirs
aerorahul Aug 1, 2024
2f75312
Merge pull request #7 from DavidHuber-NOAA/fix/extended_resources
aerorahul Aug 1, 2024
4d43f65
Merge branch 'develop' into feature/cleanup-rundirs
aerorahul Aug 1, 2024
e22415c
Merge branch 'develop' into feature/cleanup-rundirs
WalterKolczynski-NOAA Aug 5, 2024
5233b4e
Merge branch 'develop' into feature/cleanup-rundirs
WalterKolczynski-NOAA Aug 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@
# Change characteristics
- Is this a breaking change (a change in existing functionality)? YES/NO
- Does this change require a documentation update? YES/NO
- Does this change require an update to any of the following submodules? YES/NO
- [ ] UFS-weather-model
- [ ] UFS-UTILS
- [ ] GSI
- [ ] GSI-utils
- [ ] GSI-monitor
- [ ] GDAS
- [ ] EMC verif-global
- [ ] wxflow
- [ ] GFS-utils
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we alphabetize these? Also a note to link the related PRs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Please re-review.



# How has this been tested?
<!-- Please list any test you conducted, including the machine.
Expand Down
1 change: 0 additions & 1 deletion parm/config/gefs/config.base
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ export PSLOT="@PSLOT@"
export EXPDIR="@EXPDIR@/${PSLOT}"
export ROTDIR="@COMROOT@/${PSLOT}"

export DATAROOT="${STMP}/RUNDIRS/${PSLOT}" # TODO: set via prod_envir in Ops
export ARCDIR="${NOSCRUB}/archive/${PSLOT}"
export ATARDIR="@ATARDIR@"

Expand Down
1 change: 0 additions & 1 deletion parm/config/gfs/config.base
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ export DUMP_SUFFIX=""
if [[ "${PDY}${cyc}" -ge "2019092100" && "${PDY}${cyc}" -le "2019110700" ]]; then
export DUMP_SUFFIX="p" # Use dumps from NCO GFS v15.3 parallel
fi
export DATAROOT="${STMP}/RUNDIRS/${PSLOT}" # TODO: set via prod_envir in Ops
export ARCDIR="${NOSCRUB}/archive/${PSLOT}"
export ATARDIR="@ATARDIR@"

Expand Down
14 changes: 5 additions & 9 deletions scripts/exglobal_cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,11 @@ if [[ -d "${DATAfcst}" ]]; then rm -rf "${DATAfcst}"; fi
#DATAefcs="${DATAROOT}/${RUN}efcs???${PDY:-}${cyc}"
rm -rf "${DATAROOT}/${RUN}efcs"*"${PDY:-}${cyc}"

# Search and delete files/directories from DATAROOT/ older than ${purge_every_days} days
# purge_every_days should be a positive integer
#purge_every_days=3

# Find and delete files older than ${purge_every_days} days
#find "${DATAROOT}/"* -type f -mtime "+${purge_every_days}" -exec rm -f {} \;

# Find and delete directories older than ${purge_every_days} days
#find "${DATAROOT}/"* -type d -mtime "+${purge_every_days}" -exec rm -rf {} \;
# In XML, DATAROOT is defined as:
#DATAROOT="${STMP}/RUNDIRS/${PSLOT}/${RUN}.${PDY}${cyc}"
# cleanup is only executed after the entire cycle is successfully completed.
# removing DATAROOT should be possible if that is the case.
rm -rf "${DATAROOT}"

echo "Cleanup ${DATAROOT} completed!"
###############################################################
Expand Down
5 changes: 2 additions & 3 deletions ush/jjob_header.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
# [default: "YES"]
# - $pid : Override the default process id
# [default: $$]
#

OPTIND=1
while getopts "c:e:" option; do
Expand Down Expand Up @@ -99,7 +98,7 @@ for config in "${configs[@]:-''}"; do
status=$?
if (( status != 0 )); then
echo "FATAL [${BASH_SOURCE[0]}]: Unable to load config config.${config}"
exit "${status}"
exit "${status}"
fi
done

Expand All @@ -111,5 +110,5 @@ source "${HOMEgfs}/env/${machine}.env" "${env_job}"
status=$?
if (( status != 0 )); then
echo "FATAL [${BASH_SOURCE[0]}]: Error while sourcing machine environment ${machine}.env for job ${env_job}"
exit "${status}"
exit "${status}"
fi
4 changes: 3 additions & 1 deletion workflow/rocoto/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def __init__(self, app_config: AppConfig, cdump: str) -> None:

self.n_tiles = 6 # TODO - this needs to be elsewhere

# DATAROOT is set by prod_envir in ops. Here, we use `STMP` to construct DATAROOT
DavidHuber-NOAA marked this conversation as resolved.
Show resolved Hide resolved
dataroot_str = f"{self._base.get('STMP')}/RUNDIRS/{self._base.get('PSLOT')}/{self.cdump}.<cyclestr>@Y@m@d@H</cyclestr>"
aerorahul marked this conversation as resolved.
Show resolved Hide resolved
envar_dict = {'RUN_ENVIR': self._base.get('RUN_ENVIR', 'emc'),
'HOMEgfs': self.HOMEgfs,
'EXPDIR': self._base.get('EXPDIR'),
Expand All @@ -65,7 +67,7 @@ def __init__(self, app_config: AppConfig, cdump: str) -> None:
'PDY': '<cyclestr>@Y@m@d</cyclestr>',
'cyc': '<cyclestr>@H</cyclestr>',
'COMROOT': self._base.get('COMROOT'),
'DATAROOT': self._base.get('DATAROOT')}
'DATAROOT': dataroot_str}

self.envars = self._set_envars(envar_dict)

Expand Down
Loading