Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

PkgEval failure: MatrixDepot SuiteSparse downloads error out

未关闭 适合新手
#356 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
julia
领域
testing

调研方向

从 test/suitesparse.jl 中报告提到的三个调用点(第 40、106 和 136 行)开始,这些位置在断言之前获取 matrixdepot(...)。包裹这些获取操作,使 MatrixDepot.DataError 转为 @test_skip(或在 ENV["PKGEVAL"] 为 true 时跳过整个套件),并重新抛出其他任何异常,然后用 julia --project=test test/suitesparse.jl 运行该套件。完成意味着 35 个报错的测试变为跳过,而其余测试仍然通过;可选的 GPU 项目拆分是另一项独立工作。

由索引模型根据 Issue 内容生成。

描述

[!NOTE]
This issue was generated by a coding agent on behalf of @gdalle.

Problem

SparseMatrixColorings v0.4.29 fails PkgEval on Julia 1.15.0-DEV. PkgEval labels it precompile, but there are two issues:

1. The real test errors: MatrixDepot downloads. There are 35 errored tests, all in test/suitesparse.jl (lines 40, 106 and 136). MatrixDepot can't find the SuiteSparse matrices in the PkgEval sandbox:

lp_cre_a: Error During Test at test/suitesparse.jl:40
  Got exception outside of a @test
  MatrixDepot.DataError("no matrix according to LPnetlib/lp_cre_a found")
Some tests did not pass: 63265 passed, 0 failed, 35 errored, 2 broken.

2. The precompile label: GPU test deps. CUDA/AMDGPU in the test environment pull in GPUCompiler, which fails to precompile on Julia 1.15 (LLVM 23) because LLVM.jl has no LLVMExtra_jll build yet (UndefVarError: libLLVMExtra not defined in LLVM.API). This is upstream and harmless as long as the GPU tests are skipped, but it makes PkgEval report the wrong failure reason.

Suggested fixes

  1. Make the SuiteSparse tests robust to unavailable data. For example, wrap matrixdepot(...) in try ... catch e; e isa MatrixDepot.DataError || rethrow(); @test_skip ...; continue; end, or skip suitesparse.jl when the download fails (or under PkgEval, get(ENV, "PKGEVAL", "false") == "true").
  2. Optionally, only add CUDA/AMDGPU to the test environment in the GPU CI jobs (for example, a separate test/gpu project activated on demand) so that CPU-only runs don't depend on LLVM.jl.
主要语言
Julia
星标
46
派生
15
平均合并
2 天 11 小时
30 天内合并 PR
11

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

JuliaDiff/SparseMatrixColorings.jl 的其他 Issue

查看 JuliaDiff/SparseMatrixColorings.jl 的全部 Issue

相似的 Issue

更多 Julia Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。