Skip to content

Update REPL script documentation #3920

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update REPL script documentation #3920

wants to merge 1 commit into from

Conversation

akshaysridhar
Copy link
Member

Simplified version of .buildkite/ci_driver.jl that shows one example of a debugging workflow using Revise.

@akshaysridhar akshaysridhar force-pushed the as/demo-ex branch 3 times, most recently from fc8d1b2 to 5f0964a Compare August 4, 2025 23:01
@akshaysridhar akshaysridhar marked this pull request as ready for review August 5, 2025 16:05
@akshaysridhar
Copy link
Member Author

akshaysridhar commented Aug 5, 2025

We can run this example as part of the Literate.jl / Documenter docs CI checks, if interfaces were to change it would catch any changes (so this is a more robust version of the old examples/driver.jl code)

@akshaysridhar akshaysridhar force-pushed the as/demo-ex branch 2 times, most recently from 0179f24 to f971a53 Compare August 5, 2025 16:25
Copy link
Member

Choose a reason for hiding this comment

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

Could we revert the change in this file?

```

```julia
julia> using Revise # See also: Infiltrator.jl and Main.@infiltrate
Copy link
Member

Choose a reason for hiding this comment

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

I don't think Revise is a dependency of ClimaAtmos - how could this work as a test?

Copy link
Member Author

Choose a reason for hiding this comment

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

Switching to use Literate.jl should allow lines with # to be treated as comments and run all other lines as standard julia code, so we can still exercise the AtmosConfig, AtmosSimulation, atmos_solve!(simulation) and step!(simulation.integrator) methods - Revise is still an external reference as a doc example.

Copy link
Member

Choose a reason for hiding this comment

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

So is this being tested now? I'm fine with merging it either way, but I don't think it is tested.

Copy link
Member

Choose a reason for hiding this comment

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

I think we would see an error in the doc build? Would that be good enough warning?

Copy link
Member Author

@akshaysridhar akshaysridhar Aug 5, 2025

Choose a reason for hiding this comment

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

Instructions within the example block are being run and should show corresponding output (there is an issue here in that I can get this to work locally but it fails at some albedo plot generation unrelated to this PR in the github actions job, prior to even reaching the REPL docs - I'll look into this shortly)

Copy link
Member

Choose a reason for hiding this comment

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

Oh I think we are testing it in the latest commit now - and now it is failing 😂

@akshaysridhar akshaysridhar force-pushed the as/demo-ex branch 5 times, most recently from ab333f6 to 65355fc Compare August 8, 2025 20:36
@akshaysridhar akshaysridhar force-pushed the as/demo-ex branch 3 times, most recently from 2f6196b to d4917b4 Compare August 12, 2025 16:34
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.

3 participants