Repository navigation
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b65ebc0. Configure here.
| echo "Remove unused networks ($CONTAINER_ENGINE network prune) or increase default-address-pools in /etc/docker/daemon.json." | ||
| exit 1 | ||
| fi | ||
| $CONTAINER_ENGINE network rm sentry-network-check >/dev/null |
There was a problem hiding this comment.
Probe requires extra free subnet
Medium Severity
The probe always tries to create an extra network while sentry-self-hosted_default may still exist. A later compose down frees that subnet, and --minimize-downtime reuses the existing network, so an upgrade can fail this check even though install never needs another pool slot.
Reviewed by Cursor Bugbot for commit b65ebc0. Configure here.
| echo "Remove unused networks ($CONTAINER_ENGINE network prune) or increase default-address-pools in /etc/docker/daemon.json." | ||
| exit 1 | ||
| fi | ||
| $CONTAINER_ENGINE network rm sentry-network-check >/dev/null |
There was a problem hiding this comment.
Collision mistaken for pool exhaustion
Low Severity
Create uses the fixed name sentry-network-check and discards daemon stderr, so a leftover or colliding network is reported as address-pool exhaustion. The install trap does not remove this network, so an interrupted run can block later installs with a misleading FAIL.
Reviewed by Cursor Bugbot for commit b65ebc0. Configure here.
Coverage Results 📊✅ 22 passed | Total: 22 | Pass Rate: 100% | Execution Time: 11m 23s 📊 Comparison with Base Branch
✨ Test counts unchanged from base. All tests are passing successfully. ✅ Patch coverage is 100.00% (no changed executable lines found; target 50%). Coverage diff@@ Coverage Diff @@
## master #4628 +/-##
==========================================
Coverage 95.58% 95.58% —%
==========================================
Files 5 5 —
Tracked lines 339 339 —
Branches 0 0 —
==========================================
Hits 324 324 —
Misses 15 15 —
Partials 0 0 —Generated by Coverage Action |
|
Wrong, unnecessary. |
|
Fair, the upgrade could hit a false failure. Thanks for the look. |


Why
When Docker's address pools are exhausted,
install.shpulls every image and only then fails at the relay credentials step with "all predefined address pools have been fully subnetted". The install can't fix the exhaustion, but it can catch it up front with a clear message. Fixes #4576.What changed
install/check-minimum-requirements.sh: after the RAM check, create and remove a throwaway network (sentry-network-check). If creation fails, exit with a message that points todocker network pruneanddefault-address-poolsin/etc/docker/daemon.json.Testing
Tested locally on Colima (arm64, Docker 29.5.2, Compose 5.5.0) with
default-address-poolsset to10.99.0.0/22, size 24:docker-compose run --rm --no-deps relay --versionfails withfailed to create network sentry-self-hosted_default: ... all predefined address pools have been fully subnetted.install.shfails with the new message right after the minimum requirements check, before any images are pulled.sentry-network-checknetwork is left behind in either case.Not covered by
_unit-test/, sincecheck-minimum-requirements.shhas no existing tests.