Learning loop hardening: docs, approval wording, rollback only restores the cycle's own files, due notice no longer hides errors

This commit is contained in:
swaits committed 2026-11-23 12:01:15 -07:00
1 parent 4821a1b6a4
commit 2ca45f8103
9 files changed
+152 -90

No files matched your search

+2 -4
View File
@@ -751,8 +751,8 @@ class Approval(Base):
line = L.pending_notice()
self.assertIn("question dialog", line)
self.assertIn("sisi approve", line)
self.assertIn("yourself" if "yourself" in line else "himself", line)
self.assertIn("Do not run it for him", line)
self.assertIn("command to run in a terminal", line)
self.assertIn("Do not run it for the owner", line)
from sisi import cycle
self.assertIn(line, cycle.due_notice())
@@ -1032,8 +1032,6 @@ class Cycle(Base):
"--cause", "the suite runs everything serially", "--impact", "time",
"--disposition", "promote", "--change", "run independent checks in parallel",
"--mechanism", "infrastructure", "--expect", "faster runs", "--validate", "time the suite")
self.earn("L-0002", finding="another unrelated slowness appeared in the test run today",
cause="the suite runs everything serially") # so a rule is not simply parked for scope
big = "## Huge {#huge-rule}\n\n" + "\n".join("line %d of the rule" % i for i in range(400)) + "\n\nWhy: no.\n"
with open(L.learnings_path()) as f:
before = f.read()