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

Add tests to convert sat bias files and save them to R2D2; make calls to R2D2 more generic #37

Merged
merged 17 commits into from
Apr 5, 2022

Conversation

CoryMartin-NOAA
Copy link
Contributor

Addresses the remainder of #7

Two new tests are added (but only if the full bundle is built)

Additionally, a generic call to R2D2 store has been added to ush/ufsda/r2d2.py, and changes have been made to the SOCA test to use this generic R2D2 store function.

@CoryMartin-NOAA CoryMartin-NOAA self-assigned this Apr 1, 2022
@CoryMartin-NOAA CoryMartin-NOAA added hera-RT Queue for automated testing on Hera orion-RT Queue for automated testing on Orion labels Apr 1, 2022
@emcbot emcbot added orion-RT-Running Automated testing running on Orion hera-RT-Running Automated testing running on Hera and removed orion-RT Queue for automated testing on Orion hera-RT Queue for automated testing on Hera labels Apr 1, 2022
Copy link
Contributor

@guillaumevernieres guillaumevernieres left a comment

Choose a reason for hiding this comment

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

A few minor comments/questions. Looks good, thanks @CoryMartin-NOAA .

@@ -0,0 +1,38 @@
#!/bin/bash
set -ex
Copy link
Contributor

Choose a reason for hiding this comment

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

still need -x?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought it might be useful for debugging purposes

'root': os.path.join(os.getcwd(), 'r2d2-test')}, },
'fetch_order': ['test'],
'store_order': ['test'],
}
Copy link
Contributor

Choose a reason for hiding this comment

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

couldn't that be a call to genyaml and we keep an r2d2_config.yaml template somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, do you think that is what should be done in this and your existing test? Or stick with this approach for now? Does it make sense for the same r2d2 db to be used for both the atm and soca tests?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think so, we have a few r2d2_config dictionaries defined here and there, it might be a good idea to consolidate how we deal with the config. I would say create an issue somewhere so we can remember to deal with it later, or change it now? Up to you. I won't block this pr for this issue.
As for the r2d2 db, yes, I do think we should have the same one.

source_file=f'{source_dir}/{obs_type}_{year}{month}{day}.nc4',
ignore_missing=True,
)
ufsda.r2d2.store(config)
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@emcbot
Copy link

emcbot commented Apr 1, 2022

Automated Pull Request Testing Results:
Machine: hera

Start: Fri Apr  1 21:15:18 UTC 2022 on hfe10
---------------------------------------------------
Build:                                 *SUCCESS*
Build: Completed at Fri Apr  1 21:55:13 UTC 2022
---------------------------------------------------
Tests:                                  *Failed*
Tests: Failed at Fri Apr  1 21:55:31 UTC 2022
Tests: 89% tests passed, 1 tests failed out of 9
Tests: see output at /scratch1/NCEPDEV/da/Cory.R.Martin/CI/GDASApp/PR/37/GDASApp/build/log.ctest

@emcbot emcbot added hera-RT-Failed Automated testing failed on Hera and removed hera-RT-Running Automated testing running on Hera labels Apr 1, 2022
@emcbot
Copy link

emcbot commented Apr 1, 2022

Automated Pull Request Testing Results:
Machine: orion

Start: Fri Apr  1 16:15:11 CDT 2022 on Orion-login-1.HPC.MsState.Edu
---------------------------------------------------
Build:                                 *SUCCESS*
Build: Completed at Fri Apr  1 16:55:51 CDT 2022
---------------------------------------------------
Tests:                                  *Failed*
Tests: Failed at Fri Apr  1 16:56:07 CDT 2022
Tests: 89% tests passed, 1 tests failed out of 9
Tests: see output at /work2/noaa/stmp/cmartin/CI/GDASApp/PR/37/GDASApp/build/log.ctest

@emcbot emcbot added orion-RT-Failed Automated testing failed on Orion and removed orion-RT-Running Automated testing running on Orion labels Apr 1, 2022
@CoryMartin-NOAA CoryMartin-NOAA added orion-RT Queue for automated testing on Orion and removed hera-RT-Failed Automated testing failed on Hera orion-RT-Running Automated testing running on Orion labels Apr 4, 2022
@CoryMartin-NOAA
Copy link
Contributor Author

