[CI]: test-scripts skips two test files, and one of them fails

オープン 初心者向け
#977 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

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

調査の方向性

.github/workflows/test-parser.ymlと.github/scripts/testsディレクトリから始めてください。test_lintcommit.pyのtest_subject_uppercaseを、issueに記載されたルール変更に合うよう更新し、python -m pytest .github/scripts/testsを実行してください。test-scriptsジョブがディレクトリ全体を実行し、そのコマンドが成功すれば完了です。

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

説明

needs-triage

Found while working on Python #971: add PR status labels and bump issue triage.

Problem

The test-scripts job in test-parser.yml runs a fixed list of test files, so a new file under .github/scripts/tests runs in CI only after someone adds it to the list. No other job runs these files, because the pytest testpaths setting lists only packages/*/tests directories.

Two files are not on the list, so CI does not run them:

Change
  • Change test_subject_uppercase to expect no error, since uppercase subjects are allowed on purpose.
  • Run the whole .github/scripts/tests directory in test-scripts instead of the list, so a new test file runs without a list edit.
Acceptance criteria
  • test-scripts runs every test file under .github/scripts/tests.
  • python -m pytest .github/scripts/tests passes on main.
主要言語
Python
スター
59
フォーク
32
平均マージ
1日 5時間
マージ済み PR(30日)
76

環境構築

はじめの一歩

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

aws/aws-durable-execution-sdk-python のほかの issue

aws/aws-durable-execution-sdk-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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