-
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
Remove Direct Linking to COM from DATA for wavepostsbs
Job
#3303
base: develop
Are you sure you want to change the base?
Remove Direct Linking to COM from DATA for wavepostsbs
Job
#3303
Conversation
wavepostsbs
Jobwavepostsbs
Job
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some comments and requested a change that will definitely fail
Co-authored-by: Rahul Mahajan <[email protected]>
Co-authored-by: Rahul Mahajan <[email protected]>
Co-authored-by: Rahul Mahajan <[email protected]>
@aerorahul Some checks of the last commit were not successful because the |
@aerorahul Ran two CI tests on HERCULES with the current branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some minor comments. I have not run tests myself, but if this gives you the same answers as develop, we should be okay.
ush/wave_grib2_sbs.sh
Outdated
cpfs "${outfile}.idx" "${com_dir}/${outfile}.idx" | ||
echo "Copied ${outfile} and ${outfile}.idx from ${GRIBDATA} to COM" | ||
else | ||
echo "${outfile} and ${outfile}.idx not found in ${GRIBDATA} to copy to COM" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be an error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JessicaMeixner-NOAA What this does is copying the ${outfile}
to the COM directory, after the GRIB packing program
is run. We are trying to first run the GRIB packing program
in the working directory and then move the grib
and .idx
files to the COM dir. Is this what you are concerned about?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's great! Thanks for these updates. What I'm concerned with is if the grib and .idx files do not exist, then perhaps that should be an error message and not just simply a " echo "${outfile} and ${outfile}.idx not found" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JessicaMeixner-NOAA "${outfile} and ${outfile}.idx not found in ${GRIBDATA} to copy to COM
Currently, this is the error message. What changes would you recommend for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it say something like "ERROR: explanation" and then exit instead of continuing on?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JessicaMeixner-NOAA I will revise the script based on your suggestion. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JessicaMeixner-NOAA I reviewed the script again, and it turns out the issue is addressed in the if blocks (L233-256). However, it only checks the COM files. So, I think your suggestion is correct.
@@ -232,16 +255,14 @@ if [[ ! -s "${com_dir}/${outfile}.idx" ]]; then | |||
|
|||
if [[ "${SENDDBN}" = 'YES' ]] && [[ ${outfile} != *global.0p50* ]]; then | |||
set +x | |||
echo " Alerting GRIB file as ${com_dir}/${outfile}" | |||
echo " Alerting GRIB index file as ${com_dir}/${outfile}.idx" | |||
echo " Alerting GRIB file as ${outfile}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the com_dir be removed from this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JessicaMeixner-NOAA After the L255 the grib
and the .idx
files should be in both the COM directory and the working directory, since the working directory is not removed yet. So, this should run without an error if those files exist in both dirs. If @aerorahul thinks this is not correct I can change it. But I think this should be correct because we need an alert to send for the files available in COM dir, while checking the files in the working directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is just an echo. its fine to be either. the crucial line is the dbn_alert
that alerts the correct path of this file from com_dir
.
ush/wave_grib2_sbs.sh
Outdated
cpfs "${subfnam}.idx" "${com_dir}/${subfnam}.idx" | ||
echo "Copied ${subfnam} and ${subfnam}.idx from ${GRIBDATA} to COM" | ||
else | ||
echo "${subfnam} and ${subfnam}.idx not found in ${GRIBDATA} to copy to COM" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be an error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
Description
In the current GFS version, some jobs directly write to COMOUT via links in the working directories. This approach is risky, as downstream jobs might receive incomplete files and fail. In order to resolve this issue direct linking to COM from DATA should be removed. This PR addresses this issue in the
wavepostsbs
job.Resolves Remove direct linking to
COM
fromDATA
forwavepostsbs
job #3302Refs [NCO Bug] Replace links with copy/move/rsync in workflow scripts #712
Refs Replace link w/ copy in the forecast job #3273
Type of change
Change characteristics
How has this been tested?
HERA
Checklist