cleanup: remove dead maintenance mode artifacts in bot.py #104
Labels
No Label
ai-changes-requested
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
in-next-release
status/in-progress
status/pr-open
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/major-domo-v2#104
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
PR #83 added
MaintenanceAwareTreeas a subclass wired viatree_cls, which is the correct approach. However, two artifacts from the old implementation were left behind and have been flagged across multiple PR reviews (#84, #102, #103).Issues
1. Dead
@self.tree.interaction_checkdecorator block (lines 129–143)The old decorator-based maintenance check in
setup_hookis still present. It does nothing useful sinceMaintenanceAwareTree.interaction_check()handles this now, but it generates aRuntimeWarningat startup.Fix: Delete the block.
2. Duplicate
self.maintenance_modeassignment (lines 121 and 123)self.maintenance_mode: bool = Falseis assigned twice inSBABot.__init__— a merge artifact from PR #83.Fix: Remove the duplicate line.
Scope
Two small deletions in
bot.py. No behavioral change.Opened PR #105: #105
Fixed both artifacts:
self.maintenance_mode: bool = False(second assignment on line 123)@self.tree.interaction_checkblock (16 lines) fromsetup_hook—MaintenanceAwareTreealready handles this viatree_clsAll 8 maintenance tree tests pass.