mirror of
https://github.com/hanzoai/tasks.git
synced 2026-11-03 03:56:04 +00:00
## What changed? Changed the parent test detection logic in `mergeReports` from `HasPrefix(next, current)` to `HasPrefix(next, current+"/")`. ## Why? Tests with `#XX` iteration suffixes (e.g., `TestFoo#01`) were incorrectly treated as children of the base test (`TestFoo`), causing the base test's `<failure>` element to be discarded during JUnit report merging. For example, `TestDatanodeSuite/TestLineageFork` was being discarded because `TestDatanodeSuite/TestLineageFork#01` matched the prefix check. This caused failure details to be lost in the merged JUnit XML output, breaking flaky test reporting in CI. The fix ensures only actual subtests (with `/` separator) trigger parent discarding, not iteration suffixes. ## How did you test it? - [x] built - [x] run locally and tested manually - [x] covered by existing tests - [x] added new unit test(s) - [ ] added new functional test(s)