Skip to content

v1.27.1: cron time zones — full database, keep the application's one - #190

Merged
gmpassos merged 1 commit into
masterfrom
fix/cron-timezone-db
Oct 18, 2026
Merged

gmpassos merged 1 commit into
masterfrom
fix/cron-timezone-db

Conversation

@gmpassos

Copy link
Copy Markdown
Contributor

Summary

  • Cron time zones now use the full timezone database (data/latest_all.dart). The default one loaded until now (data/latest.dart) has no links or aliases, so a job with GMT, Europe/Oslo or Atlantic/Reykjavik was rejected as an unknown time zone.
  • A database already loaded by the application is kept. Before, it was replaced by the smaller default one, which broke the application's own lookups of names missing from it.
  • A name not found in the loaded database loads the full database, which is a superset (names already resolved keep resolving), and the lookup is tried again.
  • Version 1.27.1 + CHANGELOG.

Tests

  • test/bones_api_cron_timezone_db_test.dart (its own isolate, because the database is global): an app-loaded default database is kept; an alias loads the full database; earlier names keep resolving; unknown names still throw; a job with Europe/Oslo resolves.
  • Unit suite: 2154 pass; dart analyze --fatal-infos: no issues.

🤖 Generated with Claude Code

- Load the full timezone database (data/latest_all.dart): the default one
  has no links/aliases (GMT, Europe/Oslo...), rejected as unknown.
- A database already loaded by the application is kept; a name not found
  loads the full database (a superset) and is tried again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.55%. Comparing base (94aa7ab) to head (e56b862).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #190      +/-   ##
==========================================
+ Coverage   95.53%   95.55%   +0.02%     
==========================================
  Files          73       73              
  Lines       25174    25179       +5     
==========================================
+ Hits        24049    24059      +10     
+ Misses       1125     1120       -5     
Flag Coverage Δ
unittests 95.55% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gmpassos
gmpassos merged commit d853d95 into master Oct 18, 2026
11 checks passed
@gmpassos
gmpassos deleted the fix/cron-timezone-db branch October 18, 2026 08:41
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