Skip to content

fix: 'ignore' policy now bypasses max_failed_ratio check - #43

Merged
tahamukhtar20 merged 1 commit into
mainfrom
fix/ignore-policy-ratio-check-15944298117911183194
May 25, 2026
Merged

fix: 'ignore' policy now bypasses max_failed_ratio check#43
tahamukhtar20 merged 1 commit into
mainfrom
fix/ignore-policy-ratio-check-15944298117911183194

Conversation

@tahamukhtar20

Copy link
Copy Markdown
Owner

This PR addresses issue #41 where the ignore failure policy was incorrectly enforcing the max_failed_ratio threshold.

Changes:

  • Modified src/lib.rs to only apply the max_failed_ratio check in fetch_tiles when the policy is "lenient".
  • Updated tests/test_fetcher.py to verify that the ignore policy correctly bypasses the ratio check even if all tiles fail.

Verified by running all tests with uv run pytest. All 215 tests passed.


PR created automatically by Jules for task 15944298117911183194 started by @tahamukhtar20

The `ignore` policy should return all tiles (filling failures with NoData)
regardless of the failure ratio. Previously, the `max_failed_ratio`
check was applied to all policies, causing the download to abort
incorrectly under the `ignore` policy if too many tiles failed.

This change gates the `max_failed_ratio` check to only apply when
the policy is set to `lenient`.

Closes #41

Co-authored-by: tahamukhtar20 <91777330+tahamukhtar20@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@tahamukhtar20 tahamukhtar20 changed the title fix: 'ignore' policy now bypasses max_failed_ratio check (#41) fix: 'ignore' policy now bypasses max_failed_ratio check May 25, 2026
@tahamukhtar20
tahamukhtar20 merged commit 8c1f079 into main May 25, 2026
3 checks passed
@tahamukhtar20
tahamukhtar20 deleted the fix/ignore-policy-ratio-check-15944298117911183194 branch May 25, 2026 17:39
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