test_fresh_build_copies_new_files_but_not_ignored_files fails on a clean checkout of main

クローズ 初心者向け
#1,192 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
testing

調査の方向性

tests/test_check_generated_files_current.pyを読み、一時リポジトリの作成方法とコピーするファイルの選択方法を確認してください。次に、提示されたpytestコマンドを実行してインポートエラーを確認し、scripts/freeze_paper_results.pyまたはscripts/__init__.pyが除外されているか調べてください。クリーンなcheckoutでテストが成功し、make test-fastが成功すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug testing

Where: tests/test_check_generated_files_current.py, scripts/freeze_paper_results.py.

Current gap: The test runs from scripts.freeze_paper_results import mirror_for_mcp, mirror_current_for_mcp in a subprocess and gets ModuleNotFoundError: No module named 'scripts.freeze_paper_results', so the test fails without any local change.

Repro:

python3 -m pytest tests/test_check_generated_files_current.py -q -k fresh_build_copies

Suggested approach: Find why the scratch copy of the repository the test builds does not contain scripts/freeze_paper_results.py (or scripts/__init__.py) and copy what the subprocess imports.

Done when: the test passes on a clean checkout and make test-fast is green.

主要言語
HTML
スター
47
フォーク
45
平均マージ
3時間 15分
マージ済み PR(30日)
108

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

yakew7/Fair-Code のほかの issue

yakew7/Fair-Code の issue をすべて見る

似ている issue

Testing & QA の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。