Add rocoto sh tag, script to check netcdf file and apply this to check ocean output#2484
Conversation
…script that does a ncdump. If a file is incomplete or invalid, return code is non-zero. Combine those two to check if the ocean output is valid before triggering ocean_prod jobs
|
tagging @EricSinsky-NOAA for awareness |
|
Adding @jiandewang. |
|
Experiment C96_atmaerosnowDA failed on Hera with error logs: /scratch1/NCEPDEV/global/CI/2484/RUNTESTS/COMROOT/C96_atmaerosnowDA_96009402/logs/2021122018/gdasprepsnowobs.log Follow link here to view the contents of the above file(s): (link) |
|
Experiment C96C48_hybatmDA failed on Hera with error logs: Follow link here to view the contents of the above file(s): (link) |
|
CI FAILED Hera at 04 15 16:19:50 |
|
Detective @CoryMartin-NOAA traced the failure to: str_date = re.search(r'\d{8}', self.filename).group()
my_date = datetime.strptime(str_date, "%Y%m%d")In the above code, a search is being performed to find 8 integers from I will merge |
|
That explains it. Let me know if you need regex voodoo to find the right string. |
|
I've opened an issue. It's in a JCSDA repository so it may not be fixed immediately. In the meantime, we shall hope for alphanumeric hashes only! |
@CoryMartin-NOAA has opened an issue in the JCSDA-internal/ioda-converters repo. |
|
Please also note though that GDASApp will not currently build due to the RZDM meltdown. |
|
CI FAILED Hera at 04 16 16:14:40 |
|
@CoryMartin-NOAA This revised regex should only get an eight-digit string if it is between two periods: Test: |
|
|
Automated global-workflow Testing Results: |
|
Experiment C48_ATM_00209d76 SUCCESS on Wcoss2 at 04/17/24 07:12:09 AM |
|
Experiment C96_atm3DVar_00209d76 SUCCESS on Wcoss2 at 04/17/24 08:24:20 AM |
|
Experiment C96C48_hybatmDA_00209d76 SUCCESS on Wcoss2 at 04/17/24 08:24:27 AM |
|
Experiment C48_S2SW_00209d76 SUCCESS on Wcoss2 at 04/17/24 08:32:13 AM |
|
All CI Test Cases Passed on Wcoss2: |
|
@aerorahul my test run is successful on ocean post |
* upstream/develop: Add rocoto `sh` tag, script to check netcdf file and apply this to check ocean output (NOAA-EMC#2484) Revert file name changes in off-line post (NOAA-EMC#2499) Add mean/spread for atmos grib2 (NOAA-EMC#2482) Upadte and tested CI Bash for WCOSS2 (NOAA-EMC#2481)
Description
This PR:
ncdumpon a netCDF file. If the file is a valid netCDF file, the return code is 0, else it is non-zeroThis PR also:
ush/scripts that did not have executable permissions.Resolves #2328
With the addition of the
shtag, thegfsocean_proddependency will look like:Type of change
Change characteristics
How has this been tested?
This was tested at low resolution and in a standalone XML where an invalid netCDF file was purposefully placed in the path to check for rocoto status.
This should be tested in the case where the issue was first seen and reported.
Checklist