[Tests] Run the skipped blob read/summarize tests by recruiting blob workers
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Start with tests/Integration/BlobGranuleTest.php:208-272 and docs/blob-granules.md:172-180, then inspect the compose stack and CI setup to see how blob workers can be recruited. Check the FoundationDB 7.3 blob-granule process requirements before choosing a worker-capable stack or profile. Done means both success paths run with meaningful read, loader callback, and summary assertions, the documented skip count drops to four, and make test-integration and ci-ok pass.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
tests/Integration/BlobGranuleTest.php:208-249 (readBlobGranulesIssuesRequest) and :252-272 (summarizeBlobGranulesReturnsSummaries) still markTestSkipped() on the compose stack because the five-process cluster runs a blob manager but recruits no blob workers / has no granule history. docs/blob-granules.md:172-180 documents the two skips; the healthcheck added in #160 / PR #170 proves only that the blob manager is alive, not that granules can be read or summarized.
Impact: the blob read and summarize success paths are not exercised end-to-end. The tests pass as long as the expected exceptions are thrown, and when they do run they are weak: readBlobGranulesIssuesRequest asserts count($kvs) >= 0 (always true), defines a loader but never passes it, and calls readBlobGranules(..., loader: null, ..., debugNoMaterialize: true), so the loader callbacks are not exercised; summarizeBlobGranulesReturnsSummaries has no assertNotEmpty($summaries), so an empty result passes. A regression in the success path would not be caught. The suite reports 6 skips (4 from AdminDestructiveOperationsTest, 2 from this class).
Where to start
- Add a process that can host a blob worker role to the compose stack (for example a dedicated
fdbserverwith the blob-worker process class, or a separate opt-in profile/stack), with the samefdb-blobsvolume andbg_urlknob. Check the FDB 7.3 blob-granule documentation for the process class/recruitment requirement. - Alternatively, provide a separate opt-in profile for the worker-capable tests and run it in CI, keeping the default five-process stack small.
- Once workers are present, assert the happy path: a non-empty
readBlobGranules()result with a loader that records calls, and non-empty summaries; keep a skip only for clusters without a blob store. - Update
docs/blob-granules.mdand the expected skip count when the tests run.
Definition of done
-
readBlobGranulesIssuesRequestandsummarizeBlobGranulesReturnsSummariesexecute their success path on the documented test stack (or an opt-in CI profile). - The success-path assertions are meaningful (non-empty result/summaries, loader callbacks observed).
- The suite skip count drops from 6 to 4 on that stack; the remaining skips are still documented.
-
docs/blob-granules.mdmatches the run/skip behaviour. -
make test-integrationandci-okare green.
- Lingua principale
- PHP
- Stelle
- 0
- Fork
- 0
- Merge medio
- 10h 4m
- PR unite (30g)
- 19
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 crazy-goat/fdb-php
-
good first issue priority:low type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
crazy-goat/fdb-php#184 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue priority:low type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
crazy-goat/fdb-php#182 ·
I maintainer di solito rispondono entro 1 giorno
-
priority:medium type:security
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
crazy-goat/fdb-php#180 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue priority:medium type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
crazy-goat/fdb-php#171 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue priority:low type:docs
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
crazy-goat/fdb-php#167 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di crazy-goat/fdb-php
Issue simili
-
sync-en
Difficoltà 1/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
sync-en
Difficoltà 1/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 83/100
GSA/digital-gov-drupal#569 ·
I maintainer di solito rispondono entro 2 giorni
-
feature-request-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Codeinwp/wp-menu-icons#360 ·
-
[Type] Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 5 giorni