Skip to content

Fix all 12 SME-reviewed issues with TDD coverage - #2

Merged
mlugo-apx merged 1 commit into
masterfrom
fix/sme-review-12-issues
Feb 27, 2026
Merged

Fix all 12 SME-reviewed issues with TDD coverage#2
mlugo-apx merged 1 commit into
masterfrom
fix/sme-review-12-issues

Conversation

@mlugo-apx

Copy link
Copy Markdown
Owner

Summary

  • Bugs: deploy.sh and install_and_start.sh now delegate to install_service.sh instead of raw-copying the service template without placeholder substitution
  • Reliability: Added desktop alerting via notify-send in health checks, log rotation via RotatingFileHandler (10MB/5 backups), and remote disk space checking before rsync
  • Security: Re-enabled SystemCallFilter in systemd service, added deprecation notice to bash monitor script
  • Features: Desktop notifications on sync success/failure, DELETE_AFTER_SYNC config option, multiple watch directory support (comma-separated WATCH_DIR)
  • Code quality: Converted all 33 f-string logging calls to lazy % formatting, removed duplicate imports

Issues Addressed

# Category Description
1 Bug deploy.sh overwrites generated service with raw template
2 Bug install_and_start.sh same raw copy bug
3 Reliability No alerting on failure
4 Reliability No log rotation
5 Reliability No disk space management on Pi
6 Security Deprecate monitor_and_sync.sh
7 Security Re-evaluate SystemCallFilter
8 Feature Desktop notification on sync success/failure
9 Feature File cleanup option after sync
10 Feature Multiple watch directories
11 Code Quality f-strings in logging calls
12 Code Quality Duplicate imports

Test plan

  • All 94 tests pass (27 new tests added via strict TDD Red-Green-Refactor)
  • Verify systemd service starts without seccomp denials after SystemCallFilter re-enable
  • Test DELETE_AFTER_SYNC=true with a real .gcode file
  • Test comma-separated WATCH_DIR with multiple directories
  • Verify notify-send notifications appear on sync success/failure

🤖 Generated with Claude Code

Addresses bugs, reliability gaps, security hardening, and feature requests
identified in SME review. All changes driven by strict Red-Green-Refactor
TDD discipline (94 tests, up from 67).

Bugs: deploy.sh and install_and_start.sh now delegate to install_service.sh
instead of raw-copying the service template without placeholder substitution.

Reliability: Added desktop alerting via notify-send in health checks, log
rotation via RotatingFileHandler (10MB/5 backups), and remote disk space
checking before rsync transfers.

Security: Re-enabled SystemCallFilter in systemd service, added deprecation
notice to bash monitor script.

Features: Desktop notifications on sync success/failure, DELETE_AFTER_SYNC
config option, multiple watch directory support (comma-separated WATCH_DIR).

Code quality: Converted all 33 f-string logging calls to lazy % formatting,
removed duplicate imports.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mlugo-apx
mlugo-apx merged commit 181e994 into master Feb 27, 2026
6 of 10 checks passed
@mlugo-apx
mlugo-apx deleted the fix/sme-review-12-issues branch February 27, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant