Skip to content

html_report: sort_phases superseded-bumping logic is hardcoded to gen-1 and needs generalisation for multi-generation timeouts #358

@decko

Description

@decko

Finding

File: src/raki/report/html_report.py:268

The sort_phases superseded bumping logic checks phase.generation == 1 when deciding which phases to bump. This correctly handles the current ticket's gen-1 scenario, but would produce incorrect results in future multi-generation timeout scenarios (e.g. an implement gen-2 times out, gen-3 supersedes it — gen-1 downstream phases that already completed would be incorrectly bumped).

Suggestion

Add a TODO/NOTE comment near line 268 acknowledging that this logic is gen-1-specific and will need generalisation if multi-generation timeout/supersede scenarios are introduced.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage-neededNeeds investigation or decision

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions