Repository navigation
test: Compare every catalog style to Series at short periods - #2361
Conversation
3f91f76 to
273b916
Compare
|
Local review: READY at 273b916 |
This comment has been minimized.
This comment has been minimized.
Not up to standards ⛔🟢 Coverage
|
| Metric | Results |
|---|---|
| Coverage variation | ✅ +0.01% coverage variation (-1.00%) |
| Diff coverage | ✅ ∅ diff coverage |
Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (9b9b3a1) 19256 18727 97.25% Head commit (4203429) 19256 (+0) 18728 (+1) 97.26% (+0.01%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>
Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#2361) 0 0 ∅ (not applicable) Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
273b916 to
088b10d
Compare
|
Local review: READY at 088b10d |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Reviewed the three changed files (test-only): the new CatalogStyleParityTests sweep and the move of the hub runner into CatalogReflection.ExecuteHub.
The sweep design is sound: defaults are never skipped, Buffer and Stream failures are recorded rather than swallowed, and a style with no compared listing fails the test. The ExecuteHub move keeps the old overload resolution as a tie-breaker and preserves Rejection behavior for the parameter-range test.
One item to address: the ArgumentException skip can hide a Series short-period bug without any signal. Two low naming items are inline. Codacy Static Code Analysis is failing and its details were not available to this review.
Reviewed by the FaciōQuō swarm
Per-indicator tests compare Buffer and Stream to Series at one or two parameter sets, mostly the defaults, so warmup and window-edge defects at short periods went unseen until a one-off sweep found 26. The new test runs each listing at its defaults and at each integer parameter's minimum and the next two values, and requires exact equality of public result values. It fails with those 26 cases on the commit before the fixes below it in this stack. The stream invoker moves from the parameter-range test into CatalogReflection so both tests share it; it now prefers a bar-input overload so the hub reads the same values the Series does.
088b10d to
4203429
Compare
|
Local review: READY at 4203429 |
This comment has been minimized.
This comment has been minimized.
|
|
There was a problem hiding this comment.
Re-reviewed the test-only change at 4203429: the CatalogStyleParityTests sweep and the move of the hub runner into CatalogReflection.ExecuteHub.
No new findings. The three items from the previous round are resolved in the code: the skip filter now fails a family whose non-default sets were all rejected, the Results lookup no longer borrows EmaHub, and the constant is ValuesPerParameter. Defaults are never skipped, Buffer and Stream exceptions are recorded, and a style with no compared listing fails the test. Codacy's report is the only open check I could not inspect.
Reviewed by the FaciōQuō swarm
A new catalog test runs every indicator in each style the catalog lists and requires the Buffer and Stream results to equal the Series results exactly. It runs at the catalog defaults and, one parameter at a time, at each integer parameter's minimum and the next two values above it.
Per-indicator tests compare styles at one or two parameter sets, usually the defaults. Warmup and window-edge defects show at short periods, where buffers fill on the first bars, and this test covers all of them from the catalog's own metadata, so a new indicator or parameter joins the sweep without a new test. Results compare by public property values, since a record's equality also sees non-public state. A parameter set the Series style rejects is skipped; the defaults are never skipped. Double and enum parameters stay at their defaults, and hub rollback and late arrival stay with the per-indicator tests.
The test needs a way to run a Stream listing on a prefilled
BarHub. The helper that did that inside the parameter-range test moves to the shared catalog test reflection class so both tests use it, and a bar-input overload is preferred over a chain overload the bar hub also satisfies, so a hub reads the same values Series does.Part of #2326. The issue is complete at this layer.
Review notes
additional details
CatalogStyleParityTests.BufferAndStream_MatchSeries_AtShortPeriodsreports every disagreement in one failure message with the listing, the parameter set, the first differing row, and the differing properties.