Cleanup: restore the interrupt flag in AiFailureAnalyzer
メンテナーはふだん 1 日以内に返信
@Rishankgupta08 がすでに取り組んでいます。
2026年11月14日 から。
評価
調査の方向性
src/main/java/com/seleniumboot/ai/AiFailureAnalyzer.java を開き、指定された117行目と219行目の2箇所から始めてください。InterruptedException を握りつぶしている catch ブロックを見つけ、それぞれで既存の処理の前に Thread.currentThread().interrupt() を呼び出します。複数の例外をまとめて catch している場合は、InterruptedException 専用の catch を分けてください。両方の箇所で割り込みフラグが復元され、それ以外の動作は変わらず、mvn test が成功し、変更がこのパッケージ内に収まっていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Part of the cleanup cycle from #251. SonarCloud rule java:S2142 flags these spots.
These places catch InterruptedException (often inside catch (Exception e)) and carry on without restoring the thread's interrupt flag. Anything further up that checks Thread.interrupted() (a parallel runner shutting down, a timeout) never sees the interrupt.
Where (line numbers as of master 2a07bba):
src/main/java/com/seleniumboot/ai/AiFailureAnalyzer.java: lines 117, 219
Fix: restore the flag and keep the existing behaviour. For a combined catch, split it out:
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
// then the same handling the old catch did (log / wrap / return)
} catch (Exception e) {
...
}
Done when: the listed spots restore the interrupt flag, the behaviour is otherwise unchanged, and mvn test passes. Keep this PR to this package. SonarCloud reruns on the PR.
- 主要言語
- Java
- スター
- 12
- フォーク
- 6
- 平均マージ
- 10時間
- マージ済み PR(30日)
- 76
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
seleniumboot/selenium-boot のほかの issue
-
Cleanup: restore the interrupt flag in the API client and health checker対応中かも @Rishankgupta08 が今日担当しました。 オープンgood first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
seleniumboot/selenium-boot#257 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
seleniumboot/selenium-boot#256 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
seleniumboot/selenium-boot#255 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 半日 初心者へのやさしさ 42/100
seleniumboot/selenium-boot#259 ·
メンテナーはふだん 1 日以内に返信
-
Suggestionsオープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
seleniumboot/selenium-boot#251 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
seleniumboot/selenium-boot の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
johanhaleby/occurrent#1505 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
FasterXML/jackson-databind#6443 ·
メンテナーはふだん 1 日以内に返信
-
Docs: 2 broken linksオープン
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
finos/fluxnova-bpm-platform#387 ·
メンテナーはふだん 4 日以内に返信