Skip to content

Some enhancements for v0.4 #83

Some enhancements for v0.4

Some enhancements for v0.4 #83

Triggered via pull request August 20, 2024 09:03
Status Failure
Total duration 7m 47s
Artifacts

CI.yml

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

Annotations

2 errors, 6 warnings, and 1 notice
Documentation: ../../../.julia/packages/Documenter/qoyeC/src/utilities/utilities.jl#L44
failed to run `@example` block in src/custom.md:95-129 ```@example custom nb_vertices = 4 graph = SimpleDiGraph(nb_vertices) edge_list = [(1, 2), (1, 3), (2, 3), (2, 4), (3, 4)] distance_list = [1, 2, -1, 1, 1] for (i, j) in edge_list add_edge!(graph, i, j) end I = [src(e) for e in edges(graph)] J = [dst(e) for e in edges(graph)] d = sparse(I, J, distance_list) W = 1.0 cost_list = [[0.0], [0.0], [10.0], [0.0], [0]] w = [0.0 for i in 1:nb_vertices, j in 1:nb_vertices, k in 1:1] for ((i, j), k) in zip(edge_list, cost_list) w[i, j, :] = k end # origin forward resource and backward forward resource set to 0 resource = Resource(0.0, 0.0) # forward and backward expansion functions are equal If = [src(e) for e in edges(graph)] Jf = [dst(e) for e in edges(graph)] ff = [ForwardExpansionFunction(d[i, j], w[i, j]) for (i, j) in zip(If, Jf)] fb = [BackwardExpansionFunction(d[i, j], w[i, j]) for (i, j) in zip(If, Jf)] FF = sparse(If, Jf, ff); FB = sparse(If, Jf, fb); instance = CSPInstance(graph, 1, nb_vertices, resource, resource, Cost(), FF, FB) (; p_star, c_star) = generalized_constrained_shortest_path(instance; W=W) @info "Result" c_star p_star ``` exception = MethodError: no method matching CSPInstance(::Graphs.SimpleGraphs.SimpleDiGraph{Int64}, ::Int64, ::Int64, ::Main.__atexample__named__custom.Resource, ::Main.__atexample__named__custom.Resource, ::Main.__atexample__named__custom.Cost, ::SparseArrays.SparseMatrixCSC{Main.__atexample__named__custom.ForwardExpansionFunction, Int64}, ::SparseArrays.SparseMatrixCSC{Main.__atexample__named__custom.BackwardExpansionFunction, Int64}) Closest candidates are: CSPInstance(::G, ::T, ::T, ::FR, ::BR, ::C, ::FF, ::BF, !Matched::BitVector, !Matched::Vector{T}) where {T, G<:Graphs.AbstractGraph{T}, FR, BR, C, FF<:(AbstractMatrix), BF<:(AbstractMatrix)} @ ConstrainedShortestPaths ~/work/ConstrainedShortestPaths.jl/ConstrainedShortestPaths.jl/src/algorithms.jl:8 Stacktrace: [1] top-level scope @ custom.md:126 [2] eval @ ./boot.jl:385 [inlined] [3] #58 @ ~/.julia/packages/Documenter/qoyeC/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/qoyeC/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/qoyeC/src/expander_pipeline.jl:752
Documentation
Process completed with exit code 1.
Documentation
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Documentation
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, julia-actions/setup-julia@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Julia 1.10 - ubuntu-latest - x64 - pull_request
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, codecov/codecov-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Julia 1.10 - ubuntu-latest - x64 - pull_request
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, julia-actions/setup-julia@v1, actions/cache@4d4ae6ae148a43d0fd1eda1800170683e9882738, pyTooling/Actions/with-post-step@adef08d3bdef092282614f3b683897cefae82ee3, codecov/codecov-action@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Julia 1 - ubuntu-latest - x64 - pull_request
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, codecov/codecov-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Julia 1 - ubuntu-latest - x64 - pull_request
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, julia-actions/setup-julia@v1, actions/cache@4d4ae6ae148a43d0fd1eda1800170683e9882738, pyTooling/Actions/with-post-step@adef08d3bdef092282614f3b683897cefae82ee3, codecov/codecov-action@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
[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`