JVM backend continues after dynamic Test::More skip_all
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 領域
- backend, testing-qa
調査の方向性
Start with the minimal reproducer and the JVM backend's Test::More/Test2 skip-all path, then compare it with the interpreter backend. Use t/live_prerelease.t as the real-world case and add the suggested permanent unit test for a dynamically evaluated skip_all followed by a failing statement. Done means both backends exit successfully while preserving the skip TAP output.
索引モデルが issue の本文から書いたものです。
説明
Summary
The JVM backend does not terminate successfully after Test::More receives a
dynamic skip_all plan. It prints the skip plan but continues executing the
rest of the test file. The interpreter backend and standard Perl terminate
successfully.
CPAN evidence
- Distribution:
Net::Google::Storage0.2.0 - CPAN run:
20260921-124328-13959 - Failing test:
t/live_prerelease.t - Passing test:
t/basic.t - System Perl focused result: pass;
t/basic.tpasses and
t/live_prerelease.tis skipped becauseTest::Classis unavailable. - The live test also requires optional Google Storage credentials/configuration
and is not part of the local functional test.
The archived JVM result was:
Can't locate object method "runtests" via package "Test::Class"
at t/live_prerelease.t line 10.
t/live_prerelease.t ...... skipped: Probable missing Test::Class
Result: FAIL
The test contains this optional-dependency guard:
BEGIN {
use lib 't/lib';
eval { require Net::Google::Storage::Test; };
if ($@) {
eval "use Test::More skip_all => 'Probable missing Test::Class';";
}
}
Test::Class->runtests;
The upstream test is fragile because the method call is unconditional, but
standard Perl's skip_all behavior makes the file exit successfully before
that call.
Minimal reproducer
eval { require Test::Class::DefinitelyMissing };
if ($@) {
eval q{use Test::More skip_all => "missing optional dependency"};
}
Test::Class->runtests;
Observed results:
| Runtime | Result |
|---|---|
| System Perl | 1..0 # SKIP ..., exit 0 |
| PerlOnJava JVM backend | 1..0 # SKIP ..., then missing-method error, exit 255 |
| PerlOnJava interpreter backend | 1..0 # SKIP ..., exit 0 |
The JVM backend also prints AFTER-SKIP for a variant that prints after the
skip_all call, proving that execution continues after the skip plan. The
interpreter backend does not print it.
Expected behavior
The JVM backend should treat a skip_all plan as successful test termination,
including when Test::More is loaded dynamically inside eval STRING. Code
following the skip plan must not execute, and the process should exit 0.
Suggested acceptance coverage
Add a permanent unit test covering a dynamically evaluated
Test::More skip_all followed by an otherwise-failing statement. Require
successful exit on both the JVM and interpreter backends, while preserving the
skip TAP output.
Likely ownership
This appears to be a JVM-backend control-flow/exit propagation issue in the
Test::More/Test2 skip-all path, not a Net::Google::Storage API or module
implementation issue.
- 主要言語
- Perl
- スター
- 64
- フォーク
- 7
- 平均マージ
- 4時間 56分
- マージ済み PR(30日)
- 181
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
fglock/PerlOnJava のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
fglock/PerlOnJava#1651 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
fglock/PerlOnJava#1579 ·
メンテナーはふだん 1 日以内に返信
-
area:cpan-port area:unicode bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
fglock/PerlOnJava#1341 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 1〜2日 初心者へのやさしさ 54/100
fglock/PerlOnJava#1671 ·
メンテナーはふだん 1 日以内に返信
-
area:cpan-port enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
fglock/PerlOnJava#1670 ·
メンテナーはふだん 1 日以内に返信
fglock/PerlOnJava の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
gugod/App-perlbrew#879 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
RotherOSS/otobo#6205 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Add IO::Pipe classオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
yuki-kimoto/SPVM-IO#30 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
RotherOSS/servicecatalog#28 ·