WIP: feat(zenodo): automate monthly dataset publishing to Zenodo#815
Open
vcnainala wants to merge 2 commits into
Open
WIP: feat(zenodo): automate monthly dataset publishing to Zenodo#815vcnainala wants to merge 2 commits into
vcnainala wants to merge 2 commits into
Conversation
CSV exports were deleted after SDF conversion without being zipped, so coconut_csv-*.zip files were missing from prod/downloads uploads.
Add publish_zenodo.py to create new Zenodo dataset versions via the deposit API, wire it into the monthly export pipeline, and expose ZENODO_* settings through config/services.php and .env.example.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## development #815 +/- ##
=============================================
Coverage 6.13% 6.13%
Complexity 1737 1737
=============================================
Files 227 227
Lines 8961 8961
=============================================
Hits 550 550
Misses 8411 8411 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
coconut_csv-*.zipfiles are included in S3 uploads (required for Zenodo and the download page).publish_zenodo.pyto create new Zenodo dataset versions via the deposit API after each monthly export.ZENODO_*configuration through.env.exampleandconfig/services.php(Laravel service config pattern).Changes
fix(exports): zip CSV archives for monthly S3 downloadsfeat(zenodo): publish monthly exports to Zenodo after S3 uploadConfiguration
Test plan
ZENODO_ENABLED=falseand confirm CSV zips appear underprod/downloads/{YYYY-MM}/python publish_zenodo.py --dry-runagainst a completed export directoryZENODO_API_URL=https://sandbox.zenodo.org/apiZENODO_LATEST_DEPOSITION_IDis updated after each publishWIP notes
ZENODO_AUTO_PUBLISHpolicy (currentlyfalsefor manual review)docs/versions.mdDOI references once first automated release is published