Skip to content

Fix create retry behavior in go, improve tests#582

Merged
jasongin merged 1 commit intomainfrom
dev/jasongin/go-create-retry
Mar 25, 2026
Merged

Fix create retry behavior in go, improve tests#582
jasongin merged 1 commit intomainfrom
dev/jasongin/go-create-retry

Conversation

@jasongin
Copy link
Copy Markdown
Member

Changes:

  • Fix go tunnel create retry logic: retry only on 409 conflicts, rebuild URL on retry, and respect caller‑supplied IDs. Similar to fixes for C# and TS that were previously applied in Fix tunnel creation ID conflict handling #568
  • Fix go tunnel partial update: always include the TunnelID and ClusterID properties in the body, since they are required by the service.
  • Route go SSH client session port‑forwarding output through the session logger instead of stdout.
  • Improve go tests: add retry behavior coverage, update token handling, and gate verbose output/logging for cleaner default test runs.

Other Tasks:

  • If you updated the Go SDK did you update the PackageVersion in tunnels.go
  • If you updated the TS SDK did you update the dependencies in package.json for connections and management to require a dependency that is > the current published version(Found using npm view @microsoft/dev-tunnels-contracts). This will fix issues where yarn will pull the old version of packages and will cause mismatched dependencies. See example PR

@jasongin jasongin merged commit 212c3e5 into main Mar 25, 2026
9 checks passed
@jasongin jasongin deleted the dev/jasongin/go-create-retry branch March 25, 2026 21:03
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.

4 participants