Invisible Fix for Dependabot PRs

Another brokenDependabot PR?

Failing Dependabot PRs leave vulnerabilities open. Invisible Fix fixes them the way your maintainers would, gets CI green and validates the change on your code.

See what it does
Repo history
Reading your repo’s history
  • 1 year agocommitIntroduce app/http.py: one place for retries and timeouts
  • 1 year agoreview@noa: every client should get its session from app/http.py
  • 11 monthsdocsCONTRIBUTING: new HTTP clients use shared_client()
  • 10 monthscommitMove the billing client onto shared_client()
  • 9 monthsreview@dana: smaller diff please, this touches 14 files
  • 8 monthsissueFlaky test_refund_timeout: retries hide the real error
  • 7 monthscommitPin requests below 3.0 until the auth refactor lands
  • 7 monthsreview@sam: prefer the existing fixture over a new mock
  • 6 monthscommitRevert: don’t vendor certifi, use the system bundle
  • 5 monthscommitshared_client() switches to allowed_methods (urllib3 2 ready)
  • 5 monthsreview@noa: keep the public API, deprecate first
  • 4 monthsissueWebhooks retry forever when the provider times out
  • 3 monthsreview@alex: don’t build Retry objects per client. Use shared_client()
  • 3 monthscommitAdd backoff to webhook delivery
  • 10 weeksreview@dana: let’s not add a new dependency for this
  • 8 weekscommitDrop Python 3.8 from the CI matrix
  • 6 weekscommitAdd a 10s timeout to the payments client
  • 5 weeksreview@sam: tests for the retry path live in test_http.py
  • 4 weeksdocsADR-007: no per-module HTTP sessions
  • 3 weekscommitBump pydantic to 2.5, keep the v1 validators shim
  • 2 weeksreview@alex: same pattern as the billing client, please
  • 9 dayscommitReplace deprecated datetime.utcnow()
  • todaysecurityDependabot: urllib3 update for a reported vulnerability
  • todaycipayments: Retry() got an unexpected keyword 'method_whitelist'

What Invisible Fix does

Written the way your repo’s maintainers would write it.

Concept illustration

From a stuck security update to one you can merge.

09:12

Dependabot opens a security update.

urllib3 1.26.18 to 2.2.3, to close a reported vulnerability.

09:16

CI breaks.

urllib3 2 dropped method_whitelist. The update can’t merge, so the vulnerability stays open.

09:17

Invisible Fix steps in.

It reads the failure before it touches any code.

09:18

It looks back before it writes.

Reviews, commits and docs in your repo. A maintainer already answered this one.

09:21

The fix follows the pattern.

Three lines in one file. CI goes green.

09:26

Then it validates the change.

It plans checks for the code the update touches and runs them, before you see the PR.

Bump urllib3 from 1.26.18 to 2.2.3 #427

Opendependabot wants to merge 1 commitdependenciessecurity
dependabot commented bot

Bumps urllib3 from 1.26.18 to 2.2.3. This update fixes a reported vulnerability.

✕ Some checks were not successful
✕tests / pytestFailing after 41s
app/clients/payments.py:14 TypeError: Retry.__init__() got an unexpected keyword argument 'method_whitelist'
invisible-fix commented bot

Looking at how this repo already handles retries.

app/clients/payments.py+1 −2
- retry = Retry(total=3, method_whitelist=["GET"])
- session.mount("https://", HTTPAdapter(max_retries=retry))
+ session = shared_client(retries=3)
✓ All checks have passed
✓tests / pytest212 passed
invisible-fix validated this change bot

Planned 3 checks for the code urllib3 touches:

  • GET /invoices retries a 503 three times, then raises
  • Timeouts still raise PaymentTimeout
  • Matches @alex’s review on retries

Stop leaving security updates unmerged.