Title: Build coderd + run E2E tests on Windows · Issue #384 · coder/coder · GitHub
Open Graph Title: Build coderd + run E2E tests on Windows · Issue #384 · coder/coder
X Title: Build coderd + run E2E tests on Windows · Issue #384 · coder/coder
Description: #288 enables running E2E tests via playwright on both MacOS and Ubuntu. However, unfortunately, the E2E run does not include in Windows. The main blocker is that we currently run our E2E tests against a local coderd binary, which means t...
Open Graph Description: #288 enables running E2E tests via playwright on both MacOS and Ubuntu. However, unfortunately, the E2E run does not include in Windows. The main blocker is that we currently run our E2E tests agai...
X Description: #288 enables running E2E tests via playwright on both MacOS and Ubuntu. However, unfortunately, the E2E run does not include in Windows. The main blocker is that we currently run our E2E tests agai...
Opengraph URL: https://github.com/coder/coder/issues/384
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Build coderd + run E2E tests on Windows","articleBody":"https://github.com/coder/coder/pull/288 enables running E2E tests via playwright on both MacOS and Ubuntu.\r\n\r\nHowever, unfortunately, the E2E run does not include in Windows.\r\n\r\nThe main blocker is that we currently run our E2E tests against a local `coderd` binary, which means that binary has to be built. \r\n\r\nOur `make build` step is not cross-platform compatible:\r\n1) The `yarn_install.sh` script does not work properly on Windows, when called from a Makefile. It results in this error:\r\n```\r\n./scripts/yarn_install.sh\r\nWindows Subsystem for Linux has no installed distributions.\r\n\r\nDistributions can be installed by visiting the Microsoft Store:\r\n\r\nhttps://aka.ms/wslstore\r\n\r\nmingw32-make: *** [Makefile:[10](https://github.com/coder/coder/runs/5368058980?check_suite_focus=true#step:8:10)2: site/out] Error 1\r\n```\r\nhttps://github.com/coder/coder/runs/5368058980?check_suite_focus=true#step:8:7\r\n\r\n2) Beyond that, the `yarn install` and other build commands for front-end, even when called directly from the Makefile end up having errors - likely due to being run in a WSL context instead of 'real' Windows: \r\n```\r\ncd site && yarn install\r\nyarn install v1.22.1[7](https://github.com/coder/coder/runs/5368562727?check_suite_focus=true#step:8:7)\r\n[1/4] Resolving packages...\r\n[2/4] Fetching packages...\r\ninfo There appears to be trouble with your network connection. Retrying...\r\ninfo There appears to be trouble with your network connection. Retrying...\r\ninfo There appears to be trouble with your network connection. Retrying...\r\ninfo There appears to be trouble with your network connection. Retrying...\r\nerror An unexpected error occurred: \"https://registry.yarnpkg.com/@material-ui/icons/-/icons-4.5.1.tgz: ESOCKETTIMEDOUT\".\r\ninfo If you think this is a bug, please open a bug report with the information provided in \"D:\\\\a\\\\coder\\\\coder\\\\site\\\\yarn-error.log\".\r\ninfo Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.\r\nEntering debug mode. Use h or ? for help.\r\n```\r\nhttps://github.com/coder/coder/runs/5368562727?check_suite_focus=true#step:8:23\r\n\r\nPossible discussion / solution here: https://github.community/t/yarn-esockettimedout-on-windows/118776/4\r\n\r\nWith those two issues unblocked - we should be able to build `coderd` and run the E2E tests.\r\n\r\nThere are a few other possible solutions:\r\n- We could cross-compile all supported architectures from a Ubuntu machine -> store them as GH artifacts -> consume the built binary on Windows. In this case, Windows wouldn't actually build the binary, but it would consume it.\r\n- We could supply a happy path for building on Windows (ie, a `build_win.bat`). ","author":{"url":"https://github.com/bryphe-coder","@type":"Person","name":"bryphe-coder"},"datePublished":"2022-03-01T01:38:55Z","url":"https://github.com/coder/coder/issues/384"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dff513bd-deb4-3c27-2ec6-821b82d1014b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C152:E3C4F:1AB127C:2204B19:6B0152C6 |
| html-safe-nonce | 992bfc8e4fb545418a8d1fe68681f4d84e86365ea7e5cc90dba4d60cf85e1f6a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTUyOkUzQzRGOjFBQjEyN0M6MjIwNEIxOTo2QjAxNTJDNiIsInZpc2l0b3JfaWQiOiIzODEwMTA5MTQzMTAxODE1NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d2defb7b1477a7b2d6ed0121df6b280b93fa0fd30e13565189544b6d9f2402f7 |
| hovercard-subject-tag | issue:1154745794 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/384/issue_layout |
| twitter:image | https://opengraph.githubassets.com/323fcc5ee25ac5dec72e0293e425add0ff8d7251bd63f4de042e9b960ea16a24/coder/coder/issues/384 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/323fcc5ee25ac5dec72e0293e425add0ff8d7251bd63f4de042e9b960ea16a24/coder/coder/issues/384 |
| og:image:alt | #288 enables running E2E tests via playwright on both MacOS and Ubuntu. However, unfortunately, the E2E run does not include in Windows. The main blocker is that we currently run our E2E tests agai... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bryphe-coder |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width