WebhookClaimTests.TwoJobsForOneAttemptSendOnceAndRecordOneRow fails now and then on CI

Ouverte
#3,475 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
72/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
csharp
Domaine
testing

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
C#
Étoiles
567
Forks
107
Merge moyen
1 h 19 min
PR mergées (30 j)
353

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de fluentcms/FluentCMS

Toutes les issues de fluentcms/FluentCMS

Issues similaires

Plus d'issues C#

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.