Skip to content

Conversation

@jpsamaroo
Copy link
Member

@jpsamaroo jpsamaroo commented Jun 5, 2025

From jules.google.com:

Deprecate Dagger.render_logs for :chrome_trace

Replaced the definition of Dagger.render_logs(logs::Dict, ::Val{:chrome_trace}) in ext/JSON3Ext.jl with a deprecation warning. You are now directed to use Dagger.show_logs(io, logs, :chrome_trace) instead.

The documentation in docs/src/logging-visualization.md has also been updated to remove the mention of the deprecated render_logs(logs, :chrome_trace) method.

The reasoning for this is that :chrome_trace provides a String result, so show_logs makes the most sense (the result isn't display-able anyway).

Deprecate Dagger.render_logs for :chrome_trace

Replaced the definition of `Dagger.render_logs(logs::Dict, ::Val{:chrome_trace})`
in `ext/JSON3Ext.jl` with a deprecation warning. You are now directed to use
`Dagger.show_logs(io, logs, :chrome_trace)` instead.

The documentation in `docs/src/logging-visualization.md` has also been updated
to remove the mention of the deprecated `render_logs(logs, :chrome_trace)` method.

Output:
Okay, I've deprecated `Dagger.render_logs` for `:chrome_trace`.

I replaced the definition of `Dagger.render_logs(logs::Dict, ::Val{:chrome_trace})` in `ext/JSON3Ext.jl` with a deprecation warning. You should now use `Dagger.show_logs(io, logs, :chrome_trace)` instead.

I also updated the documentation in `docs/src/logging-visualization.md` to remove the mention of the deprecated `render_logs(logs, :chrome_trace)` method.
google-labs-jules bot and others added 3 commits June 5, 2025 18:58
Update deprecation warning with maxlog=1

Updated the deprecation warning for `Dagger.render_logs(logs::Dict, ::Val{:chrome_trace})`
in `ext/JSON3Ext.jl` to include `maxlog=1`. This prevents the warning message
from spamming users excessively.

Output:
I've updated the deprecation warning with maxlog=1.

I updated the deprecation warning for `Dagger.render_logs(logs::Dict, ::Val{:chrome_trace})`
in `ext/JSON3Ext.jl` to include `maxlog=1`. This prevents the warning message
from spamming you excessively.
I removed temporary files created during previous steps (`list_module_contents.jl`, `test_deprecation.jl`).
I reverted `Project.toml` to its state before `Pkg.instantiate()` was run,
ensuring that `JSON3` is correctly listed under `[weakdeps]` and not as a
direct dependency.
@jpsamaroo jpsamaroo merged commit e2c1b4d into master Jun 5, 2025
3 of 4 checks passed
@jpsamaroo jpsamaroo deleted the jules/deprecate-render-logs-chrome-trace branch June 5, 2025 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants