Skip to content

Package setup

Package setup #5

Triggered via pull request November 27, 2024 04:08
@mtfishmanmtfishman
synchronize #5
setup
Status Cancelled
Total duration 3m 46s
Artifacts

CI.yml

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

Annotations

6 errors, 1 warning, and 1 notice
Julia 1 - ubuntu-latest - x64
Process completed with exit code 1.
Julia 1 - windows-latest - x64
Process completed with exit code 1.
Documentation: ../../../.julia/packages/Documenter/Bs999/src/utilities/utilities.jl#L44
failed to run `@example` block in src/index.md:26-98 ```@example index using BlockArrays: BlockArrays, BlockedVector, Block, blockedrange using BlockSparseArrays: BlockSparseArray, block_stored_length using Test: @test, @test_broken function main() # Block dimensions i1 = [2, 3] i2 = [2, 3] i_axes = (blockedrange(i1), blockedrange(i2)) function block_size(axes, block) return length.(getindex.(axes, Block.(block.n))) end # Data nz_blocks = Block.([(1, 1), (2, 2)]) nz_block_sizes = [block_size(i_axes, nz_block) for nz_block in nz_blocks] nz_block_lengths = prod.(nz_block_sizes) # Blocks with contiguous underlying data d_data = BlockedVector(randn(sum(nz_block_lengths)), nz_block_lengths) d_blocks = [ reshape(@view(d_data[Block(i)]), block_size(i_axes, nz_blocks[i])) for i in 1:length(nz_blocks) ] b = BlockSparseArray(nz_blocks, d_blocks, i_axes) @test block_stored_length(b) == 2 # Blocks with discontiguous underlying data d_blocks = randn.(nz_block_sizes) b = BlockSparseArray(nz_blocks, d_blocks, i_axes) @test block_stored_length(b) == 2 # Access a block @test b[Block(1, 1)] == d_blocks[1] # Access a zero block, returns a zero matrix @test b[Block(1, 2)] == zeros(2, 3) # Set a zero block a₁₂ = randn(2, 3) b[Block(1, 2)] = a₁₂ @test b[Block(1, 2)] == a₁₂ # Matrix multiplication # TODO: Fix this, broken. @test_broken b * b ≈ Array(b) * Array(b) permuted_b = permutedims(b, (2, 1)) @test permuted_b isa BlockSparseArray @test permuted_b == permutedims(Array(b), (2, 1)) @test b + b ≈ Array(b) + Array(b) @test b + b isa BlockSparseArray # TODO: Fix this, broken. @test_broken block_stored_length(b + b) == 2 scaled_b = 2b @test scaled_b ≈ 2Array(b) @test scaled_b isa BlockSparseArray # TODO: Fix this, broken. @test_broken reshape(b, ([4, 6, 6, 9],)) isa BlockSparseArray{<:Any,1} return nothing end main() ``` exception = ArgumentError: Package BlockArrays not found in current path. - Run `import Pkg; Pkg.add("BlockArrays")` to install the BlockArrays package. Stacktrace: [1] macro expansion @ ./loading.jl:2223 [inlined] [2] macro expansion @ ./lock.jl:273 [inlined] [3] __require(into::Module, mod::Symbol) @ Base ./loading.jl:2198 [4] #invoke_in_world#3 @ ./essentials.jl:1089 [inlined] [5] invoke_in_world @ ./essentials.jl:1086 [inlined] [6] require(into::Module, mod::Symbol) @ Base ./loading.jl:2191 [7] eval @ ./boot.jl:430 [inlined] [8] #60 @ ~/.julia/packages/Documenter/Bs999/src/expander_pipeline.jl:803 [inlined] [9] cd(f::Documenter.var"#60#62"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [10] (::Documenter.var"#59#61"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/Bs999/src/expander_pipeline.jl:802 [11] (::IOCapture.var"#5#9"{DataType, Documenter.var"#59#61"{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 [12] with_logstate(f::IOCapture.var"#5#9"{DataType, Documenter.var"#59#61"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}}, logstate::Base.CoreLogging.LogState) @ Base.CoreLogging ./logging/logging.jl:522 [13] with_logger(f::Function, logger::Base.CoreLogging.ConsoleLogger) @ Base.CoreLogging ./logging/logging.jl:632 [14] capture(f::Documenter.var"#59#61"{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 [15] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document)
Documentation: ../../../.julia/packages/Documenter/Bs999/src/utilities/utilities.jl#L44
failed to run `@example` block in src/index.md:102-151 ```@example index using BlockArrays: BlockArrays, Block using BlockSparseArrays: BlockSparseArray i1 = [2, 3] i2 = [2, 3] B = BlockSparseArray{Float64}(i1, i2) B[Block(1, 1)] = randn(2, 2) B[Block(2, 2)] = randn(3, 3) # Minimal interface # Specifies the block structure @show collect.(BlockArrays.blockaxes(axes(B, 1))) # Index range of a block @show axes(B, 1)[Block(1)] # Last index of each block @show BlockArrays.blocklasts(axes(B, 1)) # Find the block containing the index @show BlockArrays.findblock(axes(B, 1), 3) # Retrieve a block @show B[Block(1, 1)] @show BlockArrays.viewblock(B, Block(1, 1)) # Check block bounds @show BlockArrays.blockcheckbounds(B, 2, 2) @show BlockArrays.blockcheckbounds(B, Block(2, 2)) # Derived interface # Specifies the block structure @show collect(Iterators.product(BlockArrays.blockaxes(B)...)) # Iterate over block views @show sum.(BlockArrays.eachblock(B)) # Reshape into 1-d # TODO: Fix this, broken. # @show BlockArrays.blockvec(B)[Block(1)] # Array-of-array view @show BlockArrays.blocks(B)[1, 1] == B[Block(1, 1)] # Access an index within a block @show B[Block(1, 1)[1, 1]] == B[1, 1] ``` exception = ArgumentError: Package BlockArrays not found in current path. - Run `import Pkg; Pkg.add("BlockArrays")` to install the BlockArrays package. Stacktrace: [1] macro expansion @ ./loading.jl:2223 [inlined] [2] macro expansion @ ./lock.jl:273 [inlined] [3] __require(into::Module, mod::Symbol) @ Base ./loading.jl:2198 [4] #invoke_in_world#3 @ ./essentials.jl:1089 [inlined] [5] invoke_in_world @ ./essentials.jl:1086 [inlined] [6] require(into::Module, mod::Symbol) @ Base ./loading.jl:2191 [7] eval @ ./boot.jl:430 [inlined] [8] #60 @ ~/.julia/packages/Documenter/Bs999/src/expander_pipeline.jl:803 [inlined] [9] cd(f::Documenter.var"#60#62"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [10] (::Documenter.var"#59#61"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/Bs999/src/expander_pipeline.jl:802 [11] (::IOCapture.var"#5#9"{DataType, Documenter.var"#59#61"{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 [12] with_logstate(f::IOCapture.var"#5#9"{DataType, Documenter.var"#59#61"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}}, logstate::Base.CoreLogging.LogState) @ Base.CoreLogging ./logging/logging.jl:522 [13] with_logger(f::Function, logger::Base.CoreLogging.ConsoleLogger) @ Base.CoreLogging ./logging/logging.jl:632 [14] capture(f::Documenter.var"#59#61"{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 [15] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/Bs999/src/expander_pipeline.jl:801
Documentation
Process completed with exit code 1.
Julia 1 - macOS-latest - x64
Canceling since a higher priority waiting request for 'CI-refs/pull/5/merge' exists
Julia 1 - macOS-latest - x64
[setup-julia] x64 arch has been requested on a macOS runner that has an arm64 (Apple Silicon) architecture. You may have meant to use the "aarch64" arch instead (or left it unspecified for the correct 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`