pangeo-forge / pangeo-forge-orchestrator

Database API and GitHub App backend for Pangeo Forge Cloud.
https://api.pangeo-forge.org/docs
Apache License 2.0
4 stars 1 forks source link

Integration testing #225

Closed cisaacstern closed 1 year ago

cisaacstern commented 1 year ago

Recent experiences with failed dataflow job deployment #220 have demonstrated the need for integration testing. Last week I added a Dataflow integration test to pangeo-forge-runner https://github.com/pangeo-forge/pangeo-forge-runner/pull/52. This gives us a baseline confidence that a given release of pangeo-forge-runner works in the test environment used there. It's possible that our application container environment may introduce unique client/dataflow incompatibilities and/or that the way we invoke pangeo-forge-runner (the literal command we use, but also the process context: subprocess, network call to external service, etc.) may introduce problems. In fact, as discussed in #220, it seems that we are facing some type/combination of these issues currently.

A dataflow integration test here could:

Assuming we do want to pursue the latter, more realistic, option, I can envision two ways of getting an instance of the application started to test:

I'll start a PR to address this.

cisaacstern commented 1 year ago

A bit more brainstorming before opening a PR:

So brainstorming a rough work plan for the PR that adds this test: