Repository navigation
#2291 を実装する(スプリント l20261031-5) - #2311
Merged
Merged
Conversation
根の conftest が scripts/pytest_child_cleanup.py を読み込み、親と xdist の各 worker を子の回収役にする。 自分の session で起こした子と、親が先に終わった孫も SIGTERM と終了の時点で止め、付け替わった孫のゾンビは SIGCHLD で回収する。止める処理は lib/procs.py の child_pids と stop_tree を使う。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
起動の配線は各スクリプトの代表の起動(supervise の run、phase-steps の転送、glossary の各副命令)に残す。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sue-2291-l20261031-5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pytest の実行が止められたときや終わったときに、テストが起こした子孫のプロセスを止めるようにしました。あわせて、各テストの分岐をプロセスの中で確かめる形へ移し、固定の待ちを縮めて、全体テストを速くしました。Python tests の CI の実行を整え、テストを削る基準と速くする手段を開発ガイドへ書きました(#2291 スプリント l20261031-5 のブランチへ集める作業、#2204、#2154)。
利用者向けの変化
移行の手順
変更の要点
scripts/pytest_child_cleanup.pyを足しました。pytest が止められたときと終わったときに、テストが起こした子孫のプロセスを止めます。test_whole_test_timing.py)。テスト
supervise.py の run のステップの結果です。
issues/issue-2291-design.mdに名前の出るテストのうち、3 件が HEAD に見当たらないdesign-tests は止まっています。設計文書に書いたテストの名前と HEAD のテストが 3 件食い違っているので、確認が要ります。
設計と違う点
issues/issue-2291-design.mdの 224 行目。pytest の各テストの所要の合計を約 460 秒へ減らす)・受け入れ条件 1issues/issue-2291-test-ledger.mdの「着手前後の実測」)issues/issue-2291-design.mdの 140 行目。着手後を 3 回測る)・受け入れ条件 1issues/issue-2291-design.mdの 218 行目)・受け入れ条件 6test-run.py whole --limit 30では確かめず、同じ打ち切る側のtest_triage.run_commandに宣言の pytest のコマンドを上限 30 秒で渡して確かめた(10 秒後 0 件)test-run.py wholeが CI のチェックの結論を待つ側へ進み、手元のテストを流さなかった(台帳の「打ち切りの確かめ」)。PR を作った後にtest-run.py wholeで確かめ直すかは人が決めるissues/issue-2291-design.mdの 258・264・286〜288 行目)conclusionは確かめていないissues/issue-2291-design.mdの 234 行目)が名前を出すscripts/tests/test_check_script_structure.py::test_repository_matches_its_allow_listscript-structureと.github/workflows/script-structure.yml)を書いた。設計どおりissues/issue-2291-design.mdの 250・252 行目)が名前を出すtest_triage.run_command・test_lib_test_triage.py::test_a_timed_out_shell_command_takes_its_children_downplugins/ndf/scripts/lib/test_triage.pyの関数、後者はplugins/ndf/scripts/tests/test_lib_test_triage.pyの 22 行目にある既存のテスト(照合の道具がパスを根から探して見つけられなかった)モード: standard / 通した工程: 実装 → 完了判定 → Pull Request
🤖 Generated with Claude Code