Skip to content

add r2 file fetch - #132

Open
mikemhenry wants to merge 17 commits into
OpenFreeEnergy:mainfrom
mikemhenry:feat/add-r2-file-fetch
Open

mikemhenry wants to merge 17 commits into
OpenFreeEnergy:mainfrom
mikemhenry:feat/add-r2-file-fetch

Conversation

@mikemhenry

Copy link
Copy Markdown
Contributor

I used ChatGPT 6.0 Extra-High to write the scripts/upload_data.py (wiring together wrangler, rclone, and the HTTP api was something I wanted assistance on). I've read every line and can explain it.

Everything else is handcrafted.

In addition to switching to R2, this PR adds a file lock when pooch is untaring an archive. I found this to be the source of a lot of weird netcdf errors and stuff since two pytest-xdist workers and end up trying to untar the same file at the same time. This file lock works on osx and linux using native OS primitives.

* mondernize pkg

* add testpypi trusted publishing

* Use append mode to test the installed wheel instead of importing the source package, which lacks the generated _version.py.

* add -n auto to speed up CI
* use generic SCM version overide envar

* Migrate to R2

* update script doc strings

* update ci steps

* prevent a race where two pytest workers might try and untar the same file
@mikemhenry
mikemhenry requested a review from atravitz November 20, 2026 21:07
@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.38%. Comparing base (e4bdf17) to head (22763dc).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #132   +/-   ##
=======================================
  Coverage   98.38%   98.38%           
=======================================
  Files          10       10           
  Lines         496      496           
=======================================
  Hits          488      488           
  Misses          8        8           

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

@mikemhenry

Copy link
Copy Markdown
Contributor Author

pre-commit.ci autofix

@mikemhenry

Copy link
Copy Markdown
Contributor Author

pre-commit.ci autofix

@atravitz atravitz self-assigned this Nov 21, 2026
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.

2 participants