Skip to content

Apply fix from https://github.com/SomeoneElseOSM/mod_tile/commit/de39d73820b28664295da2d80c788e76543f1fc7#500

Open
hummeltech wants to merge 1 commit into
openstreetmap:masterfrom
hummeltech:TwiceDirtyTiles
Open

Apply fix from https://github.com/SomeoneElseOSM/mod_tile/commit/de39d73820b28664295da2d80c788e76543f1fc7#500
hummeltech wants to merge 1 commit into
openstreetmap:masterfrom
hummeltech:TwiceDirtyTiles

Conversation

@hummeltech

Copy link
Copy Markdown
Collaborator

Resolves #494

@codecov-commenter

codecov-commenter commented Jul 25, 2026

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.95%. Comparing base (c4e3e62) to head (38dc327).
⚠️ Report is 31 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #500      +/-   ##
==========================================
- Coverage   81.54%   80.95%   -0.60%     
==========================================
  Files          24       24              
  Lines        5645     5260     -385     
==========================================
- Hits         4603     4258     -345     
+ Misses       1042     1002      -40     

☔ 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.

openstreetmap#494
The code "touchCalendar.tm_year > 105" assumed that tiles after
2005 could not have been marked dirty already.  This was true when
mod_tile was written but has not been true since 2025.

Tiles in this branch and the master branch are dirtied by 20 years.
This is relevant if somone uses "time since dirtying" as a metric
for deletion, as happens e.g. at
https://github.com/SomeoneElseOSM/database_qa_scripts/blob/main/purge_old_tiles.sh#L43

I've changed the test from 105 (== 2005) to 115 (== 2015) which
will continue working until 2035 or so.  I'd expect the upstream
issue to be fixed by then.

The oldest non-dirty tile in the "zoom" format (created by one of
my branches of the code "zoom", "zoom2022" or "zoom2025" is 2016,
which is when the code was first written.  The metatile path is
incompatible with other branches, so there cannot be older tiles.
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.

Tiles can get marked as dirty twice

2 participants