test_build_details fails if executed from a relocated place
オープン
まだ誰も着手していません。
build
tests
type-bug
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
Bug report
Bug description:
[2025-05-08T15:36:07.483Z] 0:00:57 load avg: 32.60 [ 90/491/1] test_bool passed
[2025-05-08T15:36:07.747Z] 0:00:57 load avg: 32.60 [ 91/491/2] test_build_details failed (1 failure)
[2025-05-08T15:36:07.747Z] test_base_interpreter (test.test_build_details.CPythonBuildDetailsTests.test_base_interpreter) ... FAIL
[2025-05-08T15:36:07.747Z] test_base_prefix (test.test_build_details.CPythonBuildDetailsTests.test_base_prefix) ... ok
[2025-05-08T15:36:07.747Z] test_implementation (test.test_build_details.CPythonBuildDetailsTests.test_implementation) ... ok
[2025-05-08T15:36:07.747Z] test_language_version (test.test_build_details.CPythonBuildDetailsTests.test_language_version) ... ok
[2025-05-08T15:36:07.747Z] test_language_version_info (test.test_build_details.CPythonBuildDetailsTests.test_language_version_info) ... ok
[2025-05-08T15:36:07.747Z] test_location (test.test_build_details.CPythonBuildDetailsTests.test_location) ... ok
[2025-05-08T15:36:07.747Z] test_parse (test.test_build_details.CPythonBuildDetailsTests.test_parse) ... ok
[2025-05-08T15:36:07.747Z] test_platform (test.test_build_details.CPythonBuildDetailsTests.test_platform) ... ok
[2025-05-08T15:36:07.747Z] test_top_level_container (test.test_build_details.CPythonBuildDetailsTests.test_top_level_container) ... ok
[2025-05-08T15:36:07.747Z]
[2025-05-08T15:36:07.747Z] ======================================================================
[2025-05-08T15:36:07.747Z] FAIL: test_base_interpreter (test.test_build_details.CPythonBuildDetailsTests.test_base_interpreter)
[2025-05-08T15:36:07.747Z] ----------------------------------------------------------------------
[2025-05-08T15:36:07.747Z] Traceback (most recent call last):
[2025-05-08T15:36:07.747Z] File "/bb/jenkins_work/python/workspace/python_python3.14-debian_PR-1/distro/refroot/amd64/opt/bb/lib64/python3.14/test/test_build_details.py", line 124, in test_base_interpreter
[2025-05-08T15:36:07.747Z] self.assertEqual(os.path.realpath(value), os.path.realpath(sys.executable))
[2025-05-08T15:36:07.747Z] ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2025-05-08T15:36:07.747Z] AssertionError: '/bb/bin/package/opt/bb/bin/python3.14' != '/bb/jenkins_work/python/workspace/python_pyth[57 chars]3.14'
[2025-05-08T15:36:07.747Z] - /bb/bin/package/opt/bb/bin/python3.14
[2025-05-08T15:36:07.747Z] + /bb/jenkins_work/python/workspace/python_python3.14-debian_PR-1/distro/refroot/amd64/opt/bb/bin/python3.14
[2025-05-08T15:36:07.747Z]
[2025-05-08T15:36:07.747Z]
[2025-05-08T15:36:07.747Z] ----------------------------------------------------------------------
[2025-05-08T15:36:07.747Z] Ran 9 tests in 0.013s```
### CPython versions tested on:
3.14
### Operating systems tested on:
Linux
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
test/test_build_details.py、特に CPythonBuildDetailsTests.test_base_interpreter から始め、移動したインストールから Python を実行したときの失敗を再現します。テストがベースインタープリターのパスをどのように取得して比較しているかを調べます。移動した場所のシナリオで test_build_details が成功し、他の列挙されたテストを壊さなければ完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- testing-qa
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100