Build fails on Hera because da disk quota has been exceeded.

@emcbot emcbot added orion-RT-Running Automated testing running on Orion and removed orion-RT Queue for automated testing on Orion labels Apr 4, 2022
@emcbot
Copy link

emcbot commented Apr 4, 2022

Automated Pull Request Testing Results:
Machine: orion

Start: Mon Apr  4 12:45:25 CDT 2022 on Orion-login-1.HPC.MsState.Edu
---------------------------------------------------
Build:                                 *SUCCESS*
Build: Completed at Mon Apr  4 13:28:59 CDT 2022
---------------------------------------------------
Tests:                                  *Failed*
Tests: Failed at Mon Apr  4 13:30:01 CDT 2022
Tests: 89% tests passed, 1 tests failed out of 9
Tests: see output at /work2/noaa/stmp/cmartin/CI/GDASApp/PR/37/GDASApp/build/log.ctest

@emcbot emcbot added orion-RT-Failed Automated testing failed on Orion and removed orion-RT-Running Automated testing running on Orion labels Apr 4, 2022
@CoryMartin-NOAA CoryMartin-NOAA added orion-RT Queue for automated testing on Orion and removed orion-RT-Failed Automated testing failed on Orion labels Apr 4, 2022
@emcbot emcbot added orion-RT-Running Automated testing running on Orion and removed orion-RT Queue for automated testing on Orion labels Apr 4, 2022
@emcbot
Copy link

emcbot commented Apr 4, 2022

Automated Pull Request Testing Results:
Machine: orion

Start: Mon Apr  4 14:15:13 CDT 2022 on Orion-login-1.HPC.MsState.Edu
---------------------------------------------------
Build:                                 *SUCCESS*
Build: Completed at Mon Apr  4 14:58:24 CDT 2022
---------------------------------------------------
Tests:                                  *Failed*
Tests: Failed at Mon Apr  4 14:59:22 CDT 2022
Tests: 89% tests passed, 1 tests failed out of 9
Tests: see output at /work2/noaa/stmp/cmartin/CI/GDASApp/PR/37/GDASApp/build/log.ctest

@emcbot emcbot added orion-RT-Failed Automated testing failed on Orion and removed orion-RT-Running Automated testing running on Orion labels Apr 4, 2022
@CoryMartin-NOAA CoryMartin-NOAA added orion-RT Queue for automated testing on Orion and removed orion-RT-Failed Automated testing failed on Orion labels Apr 4, 2022
@emcbot emcbot added orion-RT-Running Automated testing running on Orion and removed orion-RT Queue for automated testing on Orion labels Apr 4, 2022
@emcbot
Copy link

emcbot commented Apr 4, 2022

Automated Pull Request Testing Results:
Machine: orion

Start: Mon Apr  4 15:15:15 CDT 2022 on Orion-login-1.HPC.MsState.Edu
---------------------------------------------------
Build:                                 *SUCCESS*
Build: Completed at Mon Apr  4 15:58:41 CDT 2022
---------------------------------------------------
Tests:                                 *SUCCESS*
Tests: Completed at Mon Apr  4 15:59:30 CDT 2022
Tests: 100% tests passed, 0 tests failed out of 9

@emcbot emcbot added orion-RT-Passed Automated testing successful on Orion and removed orion-RT-Running Automated testing running on Orion labels Apr 4, 2022
Copy link
Contributor

@guillaumevernieres guillaumevernieres left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks @CoryMartin-NOAA .
I added a few comments that could be addressed in future pr's.

@CoryMartin-NOAA CoryMartin-NOAA merged commit 52b8c76 into develop Apr 5, 2022
@CoryMartin-NOAA CoryMartin-NOAA deleted the feature/satbias_r2d2_tests branch April 5, 2022 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
orion-RT-Passed Automated testing successful on Orion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants