Closed anthonyfok closed 2 years ago
Thanks for the detailed write up
You are very welcome, Will! And sorry for my delay in getting this implemented: there are a few more bugs I'd like to get fixed in gpkg-to-pgdump.yml; I'll be filing another issue, and hope to get a PR in before tomorrow.
Incidentally, this issue (about splitting up the database dump into 2GB chunks) is not "fortunately" not blocking opendrr-api because add_data.sh is still reading from https://opendrr.eccp.ca/file/OpenDRR/opendrr-boundaries.dump which is up-to-date, 2.5 GB from v1.3.
The splitting of opendrr-boundaries.sql 2GB (2,000,000,000-byte) chunks (named opendrr-boundaries.sql.00, opendrr-boundaries.sql.01, etc.) and uploading as release assets has been implemented in commit cd772c0 in the test_hexbin_unclipped
branch, and has been tested in my fork in with a test release tag, see https://github.com/anthonyfok/boundaries/releases/tag/v1.3.1-test_hexbin_unclipped
The support for downloading these 2GB chunks from OpenDRR/boundaries release asset is implemented in commit f724397 to python/add_data.sh in OpenDRR/opendrr-api.
Task
To split
opendrr-boundaries.sql
into 2GB chunks (e.g.opendrr-boundaries.sql.00
andopendrr-boundaries.sql.01
) before uploading as release assets during GitHub Actions workflow run.Background
With the addition of hexbin_1km, PostgreSQL database backup file opendrr-boundaries.sql (from Will) and the equivalent opendrr-boundaries.dump (regenerated in GitHub Actions workflow) now both exceed the size limit of GitHub release asset file. The latest Actions run for v1.3 failed with the following error at the
softprops/action-gh-release@v1
:Observations
split -b 2147483647 -d --verbose opendrr-boundaries.sql opendrr-boundaries.sql.
uint32
for the file size?See also