• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rm-hull / metoffice-uk-weather-overlays / 23690962134
9%

Build:
DEFAULT BRANCH: main
Ran 28 Mar 2026 05:56PM UTC
Jobs 1
Files 12
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Mar 2026 05:55PM UTC coverage: 8.577% (-1.0%) from 9.592%
23690962134

push

github

web-flow
feat: add cleanup job for old forecast files (#64)

* feat: add cleanup job for old forecast files

Implement a scheduled task to remove forecast files older than 7 days
to prevent storage overflow.

```mermaid
sequenceDiagram
    participant Cron
    participant CleanupJob
    participant FS

    Cron->>CleanupJob: Trigger at 01:00
    CleanupJob->>FS: Walk root directory
    FS-->>CleanupJob: File path
    CleanupJob->>CleanupJob: Validate date/hour
    CleanupJob->>FS: Remove file if old
```

* refactor: use AddDate for 7-day cutoff calculation

Replace manual duration calculation with `AddDate(0, 0, -7)` for better
readability and to correctly handle daylight saving time transitions.

* chore: add logging for cron cleanup errors

Add error logging during `filepath.WalkDir` to improve
observability when the cleanup process encounters
unexpected file structures or parsing issues.

0 of 63 new or added lines in 1 file covered. (0.0%)

47 of 548 relevant lines covered (8.58%)

0.1 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
63
0.0
0.0% internal/cron.go
Jobs
ID Job ID Ran Files Coverage
1 23690962134.1 28 Mar 2026 05:56PM UTC 12
8.58
GitHub Action Run
Source Files on build 23690962134
  • Tree
  • List 12
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 82319fc5 on github
  • Prev Build on main (#23667653341)
  • Next Build on main (#23784218022)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc