-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(c3): ensure shell scripts work on Windows #4445
Commits on Nov 24, 2023
-
fix: ensure C3 shell scripts work on Windows
Our use of `shell-quote` was causing problems on Windows where it was escaping character (such as `@`) by placing a backslash in front. This made Windows think that such path arguments, were at the root. For example, `npm install -D @cloudflare/workers-types` was being converted to `npm install -D \@cloudflare/workers-types`, which resulted in errors like: ``` npm ERR! enoent ENOENT: no such file or directory, open 'D:\@cloudflare\workers-types\package.json' ``` Now we just rely directly on the Node.js `spawn` API to avoid any shell quoting concerns. This has resulted in a slightly less streamlined experience for people writing C3 plugins, but has the benefit that the developer doesn't have to worry about quoting spawn arguments. Closes #4282
Configuration menu - View commit details
-
Copy full SHA for f30cd75 - Browse repository at this point
Copy the full SHA f30cd75View commit details -
Configuration menu - View commit details
-
Copy full SHA for 02a3da6 - Browse repository at this point
Copy the full SHA 02a3da6View commit details -
C3 e2e - clean up test projects according to their type
Previously we only deleted Pages projects - in fact we were trying to delete the Hono (non-Pages) Worker as a Pages project. Now we delete the project based on its type.
Configuration menu - View commit details
-
Copy full SHA for ba452a4 - Browse repository at this point
Copy the full SHA ba452a4View commit details -
C3 - framework template fixes for Windows
- do not use bash-style environment variable setting in Docusaurus scripts - do not run TTY interactive e2e tests on Windows
Configuration menu - View commit details
-
Copy full SHA for ed7fd0f - Browse repository at this point
Copy the full SHA ed7fd0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1cbc0f7 - Browse repository at this point
Copy the full SHA 1cbc0f7View commit details -
C3 - update Nuxt template to avoid requiring Windows incompatible she…
…ll environment variable
Configuration menu - View commit details
-
Copy full SHA for ed9761a - Browse repository at this point
Copy the full SHA ed9761aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 92f02cc - Browse repository at this point
Copy the full SHA 92f02ccView commit details -
C3 e2e - Only cleanup workers and projects that are over 1 hour old
These e2e test workers and projects should be cleaned up as part of the normal test completion. But if the test crashes they may be left orphaned. This change ensures that we do not clean up projects to early while they are still being used.
Configuration menu - View commit details
-
Copy full SHA for 13c6c4e - Browse repository at this point
Copy the full SHA 13c6c4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 898b2e3 - Browse repository at this point
Copy the full SHA 898b2e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for e366929 - Browse repository at this point
Copy the full SHA e366929View commit details -
C3 e2e - recreate test folders for each e2e retry
Previously we were reusing folders after clearing them when retrying a failed test. But this could lead to problems, especially on Windows where clearing out the folder did not always work.
Configuration menu - View commit details
-
Copy full SHA for 4725c5c - Browse repository at this point
Copy the full SHA 4725c5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for adf2022 - Browse repository at this point
Copy the full SHA adf2022View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1af8026 - Browse repository at this point
Copy the full SHA 1af8026View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e8dcb8 - Browse repository at this point
Copy the full SHA 6e8dcb8View commit details -
Configuration menu - View commit details
-
Copy full SHA for f77d164 - Browse repository at this point
Copy the full SHA f77d164View commit details -
Configuration menu - View commit details
-
Copy full SHA for a77cbed - Browse repository at this point
Copy the full SHA a77cbedView commit details -
C3 e2e - disable global caches for package managers
This commit uses environment variables to tell package managers to put cached files in a local directory rather than a global shared one, which can cause problems with race conditions when running multiple installs at the same time.
Configuration menu - View commit details
-
Copy full SHA for 0dcb6cf - Browse repository at this point
Copy the full SHA 0dcb6cfView commit details -
C3 e2e - don't cancel other matrix jobs if one fails
It is a false optimization to cancel jobs that are likely to pass when another job flakes out.
Configuration menu - View commit details
-
Copy full SHA for e658af7 - Browse repository at this point
Copy the full SHA e658af7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d322d4 - Browse repository at this point
Copy the full SHA 5d322d4View commit details -
C3 e2e - drop docusaurus and react tests
These jobs tend to flake out and are not providing much of a useful signal.
Configuration menu - View commit details
-
Copy full SHA for 880bc45 - Browse repository at this point
Copy the full SHA 880bc45View commit details -
ci: skip fixture tests that exercise the "dev registry"
Reenable when #4241 lands and improves reliability of this test.
Configuration menu - View commit details
-
Copy full SHA for 9d82d89 - Browse repository at this point
Copy the full SHA 9d82d89View commit details -
C3 - ensure shell commands in logging are reasonably quoted
C3 often outputs log messages to the user of commands that are being executed. Users tend to cut and paste these into their terminal to run themselves. This makes sure that these are likely to just work went pasted into their shell.
Configuration menu - View commit details
-
Copy full SHA for 799d3fa - Browse repository at this point
Copy the full SHA 799d3faView commit details -
Configuration menu - View commit details
-
Copy full SHA for aed7c14 - Browse repository at this point
Copy the full SHA aed7c14View commit details -
Configuration menu - View commit details
-
Copy full SHA for c06c331 - Browse repository at this point
Copy the full SHA c06c331View commit details