Skip to content

Conversation

@juliasloan25
Copy link
Member

@juliasloan25 juliasloan25 commented Nov 7, 2025

Purpose

I also added climacoupler-ci to the Clear Depot pipeline. Now we can use the generic clear depot instead of the coupler-specific one (which I'll delete soon). The default clear depot can be used to clear this pipeline's depot by setting the environment variable slug=climacoupler-ci.

Also minimized optimization of everything in the regular CI by passing the -O0 flag (as opposed to the default -O2 optimization level).

For timing examples, see CI runs with -O0 vs default. The largest change is in GPU CMIP, which goes from 42 to 28 minutes. Some slabplanet runs and the sea breeze experiment become slower because they're run for 1+days. This option seems to only be useful for tests and experiments that run for "a few" steps (maybe <5, depending on the configuration).

@juliasloan25 juliasloan25 force-pushed the js/depot branch 2 times, most recently from 4311c18 to 7d78183 Compare November 8, 2025 00:37
@juliasloan25 juliasloan25 changed the title use default depot use default depot + julia -O0 flag Nov 8, 2025
julia --color=yes --project=experiments/ClimaEarth -e 'using Pkg; Pkg.instantiate()'
julia --color=yes --project=experiments/ClimaEarth -e 'using Pkg; Pkg.develop(; path = ".")'
julia --color=yes --project=experiments/ClimaEarth experiments/ClimaEarth/test/runtests.jl
julia -O0 --color=yes --project=experiments/ClimaEarth -e 'using Pkg; Pkg.instantiate()'
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if this improvement is big enough to make it worth not using julia-actions/julia-runtest@v1, and instead manually running tests like is done here

Copy link
Member Author

Choose a reason for hiding this comment

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

I was thinking about that too. I'm not sure if there's really any benefit to using julia-actions/julia-runtest. For ClimaCoupler though, most of the test time is dominated by `experiments/ClimaEarth/runtests.jl, which we call manually. But I think that would have a bigger impact in e.g. ClimaLand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants