Skip to content

[Bug]: prevent reminder batch abort on delivery failure - #105

Merged
viiccwen merged 2 commits into
mainfrom
test/reminder-runner-orchestration
Jul 12, 2026
Merged

[Bug]: prevent reminder batch abort on delivery failure#105
viiccwen merged 2 commits into
mainfrom
test/reminder-runner-orchestration

Conversation

@viiccwen

@viiccwen viiccwen commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Prevent the daily reminder batch from aborting when member data cannot be loaded or an individual Discord DM raises an exception. Add focused regression coverage and table-driven boundary cases for reminder behavior.

Related Issue

Fixes #83
Fixes #106

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Configuration or deployment
  • Tests

Changes

  • Log member-data loading failures and stop cleanly before delivery.
  • Isolate per-recipient Discord exceptions so remaining recipients are still attempted and summarized.
  • Cover empty recipients, incomplete check-in identities, date rollover, slides, and scheduling boundaries, using table-driven cases where appropriate.

Testing

  • Local tests or checks pass
  • Manual verification completed
  • Not tested; reason:

Commands run:

make test       # 128 passed
make precommit  # all hooks passed

External Discord calls remain mocked; no live member notifications were sent.

Impact Checklist

  • Discord bot behavior checked, if affected
  • MCP server behavior checked, if affected
  • Webhook behavior checked, if affected
  • Docker or compose changes checked, if affected
  • Environment variables documented, if changed
  • Logs do not expose secrets or sensitive data

Notes for Reviewers

The change is limited to the daily reminder service and its domain/service tests. A failed recipient is counted as failed, processing continues, and the existing summary log is still emitted.

viiccwen added 2 commits July 11, 2026 13:35
Cover fetch failures, no-event and dry-run exits, and personalized Discord delivery counts without external services.

Closes #83

Signed-off-by: viiccwen <vicwen@apache.org>
@viiccwen viiccwen changed the title Harden reminder delivery edge cases [Bug]: prevent reminder batch abort on delivery failure Jul 12, 2026
@viiccwen
viiccwen marked this pull request as ready for review July 12, 2026 15:53
@viiccwen
viiccwen merged commit bf76969 into main Jul 12, 2026
2 checks passed
@viiccwen
viiccwen deleted the test/reminder-runner-orchestration branch July 12, 2026 15:53
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.

[Bug]: prevent reminder batch abort on delivery failure [Feature]: Add unit tests for reminder runner orchestration

1 participant