Skip to content

Merge pull request #261 from YichengDWu/compathelper/new_version/2024… #1165

Merge pull request #261 from YichengDWu/compathelper/new_version/2024…

Merge pull request #261 from YichengDWu/compathelper/new_version/2024… #1165

Triggered via push June 17, 2024 07:22
Status Failure
Total duration 51m 28s
Artifacts

CI.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

6 errors, 5 warnings, and 1 notice
Julia 1.10 - ubuntu-latest - x64 - push
Process completed with exit code 1.
Julia 1.8 - ubuntu-latest - x64 - push
Process completed with exit code 1.
Julia 1.9 - ubuntu-latest - x64 - push
Process completed with exit code 1.
Documentation: ../../../.julia/packages/Documenter/CJeWX/src/utilities/utilities.jl#L44
failed to run `@example` block in src/tutorials/sod.md:5-38 ```@example SOD using Optimization, OptimizationOptimJL, Plots, Zygote using ModelingToolkit, IntervalSets using Sophon using ChainRulesCore @parameters t, x @variables u(..), ρ(..), p(..) Dₓ = Differential(x) Dₜ = Differential(t) u₀(x) = 0.0 ρ₀(x) = ifelse(x < 0.5, 1.0, 0.125) @register ρ₀(x) p₀(x) = ifelse(x < 0.5, 1.0, 0.1) @register p₀(x) bcs = [ρ(0, x) ~ ρ₀(x), u(0, x) ~ u₀(x), p(0, x) ~ p₀(x), u(t, 0) ~ 0.0, u(t, 1) ~ 0.0] γ = 1.4 E(t, x) = p(t, x) / (γ - 1) + 0.5 * ρ(t, x) * abs2(u(t, x)) eqs = [ Dₜ(ρ(t, x)) + Dₓ(ρ(t, x) * u(t, x)) ~ 0.0, Dₜ(ρ(t, x) * u(t, x)) + Dₓ(ρ(t, x) * u(t, x) * u(t, x) + p(t, x)) ~ 0.0, Dₜ(E(t, x)) + Dₓ(u(t, x) * (E(t, x) + p(t, x))) ~ 0.0, ] t_min, t_max = 0.0, 0.2 x_min, x_max = 0.0, 1.0 domains = [t ∈ Interval(t_min, t_max), x ∈ Interval(x_min, x_max)] @nAmed pde_system = PDESystem(eqs, bcs, domains, [t, x], [u(t, x), ρ(t, x), p(t, x)]) ``` exception = LoadError: UndefVarError: `@register` not defined Stacktrace: [1] top-level scope @ :0 [2] eval @ ./boot.jl:385 [inlined] [3] #58 @ ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:754 [inlined] [4] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [5] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:753 [6] (::IOCapture.var"#5#9"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:170 [7] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:515 [8] with_logger @ ./logging.jl:627 [inlined] [9] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer, io_context::Vector{Any}) @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:167 [10] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:752 in expression starting at sod.md:18
Documentation: ../../../.julia/packages/Documenter/CJeWX/src/utilities/utilities.jl#L44
failed to run `@example` block in src/tutorials/sod.md:40-69 ```@example SOD pinn = PINN(u=FullyConnected(2, 1, tanh; num_layers=4, hidden_dims=16), ρ=FullyConnected(2, 1, tanh; num_layers=4, hidden_dims=16), p=FullyConnected(2, 1, tanh; num_layers=4, hidden_dims=16)) sampler = QuasiRandomSampler(1000, 400) function pde_weights(phi, x, θ) ux = Sophon.finitediff(phi.u, x, θ.u, 1, 1) ρx = Sophon.finitediff(phi.ρ, x, θ.ρ, 1, 1) px = Sophon.finitediff(phi.p, x, θ.p, 1, 1) d = ux .+ ρx .+ px return ChainRulesCore.@ignore_derivatives inv.(0.2 .* abs.(d) .+ 1) end strategy = AdaptiveTraining(pde_weights, Returns(10)) prob = Sophon.discretize(pde_system, pinn, sampler, strategy) @showprogress res = Optimization.solve(prob, BFGS(); maxiters=1000) θ = res.u phi = pinn.phi xs = x_min:0.01:x_max phi = pinn.phi p1 = plot(xs, [first(phi.u([t_max, x], θ.u)) for x in xs]; label="u(t=1,x)") p2 = plot!(xs, [first(phi.ρ([t_max, x], θ.ρ)) for x in xs]; label="ρ(t=1,x)") p3 = plot!(xs, [first(phi.p([t_max, x], θ.p)) for x in xs]; label="p(t=1,x)") ``` exception = UndefVarError: `pde_system` not defined Stacktrace: [1] top-level scope @ sod.md:57 [2] eval @ ./boot.jl:385 [inlined] [3] #58 @ ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:754 [inlined] [4] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [5] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:753 [6] (::IOCapture.var"#5#9"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:170 [7] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:515 [8] with_logger @ ./logging.jl:627 [inlined] [9] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer, io_context::Vector{Any}) @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:167 [10] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:752
Documentation
Process completed with exit code 1.
Julia 1.10 - ubuntu-latest - x64 - push
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: julia-actions/setup-julia@v1, actions/cache@4d4ae6ae148a43d0fd1eda1800170683e9882738, pyTooling/Actions/with-post-step@adef08d3bdef092282614f3b683897cefae82ee3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Julia 1.8 - ubuntu-latest - x64 - push
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: julia-actions/setup-julia@v1, actions/cache@4d4ae6ae148a43d0fd1eda1800170683e9882738, pyTooling/Actions/with-post-step@adef08d3bdef092282614f3b683897cefae82ee3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Julia 1.9 - ubuntu-latest - x64 - push
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: julia-actions/setup-julia@v1, actions/cache@4d4ae6ae148a43d0fd1eda1800170683e9882738, pyTooling/Actions/with-post-step@adef08d3bdef092282614f3b683897cefae82ee3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Documentation: ../../../.julia/packages/Documenter/CJeWX/src/utilities/utilities.jl#L46
8 docstrings not included in the manual: Sophon.PDESystem Sophon.kaiming_normal :: Tuple{Random.AbstractRNG, Vararg{Integer}} Sophon.wu :: Union{Tuple{Any}, Tuple{Any, Any}} Sophon.kaiming_uniform :: Tuple{Random.AbstractRNG, Vararg{Integer}} Sophon.init_normal :: Tuple{Random.AbstractRNG, Vararg{Integer}} Sophon.forwarddiff :: NTuple{5, Any} Sophon.sample Sophon.init_uniform :: Tuple{Random.AbstractRNG, Vararg{Integer}} These are docstrings in the checked modules (configured with the modules keyword) that are not included in canonical @docs or @autodocs blocks.
Documentation
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: julia-actions/setup-julia@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
[julia-buildpkg] Caching of the julia depot was not detected
Consider using `julia-actions/cache` to speed up runs https://github.com/julia-actions/cache. To ignore, set input `ignore-no-cache: true`