Skip to content

fix: remove tunnel connectors before cleanup - #9

Merged
cristibleotiu merged 1 commit into
mainfrom
fix/r1-meshdb-cloudflare-connector-cleanup
Aug 19, 2026
Merged

fix: remove tunnel connectors before cleanup#9
cristibleotiu merged 1 commit into
mainfrom
fix/r1-meshdb-cloudflare-connector-cleanup

Conversation

@cristibleotiu

Copy link
Copy Markdown
Contributor

What changed

  • Remove all tracked Cloudflare connector records before deleting each ephemeral tunnel.
  • Retry connector cleanup and tunnel deletion independently.
  • Include safe HTTP method/path/status details in aggregate cleanup failures.
  • Add active-connector regression coverage and refresh the source manifest.

Root cause

Release run 32199364309 passed the complete real-Cloudflare database smoke, then failed cleanup because Cloudflare rejected direct deletion of recently connected tunnels. Automatic recovery removed two tunnels but one remained tracked; repeated delayed deletion still failed. Cloudflare documents a dedicated connector cleanup endpoint and notes disconnected connectors can remain tracked for several minutes.

Safety

Recovery still discovers deletion IDs from the validated exact run prefix; downloaded artifact IDs do not drive deletion. DNS-first order, bounded retries, and unrelated/orphan protections are unchanged. Error output includes no token or response body.

Verification

  • red-first HTTP 409 active-connector regression
  • 24 focused allocation/recovery tests
  • 80 complete release, SBOM, allocation, and recovery tests
  • source boundary, 11,950-file license inventory, provenance, fixture/token, VEX, and 12,144-hash checks
  • Python/Bash syntax and diff checks
  • two local adversarial passes; external subagent review unavailable because the workspace is out of credits

Hosted CI, exact-attempt cleanup, and a protected release rerun are required before publication.

What changed:
- delete Cloudflare connector records before deleting ephemeral tunnels
- keep connector and tunnel retries independent
- include safe API method/path/status details in cleanup failures
- cover active-connector cleanup and exact deletion ordering

Why:
- Cloudflare retains disconnected connectors and rejects direct tunnel deletion with HTTP 409, which blocked release cleanup after the real-transport test passed
@cristibleotiu
cristibleotiu marked this pull request as ready for review August 19, 2026 01:30
@cristibleotiu
cristibleotiu merged commit 79bd358 into main Aug 19, 2026
1 check passed
@cristibleotiu
cristibleotiu deleted the fix/r1-meshdb-cloudflare-connector-cleanup branch August 19, 2026 01:30
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