Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[BUG] Completed and canceled progress states are not treated as terminal

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

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

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

評価

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

調査の方向性

progress_type_request から始めて、TestStatus.progress_step() と保存されている TestStatus の値がどのように比較されているかを確認します。issue で言及されているリグレッションテストを実行し、完了済みとキャンセル済みの両方の後の更新が拒否され、進捗の履歴が変更されないことを確認できたら、作業完了とします。

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

説明

Description

progress_type_request does not correctly reject progress updates after a test has reached completed or canceled.

TestStatus.progress_step() returns an integer progress index, but the returned integer was compared directly against TestStatus.completed and TestStatus.canceled enum symbols.

As a result, terminal states could be incorrectly treated as active progress states.

Expected behavior

If the latest progress status is completed or canceled, a subsequent progress update should be rejected and the progress trail should remain unchanged.

Actual behavior

The terminal-state guard was bypassed, allowing additional progress entries after completed or canceled.

Reproduction

Regression tests demonstrate that:

  • completed -> completed was accepted
  • canceled -> completed was accepted

Fix

Compare the stored TestStatus enum directly against the terminal enum values, while retaining progress_step() for numeric progress ordering.

Tests

Regression tests cover both completed and canceled terminal states.

主要言語
Python
スター
30
フォーク
87
平均マージ
5日 10時間
マージ済み PR(30日)
21

環境構築

はじめの一歩

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

CCExtractor/sample-platform のほかの issue

CCExtractor/sample-platform の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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