Skip to content

feat(get-modflow): consistently retry transient network failures - #2849

Open
wpbonelli wants to merge 4 commits into
modflowpy:developfrom
wpbonelli:get-modflow-retries
Open

feat(get-modflow): consistently retry transient network failures#2849
wpbonelli wants to merge 4 commits into
modflowpy:developfrom
wpbonelli:get-modflow-retries

Conversation

@wpbonelli

@wpbonelli wpbonelli commented Sep 10, 2026

Copy link
Copy Markdown
Member

Use a consistent, configurable retry mechanism for all three network calls

  • list releases
  • get info for a release
  • download a release archive

Previously the download didn't retry, just the first two queries

@wpbonelli wpbonelli added this to the 3.12 milestone Sep 10, 2026
@codecov

codecov Bot commented Sep 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 74.44444% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.6%. Comparing base (556c088) to head (58dcb3d).
⚠️ Report is 231 commits behind head on develop.

Files with missing lines Patch % Lines
flopy/utils/get_modflow.py 74.4% 23 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2849      +/-   ##
===========================================
+ Coverage     55.5%    73.6%   +18.1%     
===========================================
  Files          644      659      +15     
  Lines       124135   132370    +8235     
===========================================
+ Hits         68947    97551   +28604     
+ Misses       55188    34819   -20369     
Files with missing lines Coverage Δ
flopy/utils/get_modflow.py 39.0% <74.4%> (-24.7%) ⬇️

... and 585 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@wpbonelli wpbonelli changed the title feat(get-modflow): retry transient network failures feat(get-modflow): consistently retry transient network failures Sep 10, 2026
flopy.utils.get_modflow is bound to run_main, so monkeypatching module
attributes (http_retry_delay, urlopen, ...) raised AttributeError at
fixture setup, erroring every test in the file. Import
get_modflow_module instead, and pull in run_main for test_python_api.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014YZ9JZKVxBAWym16KcgQoU
@wpbonelli
wpbonelli marked this pull request as ready for review September 10, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant