ClimaTimeSteppers.jl icon indicating copy to clipboard operation
ClimaTimeSteppers.jl copied to clipboard

Circular dependency on ClimaCore for test suite

Open sriharshakandala opened this issue 1 year ago • 8 comments

ClimaTimeSteppers.jl test suite has tests that depend on ClimaCore, creating a circular dependency.

Solution

Move these tests to ClimaCore and eliminate the circular dependency

sriharshakandala avatar Jun 13 '23 18:06 sriharshakandala

cc: @simonbyrne

sriharshakandala avatar Jun 13 '23 18:06 sriharshakandala

There's no circular dependency-- ClimaCore does not depend on ClimaTimeSteppers.jl, and ClimaTimeSteppers.jl does not depend on ClimaCore. The ClimaTimeSteppers test environment depends on both, but that's fine. What's the issue here? Are you getting an error?

charleskawczynski avatar Jun 13 '23 19:06 charleskawczynski

it does make it hard to upgrade ClimaComms, as we can't run the ClimaTimeSteppers tests until we've upgraded ClimaCore, and vice versa.

simonbyrne avatar Jun 13 '23 20:06 simonbyrne

Would it help if we made ClimaTimeSteppers not depend on ClimaComms? We can (and probably should anyway) undo this patch: https://github.com/CliMA/ClimaTimeSteppers.jl/commit/45fa591fd5c1211397fc326bf0365047ff48226a. Then we can remove the ClimaComms dependency. I'll do that now

charleskawczynski avatar Jun 13 '23 20:06 charleskawczynski

We need it for some of the callbacks

simonbyrne avatar Jun 13 '23 20:06 simonbyrne

Ah, right

charleskawczynski avatar Jun 13 '23 20:06 charleskawczynski

Would it help if we added a buildkite job in ClimaTimeSteppers that depends on the ClimaCore main branch?

charleskawczynski avatar Jun 13 '23 21:06 charleskawczynski

I suppose we could make ClimaTimeSteppers a lib in ClimaCore. This would make updates easier

charleskawczynski avatar Jun 13 '23 23:06 charleskawczynski