WebhookClaimTests.TwoJobsForOneAttemptSendOnceAndRecordOneRow fails now and then on CI

オープン
#3,475 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

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

調査の方向性

Start with WebhookClaimTests.cs:85 and trace how the two jobs are claimed and scheduled around host.Time.Advance(Abandoned). Identify what state the second job needs before the clock advances, then make the test wait for that state instead of relying on worker order or timing. Run WebhookClaimTests.TwoJobsForOneAttemptSendOnceAndRecordOneRow and confirm it passes reliably.

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

説明

area:testing type:bug

Problem

FluentCMS.Plugins.Webhooks.Tests.WebhookClaimTests.TwoJobsForOneAttemptSendOnceAndRecordOneRow failed twice on 20 Nov 2026, in two runs that change nothing of the webhooks plugin:

  • the push run on main for 4b5ff6e1 (#3466, test helpers of the PostgreSQL data tests), run 44832337315, attempt 1; it passed on the rerun of the failed jobs;
  • the pull request #3471 (workflows only), run 44834414057, job Tests (plugins-1).

Both times it is WebhookClaimTests.cs:85, Shouldly.ShouldAssertException : 0 should be 1: after host.Time.Advance(Abandoned), RunDueJobsAsync finds no due job, where the test expects the second job to wait until the claim it found would be abandoned and then run.

Proposal

Find what the second job's schedule depends on besides the fake clock (a real delay, the order in which the two workers took their jobs, a claim written after the clock moved), and make the test wait for the state it needs before it moves the clock.

Acceptance

  • The cause is named
  • The test no longer depends on the order or timing of the two workers

For workstation B (#3356). Seen by A.

主要言語
C#
スター
567
フォーク
107
平均マージ
1時間 19分
マージ済み PR(30日)
353

環境構築

はじめの一歩

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

fluentcms/FluentCMS のほかの issue

fluentcms/FluentCMS の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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