mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 14:30:52 +00:00
fix(ci): keep the star on a priority row the sweep budget missed
cells() awarded the priority glyph only in the branch that has a chunk, so a priority row beyond the budget rendered as a bare disabled mark, indistinguishable from an ordinary row the sweep did not reach. The two need different answers: --offset indexes the regular line only, so it never reaches a missed priority row, which needs a shorter priority line or a run of its own. The status now carries both glyphs and the module docstring says what to do about it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
2da833b197
commit
9204f053dd
2 files changed
+13
-2
No files matched your search
@@ -63,6 +63,14 @@ class TestCells(unittest.TestCase):
|
||||
)
|
||||
self.assertEqual(rows[1][plan._COLUMNS.index("chunk")], "")
|
||||
|
||||
def test_a_priority_row_the_budget_missed_keeps_its_star(self) -> None:
|
||||
rows = plan.cells(_ENTRIES, [_REGULAR])
|
||||
status = plan._COLUMNS.index("triggered")
|
||||
self.assertEqual(
|
||||
rows[0][status], to_emoji("priority") + to_emoji("disabled")
|
||||
)
|
||||
self.assertEqual(rows[0][plan._COLUMNS.index("chunk")], "")
|
||||
|
||||
def test_a_clone_is_named_in_its_own_column(self) -> None:
|
||||
entries = [*_ENTRIES, _entry("web-app-d", "0", "compose", clone=True)]
|
||||
rows = plan.cells(entries, [_PRIORITY, _REGULAR])
|
||||
|
||||
Reference in new issue
Block a user