Skip to content

test: Compare every catalog style to Series at short periods - #2361

Merged
DaveSkender merged 1 commit into
stc-sum-orderfrom
parity-sweep
Oct 12, 2026
Merged

DaveSkender merged 1 commit into
stc-sum-orderfrom
parity-sweep

Conversation

@DaveSkender

@DaveSkender DaveSkender commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

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

  • Test-only; no library change.
  • The test fails when no listing of a style was compared, so a catalog change cannot empty the sweep without notice.
additional details

CatalogStyleParityTests.BufferAndStream_MatchSeries_AtShortPeriods reports every disagreement in one failure message with the listing, the parameter set, the first differing row, and the differing properties.

@DaveSkender

Copy link
Copy Markdown
Member Author

Local review: READY at 273b916

@DaveSkender
DaveSkender marked this pull request as ready for review October 12, 2026 10:49
@DaveSkender
DaveSkender requested a review from a team October 12, 2026 10:49
@facioquoqa

This comment has been minimized.

@codacy-production

codacy-production Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Not up to standards ⛔

🟢 Coverage ∅ diff coverage · +0.01% coverage variation

Metric Results
Coverage variation ✅ +0.01% coverage variation (-1.00%)
Diff coverage ✅ ∅ diff coverage

View coverage diff in Codacy

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.

@DaveSkender

Copy link
Copy Markdown
Member Author

Local review: READY at 088b10d

@DaveSkender

This comment has been minimized.

@facioquoqa

This comment has been minimized.

@facioquoqa facioquoqa Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@DaveSkender

Copy link
Copy Markdown
Member Author

Local review: READY at 4203429

@DaveSkender

This comment has been minimized.

@facioquoqa

facioquoqa Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

:neckbeard: FaciōQuōqa Mage code review was completed with comments.
Reviewed the branch head: GitHub had no current merge result for this pull request, so findings describe it as written rather than as merged.

  • Trigger re-review

@facioquoqa facioquoqa Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@DaveSkender
DaveSkender merged commit 9ebc97e into main Oct 12, 2026
@DaveSkender
DaveSkender deleted the parity-sweep branch October 12, 2026 23:52
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Buffer lists and stream hubs disagree with Series at non-default parameters

1 participant