Repository navigation
fix: ensure non-TTY agents dont hang - #172
Conversation
| @@ -34,6 +34,7 @@ program | |||
| .option('--quiet', 'do not ask for interactive input prompts') | |||
| .option('--gha', 'install GitHub Actions') | |||
There was a problem hiding this comment.
Simon Knott (@Skn0tt) I think there's still not a --no-gha flag for non-interactive rejection of GitHub Actions workflow files, as I mentioned here:
There was a problem hiding this comment.
I don't think that's needed, GitHub Actions workflow files are off unless --gha is passed. So --no-gha is the default.
There was a problem hiding this comment.
that requires the --quiet flag, which hides the defaults
it's less obvious what this does:
pnpm create playwright --browser=chromium --test-dir=playwright --quietit would be easier to understand if you can just exhaustively pass in all options (this would break after your PR):
pnpm create playwright --browser=chromium --test-dir=playwright --no-ghawe're getting into the same conversation territory in the new PR, so I'll continue over here:
There was a problem hiding this comment.
The original issues #39986 and #39987 weren't actually resolved by this PR
There may be an option to complete this over here:
…187) * fix: overwrite prompt, option parsing, workflow and epilogue issues - Ask before overriding existing files in interactive mode again; the check compared relative paths against absolute ones (regression from #172). - Check for conflicting files before installing anything, skip files whose content is unchanged, report paths relative to the cwd and add the `--force` option the error message refers to. - Accept `--lang JavaScript`/`javascript`/`JS`, comma-separated `--browser` lists, and reject unknown values for both. - Install only the selected browsers in the generated workflow. - Only use `cache: "npm"` in the workflow for npm with a package-lock.json; actions/setup-node fails without a lock file. - Match whole `.gitignore` lines, with or without leading/trailing slashes. - Escape `--test-dir` in the generated config and tsconfig.json, and do not expand `$&`-style patterns in template values. - Only suggest an enabled project and existing files in the closing message. Fixes microsoft/playwright#43950 Fixes microsoft/playwright#43951 Fixes microsoft/playwright#43952 Fixes microsoft/playwright#43953 Fixes microsoft/playwright#43954 Fixes microsoft/playwright#43955 Fixes microsoft/playwright#43956 Fixes microsoft/playwright#43957 * test: normalize line endings in new tests on Windows Templates are checked out with CRLF on Windows runners. Also mark the tests that download browsers as slow, like the current directory test. * chore(ci): make Node.js 22 the main version, drop Node.js 20 Node.js 24 and 26 jobs keep running but no longer fail the workflow.
Closes microsoft/playwright#39986:
createFilesfrom hanging in quiet mode--test-dirflag, which was only configurable interactively before