NOAA-OWP / wres

Code and scripts for the Water Resources Evaluation Service
Other
2 stars 1 forks source link

As PM, I want to identify and implement a better approach to testing USGS access than the current 700 series tests #212

Open epag opened 1 month ago

epag commented 1 month ago

Author Name: Hank (Hank) Original Redmine Issue: 65465, https://vlab.noaa.gov/redmine/issues/65465 Original Date: 2019-06-27


The current tests are too unstable, being reliant on a USGS service wherein the data can change often even for older data sets.

From the development discussion on 6/27/19, I took these notes which are crude but touch on various points:

James: Download the WaterML and use it. Or unit/integration to check connection to the service. Maybe just one system test without result assertion. Re-engineer to use file source.

Chris: Mostly in same boat, but we still need to check against servers. Don’t use the same way. Just check for output existing, running working.

James: Eliminate 6 and retain 1 or make the 6 stable.

Chris is most interested in 700 vs 701. Significant differences.

Then just retain those two.

Jesse: Can split out the tests and focus on what we want to test. (1) testing with data; (2) testing general service access; (3) testing whether we can call USGS.

Chris: We can test using WaterML (currently code is disconnected). Need to test writing NetCDF, which 706 does.

James: As a starting point, we can just reduce the assertions which are largely duplicative right now.

I will consider this ticket resolved once we have identified a reasonable approach to testing the ability of the WRES to use the USGS web service and then implement that new capability. Its expected that this will impact the structure/purpose of the current 700 series tests.

Targeting this for Release 1.10 until I hear otherwise. Thanks,

Hank

epag commented 1 month ago

Original Redmine Comment Author Name: James (James) Original Date: 2019-06-27T18:45:37Z


So, yeah, to clarify, I would:

Mostly, when this is done, I would expect 2-3 7xx system tests remaining of which, perhaps, 1-2 make real service calls with high-level assertions like "this clown car looks good, but the drivers may be suspect and I'm not checking them". Mostly, I would expect more unit/integration tests, some of which may involve mock-NWIS-service calls. This is where we check the clowns and make sure they have proper clown shoes and red noses.

I believe Jesse and I were heading in roughly the same direction.

epag commented 1 month ago

Original Redmine Comment Author Name: James (James) Original Date: 2019-07-05T19:53:42Z


Nothing happening in v1.10. Already urgent. Moving to backlog.

epag commented 1 month ago

Original Redmine Comment Author Name: Hank (Hank) Original Date: 2019-07-29T13:05:38Z


Quick note... Handling of USGS will also impact some of the "in development scenarios", such as 950; see #51159.

That is all,

Hank