Cleanup: restore the interrupt flag in the API client and health checker
メンテナーはふだん 1 日以内に返信
@Rishankgupta08 がすでに取り組んでいます。
2026年11月14日 から。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 82/100
- issue の種類
- リファクタリング
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- java
- 領域
- testing-qa
調査の方向性
指定された3か所から始めてください。ApiAuth.java の117行目付近、ApiClient.java の142行目付近、ApiHealthChecker.java の70行目付近で、いずれも src/main/java/com/seleniumboot 以下にあります。それぞれで InterruptedException を握りつぶしている catch ブロックを見つけ、既存の処理は残したまま Thread.currentThread().interrupt() を追加してください。この3か所で割り込みフラグが復元され、それ以外の動作が変わらず、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/client/ApiAuth.java: line 117src/main/java/com/seleniumboot/client/ApiClient.java: line 142src/main/java/com/seleniumboot/precondition/ApiHealthChecker.java: line 70
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 AiFailureAnalyzer対応中かも @Rishankgupta08 が今日担当しました。 オープンgood first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
seleniumboot/selenium-boot#258 · コメント 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 日以内に返信