Stacktraces are hidden
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- julia
- 領域
- testing-qa
調査の方向性
報告されたテストの失敗から例外が処理されていることが分かる、testers.jl の 193 行目から始めてください。失敗するテスト、または issue にあるネストされた @testset の例で動作を再現し、その後エラーがどのように捕捉されるかを追跡してください。@test の外部で発生したエラーが、testers.jl:193 だけを報告するのではなく、発生元の stacktrace を保持すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
When tests fail, I think this package is somehow helpfully capturing the error (with try) and hiding it:
test_rrule: partialsort on Vector{Float64},UnitRange{Int64}: Error During Test at /home/runner/.julia/packages/ChainRulesTestUtils/YbVdW/src/testers.jl:193
[232](https://github.com/JuliaDiff/ChainRulesCore.jl/runs/8017765323?check_suite_focus=true#step:6:233)
Got exception outside of a @test
[233](https://github.com/JuliaDiff/ChainRulesCore.jl/runs/8017765323?check_suite_focus=true#step:6:234)
Can this be removed?
The default behaviour is to print the stacktrace, which is useful information about what's actually caused the error, and where it was called from. (Not testers.jl:193.)
julia> @testset "outer" begin
@testset "inner" begin
@test 1+1==2
sqrt(-1) # outside test
end
end
inner: Error During Test at REPL[5]:2
Got exception outside of a @test
DomainError with -1.0:
sqrt will only return a complex result if called with a complex argument. Try sqrt(Complex(x)).
Stacktrace:
[1] throw_complex_domainerror(f::Symbol, x::Float64)
@ Base.Math ./math.jl:33
[2] sqrt
@ ./math.jl:675 [inlined]
[3] sqrt(x::Int64)
@ Base.Math ./math.jl:1480
...
Test Summary: | Pass Error Total Time
outer | 1 1 2 0.2s
inner | 1 1 2 0.2s
ERROR: Some tests did not pass: 1 passed, 0 failed, 1 errored, 0 broken.
- 主要言語
- Julia
- スター
- 50
- フォーク
- 18
- 平均マージ
- 1時間 54分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
JuliaDiff/ChainRulesTestUtils.jl のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
JuliaDiff/ChainRulesTestUtils.jl#148 · リアクション 1 件 ·
-
use DocThemeIndigoオープンdocumentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
-
mutation
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
JuliaDiff/ChainRulesTestUtils.jl の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
bug help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
JuliaGeometry/Meshes.jl#1469 ·
メンテナーはふだん 1 日以内に返信
-
distributed 🕸️
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
CliMA/Oceananigans.jl#6295 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
CI: two jobs fail on the new ubuntu-latest (Ubuntu 26.04) runner image対応中かも @bjarthur が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
mojaie/MolecularGraph.jl#151 ·