fix(ci): use 127.0.0.1 for e2e server #322
Merged
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.
Summary
Testing
Greptile Summary
Replaced
localhostwith127.0.0.1throughout the e2e local test runner to avoid Windows DNS resolution issues.serverHostvariable with environment override support viaOPENCODE_E2E_SERVER_HOSTConfidence Score: 5/5
Important Files Changed
Sequence Diagram
sequenceDiagram participant Script as e2e-local.ts participant Env as Environment participant Seed as seed-e2e.ts participant Server as OpenCode Server participant Health as Health Check participant Runner as E2E Test Runner Script->>Env: Read OPENCODE_E2E_SERVER_HOST Env-->>Script: Return 127.0.0.1 (default) Script->>Script: Acquire free ports Script->>Script: Create temp sandbox Script->>Seed: Spawn with serverEnv Seed-->>Script: Exit with code 0 Script->>Server: Spawn on 127.0.0.1:serverPort Note over Server: Previously used localhost Script->>Health: Poll http://127.0.0.1:serverPort/global/health Health-->>Script: Health check OK Script->>Runner: Spawn with runnerEnv Note over Runner: PLAYWRIGHT_SERVER_HOST=127.0.0.1<br/>VITE_OPENCODE_SERVER_HOST=127.0.0.1 Runner-->>Script: Exit with test results Script->>Server: Kill process