Webhook recovery test counts recurring jobs that the shared host fires after its clock moves
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 58/100
Direzione di ricerca
Start with WebhookRecoveryTests.AQueueWhoseWakeUpWasLostIsSentInOrderByTheQueueJobAndKeptByRetention and WebhookFixture.HostAsync in the FluentCMS.Plugins.Webhooks.Tests project. Run the failing test alone, then with the full project, and trace how the host clock advance and recurring job runner affect RunDueJobsAsync. Done means the test passes in a full project run on main.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
WebhookRecoveryTests.AQueueWhoseWakeUpWasLostIsSentInOrderByTheQueueJobAndKeptByRetention fails when the whole FluentCMS.Plugins.Webhooks.Tests project runs. It fails on main as well (checked at 034616ae on Windows arm64, SQLite). It passes when run alone or with its class.
The test expects RunDueJobsAsync to run one job, the retention it enqueued, but it ran six. The other five were content.trash.purge, jobs.retention, idempotency.retention, activity.retention and webhooks.retention, all on the default queue. WebhookFixture.HostAsync moves the host's clock forward two days and pumps. The host's own job runner then fires the recurring jobs that became due, from its maintenance loop, after the pump has finished. They are still due when the test runs, so it counts them.
Proposal
Have HostAsync wait until the recurring jobs the clock move made due have fired and run, for example by firing them itself before it pumps. Or have the test count only the jobs it enqueued.
Acceptance
- The test passes in a full run of the project, on main
- Lingua principale
- C#
- Stelle
- 567
- Fork
- 107
- Merge medio
- 1h 19m
- PR unite (30g)
- 353
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di fluentcms/FluentCMS
-
area:localization plugin type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area:storage type:bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
-
area:testing type:bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
area:api area:publishing type:feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
fluentcms/FluentCMS#3473 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area:storage plugin type:bug
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di fluentcms/FluentCMS
Issue simili
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtimeForse già presa @Goldziher l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
priority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
lompotc silently drops Java/C# class members past 128 instead of erroring, as its header claimsApertabug sev-5 vm
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
-
area:jobads-cv bug FE mvp P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
klasolsson81/jobbliggaren#2271 ·
I maintainer di solito rispondono entro 1 giorno