Repository navigation
fix(test): skip TestCheckLiveConnectivityWithProject on Rancher/Colima/Lima, fix misleading WSL2 labels - #8365
Merged
Conversation
…a/Lima, fix misleading WSL2 labels Rancher Desktop (Lima-based) has unpredictable localhost port forwarding, causing tls.Dial to localhost to fail intermittently — the same reason extra_expose_test.go, traefik_test.go, and router_test.go all skip on these runtimes. Add the same skip guarded by DDEV_RUN_TEST_ANYWAY. The test and function were written on a WSL2-centric mindset. Rename linuxIssues → hostIssues in checkLiveConnectivity and all callers/tests, and update assertion messages from "Linux/WSL2-side" to "host-side" so failures on macOS report something accurate. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
Download the artifacts for this pull request:
See Testing a PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Issue
Rancher Desktop (Lima-based) intermittently fails
TestCheckLiveConnectivityWithProjectbecausetls.Dialtolocalhostis unreliable on Lima-based runtimes — the same fundamental networking constraint that causesextra_expose_test.go,traefik_test.go, androuter_test.goto all skip on Rancher/Colima/Lima.Additionally, the test and function were written with a WSL2-centric mindset: the return value was named
linuxIssuesand assertion messages said "Linux/WSL2-side TLS connection must succeed", which is confusing/wrong on macOS Rancher Desktop.How This PR Solves The Issue
IsColima() || IsLima() || IsRancherDesktop()skip (guarded byDDEV_RUN_TEST_ANYWAY) toTestCheckLiveConnectivityWithProject, matching the pattern used elsewhere in the test suite.linuxIssues→hostIssuesincheckLiveConnectivityand all callers/tests.Manual Testing Instructions
go test -v -run TestCheckLiveConnectivityWithProject ./cmd/ddev/cmd/— it should now skip.DDEV_RUN_TEST_ANYWAY=true go test -v -run TestCheckLiveConnectivityWithProject ./cmd/ddev/cmd/on Rancher to force it to run.Automated Testing Overview
No new tests. The existing
TestCheckLiveConnectivityWithProjecttest already covers the fixed code path and was verified passing on Linux Docker before this commit.Release/Deployment Notes
Test-only change. No impact on DDEV behavior or released binaries.