mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-08-13 11:03:30 +00:00
TestSummarySection_PaginatesCardGridForManyMetrics failed once on CI (run 31058903048) with metric card "Disk Read" missing and all of page 2 absent from the extracted text. The card-grid pagination is fine; the bug is in the test helper. Its stream regexp (?s)stream\r?\n(.*?)\r?\nendstream let the optional \r consume the final byte of the compressed payload whenever that byte (the last Adler-32 checksum byte) happened to be 0x0D. The truncated stream fails to inflate and the helper silently skipped the entire page, roughly 1 in 256 streams. fpdf's compressed bytes are a pure function of the report text, which embeds the report period, so specific date windows fail deterministically. The CI window (period Jul 30 00:23 to Aug 6 00:23 UTC) reproduces on the first render while neighbouring windows pass, which is why the test passed locally and on the previous run. Slice each stream by the /Length declared in its object dictionary the way a real PDF reader does. fpdf always writes /Length as a direct integer, and compressed bytes can contain any sequence, so keyword scanning can never be exact. Verified against the pinned CI window plus 400 shifted windows, and the full package. |
||
|---|---|---|
| .. | ||
| branding.go | ||
| catalog.go | ||
| catalog_test.go | ||
| csv.go | ||
| csv_additional_test.go | ||
| engine.go | ||
| engine_additional2_test.go | ||
| engine_additional3_test.go | ||
| engine_additional_test.go | ||
| engine_integration_test.go | ||
| engine_narrative_test.go | ||
| engine_test.go | ||
| fleet_narrative.go | ||
| fleet_narrative_test.go | ||
| multi_report_visual_test.go | ||
| narrative.go | ||
| narrative_json_test.go | ||
| narrative_test.go | ||
| pdf.go | ||
| pdf_additional2_test.go | ||
| pdf_additional_test.go | ||
| pdf_codepage.go | ||
| pdf_codepage_test.go | ||
| pdf_insights_test.go | ||
| pdf_logo_branchcov0719pm_test.go | ||
| pdf_ux_test.go | ||
| report_branding_test.go | ||
| reporting.go | ||
| reporting_test.go | ||
| vm_inventory.go | ||
| vm_inventory_test.go | ||