• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wegamekinglc / calc-flow / 35531853644
93%

Build:
DEFAULT BRANCH: main
Ran 20 Sep 2026 07:35PM UTC
Jobs 3
Files 202
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Sep 2026 07:18PM UTC coverage: 93.156% (+0.02%) from 93.141%
35531853644

push

github

web-flow
refactor: deduplicate symbolic lowering walkers and helpers (#313)

* refactor: deduplicate symbolic lowering walkers and helpers

Digest-keyed visited sets end exponential re-traversal of shared
subtrees in _walk_nodes, _contains_stateful_primitive, and
_is_single_stage. _check_stateful_lowering computes the rolling and
cross-section needs walks once each instead of three times. _Analyzer
declares _bindings and _runtime as explicit fields instead of
post-construction injection. One _port/_table_port pair next to
_field_json replaces six inline port literals, a _wire_upstream/_edge
pair collapses the _lower_program edge ladder, and _EVENT_WINDOW_OPS in
nodes.py replaces four redeclared window op-name sets. Stream event-time
validation compares vectorized pyarrow.compute slices and keeps the row
loop only on the rejection path, and collect/stream share input-name and
single-input-mapping validation with _collect now validating options
like the async paths.

* refactor: keep analyzer and late-output complexity flat

CI's complexity ratchet failed on two spots added by the previous commit:
_Analyzer.__init__ grew to six args (PLR0913) and _is_single_stage's
visited-set walker pushed cyclomatic complexity past ten (C901).

Drop the runtime constructor kwarg back to a typed _runtime attribute
declared with default None and assigned by _run after construction, and
extract the per-child visit body into module-level
_collect_stage_primitives. Behavior is unchanged; the complexity gate,
ruff, and the focused symbolic/stream/compute/sql tests all pass.

105985 of 113772 relevant lines covered (93.16%)

92162.51 hits per line

Coverage Regressions

Lines Coverage ∆ File
35
96.94
0.02% .venv/lib/python3.13/site-packages/calc_flow/symbolic/analyzer.py
33
93.85
0.05% .venv/lib/python3.13/site-packages/calc_flow/symbolic/lower/strategies.py
18
97.81
0.3% crates/calc-flow-connectors/src/mysql/sink.rs
12
94.76
0.72% .venv/lib/python3.13/site-packages/calc_flow/stream.py
10
96.71
-0.03% .venv/lib/python3.13/site-packages/calc_flow/symbolic/lower/program.py
4
95.1
-0.24% .venv/lib/python3.13/site-packages/calc_flow/_stream_inputs.py
4
98.1
-0.03% .venv/lib/python3.13/site-packages/calc_flow/symbolic/lower/event_windows.py
4
97.56
0.03% .venv/lib/python3.13/site-packages/calc_flow/symbolic/lower/segments.py
2
98.06
0.38% crates/calc-flow-connectors/src/mysql/types.rs
2
98.36
0.95% .venv/lib/python3.13/site-packages/calc_flow/compute.py
2
94.76
0.03% .venv/lib/python3.13/site-packages/calc_flow/symbolic/nodes.py
1
99.38
0.0% crates/calc-flow-connectors/src/mysql/mod.rs
1
98.88
-0.37% crates/calc-flow-python/src/runtime/dispatch.rs
1
93.32
-0.02% crates/calc-flow/src/runtime/streaming/progress/driver.rs
Jobs
ID Job ID Ran Files Coverage
1 studio - 35531853644.1 20 Sep 2026 07:35PM UTC 10
92.23
GitHub Action Run
2 rust - 35531853644.2 20 Sep 2026 08:03PM UTC 151
93.0
GitHub Action Run
3 python - 35531853644.3 20 Sep 2026 07:35PM UTC 41
95.37
GitHub Action Run
Source Files on build 35531853644
  • Tree
  • List 202
  • Changed 20
  • Source Changed 16
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35531853644
  • a594ad69 on github
  • Prev Build on main (#35528946043)
  • Next Build on main (#35629348779)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc