You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
engine: no test cross-checks cycle handling for initial values #574
The test suite cross-checks the engine's handling of cycles among flows and auxiliaries, but not cycles in initial values.
For the flow phase, a test-only helper recomputes the dependency cycles independently and asserts the engine either resolves each one (an element-by-element recurrence) or reports a circular-dependency error.
The initial-value phase has its own recurrence resolution but no such cross-check; it is covered only by a few targeted tests.
Why it matters
A change to the initial-value dependency rules could make the engine disagree with the true cycle structure without any test failing.
No such defect has shipped.
Note the cross-check would not have caught #595: both the engine and the helper treat a module as having no dependencies, so the cycle in that issue is invisible to both.
Fix
phase_cycle_sccs already takes the phase as a parameter, so an initial-value version of dt_cycle_sccs and its consistency check is small.
Alternative: drop the idea and delete the rustdoc on dt_cycle_sccs_consistency_violation that calls it a later-task obligation.
changed the title [-]engine: no init-phase cycle instrumentation + engine-consistency cross-check (init analogue of dt_cycle_sccs / dt_cycle_sccs_consistency_violation)[/-][+]engine: no test cross-checks cycle handling for initial values[/+]on Oct 12, 2026
This is a test harness for a defect that has not shipped. It would not have caught #595, because the helper shares the engine's rule that a module has no dependencies. If closed, delete the 'later-task obligation' rustdoc on dt_cycle_sccs_consistency_violation.
Activity
[-]engine: no init-phase cycle instrumentation + engine-consistency cross-check (init analogue of dt_cycle_sccs / dt_cycle_sccs_consistency_violation)[/-][+]engine: no test cross-checks cycle handling for initial values[/+]bpowers commentedon Oct 12, 2026
Closing as won't fix.
This is a test harness for a defect that has not shipped. It would not have caught #595, because the helper shares the engine's rule that a module has no dependencies. If closed, delete the 'later-task obligation' rustdoc on dt_cycle_sccs_consistency_violation.