-
[NA] [BE] perf: optimize ExperimentsResourceTest and fix projectId on deleted traces (#5708)
发布于
2026-03-18 08:33:38 +00:00 - [NA] [BE] perf: optimize ExperimentsResourceTest and fix projectId on deleted traces
- Replace createAndAssert(experiment) with lightweight experimentResourceClient.create()
in FindExperiments, GroupExperiments, and GroupExperimentsAggregations setup loops,
eliminating 2 of 3 HTTP roundtrips per experiment (GET verify + EventBus verify) - Batch trace and experiment item creation in GroupExperiments to reduce API calls
- Fix ExperimentDAO raw path to filter out null-byte FixedString(36) default values
from unmatched LEFT JOINs (deleted traces) using groupUniqArrayIf + notEmpty,
preventing null projectId in experiment responses
Test runtime: ~13 min → ~5 min (259/259 tests pass)
- [NA] [BE] style: apply spotless formatting
下载附件