feat(rasci): prune stale tasks, hotfix sees archived tasks
Requirements 071 and 075. rasci.py gains keep and prune for tasks done or stopped past their window; hotfix.py reads the archive next to the register, so a closed hotfix that moved there is still known to add and update. hooks.py marks its deliberate broad catch (BLE001). 🎯 Fix: 92 % 💥 Break: 3 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 89 🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 % Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a3e1fda7e8
commit
dc0d578eca
7 files changed
+234
-17
No files matched your search
@@ -352,7 +352,8 @@ class TestHotfix(unittest.TestCase):
|
||||
self.assertNotEqual(row["end"], old)
|
||||
self.rasci("set", "hotfix/closed", "--status", "done", "--end", old)
|
||||
self.out("add", "closed", *self.flags({"--branch": "fix/db", "--sha": self.fix, "--status": "merged"}))
|
||||
self.assertEqual(self.rows()["hotfix/closed"]["end"], old)
|
||||
archived = json.loads((self.root / "rasci-archive.json").read_text(encoding="utf-8"))
|
||||
self.assertEqual(("hotfix/closed" in self.rows(), archived["hotfix/closed"]["end"]), (False, old))
|
||||
|
||||
def test_pending_reports_missing_and_open_hotfixes_of_the_repository(self):
|
||||
expected = [
|
||||
|
||||
Reference in new issue
Block a user