Skip to content

Upgrade DB-IP Country Lite database to 2026-08 - #8

Merged
lohanidamodar merged 1 commit into
mainfrom
chore/upgrade-dbip-country-lite-2026-08
Aug 5, 2026
Merged

lohanidamodar merged 1 commit into
mainfrom
chore/upgrade-dbip-country-lite-2026-08

Conversation

@lohanidamodar

Copy link
Copy Markdown
Member

What does this PR do?

Bumps the bundled free-tier DB-IP IP-to-Country Lite database from the 2026-06 release to the latest available 2026-08 release, and updates the default geodb path in Server.php accordingly.

Monthly refresh keeps IP-to-country lookups accurate as address blocks get reallocated. 2026-08 is the newest release published by DB-IP (2026-09 is not out yet).

Test Plan

Metadata of the new file, parsed from the MMDB metadata section:

2026-06 (old) 2026-08 (new)
database_type DBIP-Country-Lite DBIP-Country-Lite
binary format 2.0 2.0
build date 2026-06-01 2026-08-01
node count 1,367,636 1,372,441

Record shape is unchanged (country.iso_code, country.names, continent.code, continent.names), so Get.php needs no changes.

Spot-checked the lookups the E2E suite depends on against the new database:

  • 8.8.8.8 → US / NA
  • 2001:4860:4860::8888 → CA / NA
  • 192.0.2.1 (RFC 5737 TEST-NET) → no record, so the handler returns --
  • 1.1.1.1 → AU / OC, 91.198.174.192 → NL / EU

The E2E workflow on this PR exercises the same paths through the running server.

Related PRs and Issues

Follows the same monthly refresh as #4.

Have you read the Contributing Guidelines on issues?

Yes.

Bump the bundled free-tier DB-IP IP-to-Country Lite database from the
2026-06 release to the latest available 2026-08 release, and update the
default geodb path accordingly.

Verified the new file is a valid MMDB (binary format 2.0, database_type
DBIP-Country-Lite, build date 2026-08-01, 1372441 nodes) and that the
records the E2E suite relies on still behave as expected: 8.8.8.8 and
2001:4860:4860::8888 resolve, 192.0.2.1 (TEST-NET) does not.

Source: https://db-ip.com/db/download/ip-to-country (CC-BY-4.0)
@greptile-apps

greptile-apps Bot commented Aug 5, 2026

Copy link
Copy Markdown

Greptile Summary

Updates the bundled DB-IP Country Lite database from the 2026-06 release to 2026-08 and points the server’s default database path at the new file.

  • Replaces the 2026-06 MMDB asset with the 2026-08 release.
  • Updates the default geodb path while retaining the existing environment-variable override.

Confidence Score: 5/5

The PR appears safe to merge because the updated default path matches the bundled database and the existing lookup contract remains intact.

The image copies the complete asset directory, the server references the renamed file exactly, and the supplied metadata and end-to-end lookup checks cover database readability, record shape, IPv4, IPv6, and missing-record behavior.

Important Files Changed

Filename Overview
app/assets/dbip/dbip-country-lite-2026-08.mmdb Replaces the prior country database with the compatible 2026-08 MMDB asset; described metadata and lookup checks cover the existing runtime contract.
src/Geo/Server/Server.php Updates the default database filename to match the newly bundled asset without changing path resolution or override behavior.

Reviews (1): Last reviewed commit: "Upgrade DB-IP Country Lite database to 2..." | Re-trigger Greptile

@lohanidamodar
lohanidamodar merged commit e6e34f5 into main Aug 5, 2026
4 checks passed
@lohanidamodar
lohanidamodar deleted the chore/upgrade-dbip-country-lite-2026-08 branch August 5, 2026 01:05
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