calendar: add overnight BST event snapshot tests #85

Merged
JakeHillion merged 1 commits from feature/szlnkuxooquk into main 2026-05-17 13:28:12 +01:00
Owner

A user reported an event from 18:30 BST Sunday 17th May 2026 to
02:45 BST Monday 18th May 2026 was not visible to the bot when
querying Sunday, Monday, or the Sunday->Monday range.

Add three new testcontainers/insta snapshot tests covering:

  • single-day query for Sunday (start_date = 2026-05-17)
  • single-day query for Monday (start_date = 2026-05-18)
  • two-day range query (2026-05-17 to 2026-05-18)

The event is stored with a proper Europe/London VTIMEZONE and
DTSTART/DTEND in BST local time so the test matches real-world
ICS data. Against the Radicale test server the event is found in
all three queries, so these serve as regression tests rather than
bug-reproduction tests.

Test plan:

  • CI
  • cargo test test_overnight_event -- all 3 tests pass
  • nix flake check -- clippy, doc, formatting, and package checks pass
A user reported an event from 18:30 BST Sunday 17th May 2026 to 02:45 BST Monday 18th May 2026 was not visible to the bot when querying Sunday, Monday, or the Sunday->Monday range. Add three new testcontainers/insta snapshot tests covering: - single-day query for Sunday (start_date = 2026-05-17) - single-day query for Monday (start_date = 2026-05-18) - two-day range query (2026-05-17 to 2026-05-18) The event is stored with a proper Europe/London VTIMEZONE and DTSTART/DTEND in BST local time so the test matches real-world ICS data. Against the Radicale test server the event is found in all three queries, so these serve as regression tests rather than bug-reproduction tests. Test plan: - CI - cargo test test_overnight_event -- all 3 tests pass - nix flake check -- clippy, doc, formatting, and package checks pass
JakeHillion added 1 commit 2026-05-17 13:21:05 +01:00
A user reported an event from 18:30 BST Sunday 17th May 2026 to
02:45 BST Monday 18th May 2026 was not visible to the bot when
querying Sunday, Monday, or the Sunday->Monday range.

Add three new testcontainers/insta snapshot tests covering:
- single-day query for Sunday (start_date = 2026-05-17)
- single-day query for Monday (start_date = 2026-05-18)
- two-day range query (2026-05-17 to 2026-05-18)

The event is stored with a proper Europe/London VTIMEZONE and
DTSTART/DTEND in BST local time so the test matches real-world
ICS data. Against the Radicale test server the event is found in
all three queries, so these serve as regression tests rather than
bug-reproduction tests.

Test plan:
- CI
- cargo test test_overnight_event -- all 3 tests pass
- nix flake check -- clippy, doc, formatting, and package checks pass
JakeHillion merged commit d2a4b5941d into main 2026-05-17 13:28:12 +01:00
JakeHillion deleted branch feature/szlnkuxooquk 2026-05-17 13:28:13 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: JakeHillion/personal-agent#85