ui: UpdateChecker の後始末 I/O が呼び出しスレッドで実行される

Open Beginner friendly
#1,893 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
66/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
java

Research direction

Start by finding UpdateChecker.checkInBackground and tracing every call site to determine whether any caller runs on the EDT. If there is an EDT path, move cleanupStaleArtifacts into the background work; otherwise, comment with the finding. Run .\gradlew.bat :microproject_ui:test --console=plain and git diff --check; done means the call path is documented and any required change passes those checks.

Written by the indexing model from the issue text.

Description

area: ui bug priority: low

概要

com.microproject.ui.dialog.UpdateChecker.checkInBackground(master b14ae24 時点、L79 以降)で、起動時の残留ファイルの後始末(ディレクトリ走査と削除、cleanupStaleArtifacts)が、バックグラウンドスレッドを作る前に呼び出しスレッドで同期実行される。更新チェック本体はデーモンスレッド+ invokeLater で適切に分離されている。呼び出し元が EDT の場合、後始末のディスク I/O が EDT 上で走り、低速なディスクやローミングプロファイルで起動時に画面が滞る。呼び出し元が EDT かどうかは未確認。コードの静的確認で見つけた指摘で、行番号は master b14ae24 時点。

作業手順

  1. checkInBackground の呼び出し元を棚卸しし、EDT から呼ばれる経路があるかを確認する。
  2. EDT 経路がある場合は、後始末もバックグラウンドスレッド内へ移す。ない場合は、その旨をコメントして閉じる。

検証

.\gradlew.bat :microproject_ui:test --console=plain

完了条件

  • 呼び出し元の確認結果がコメントされている
  • EDT 経路がある場合は後始末がバックグラウンド側へ移され、:microproject_ui:test が通る
  • git diff --check が空である
  • PR の build と GUI acceptance が通る

範囲外

  • 更新チェックの通信処理の変更
Dominant language
Java
Stars
2
Forks
1
Avg merge
4h 20m
Merged PRs (30d)
409

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tetsuji16/microProject

All issues in tetsuji16/microProject

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.