-
Notifications
You must be signed in to change notification settings - Fork 86
Fix Windows E2E: combined status reporting, PHP INI tilde fixes, and per-command CLI shutdown #4082
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b7be43d
Quote auto_prepend_file so 8.3 short paths don't break PHP's INI parsing
gavande1 3eec23e
Report one combined E2E GitHub status and fail canceled E2E jobs
gavande1 a7e3ffc
Enable Windows E2E with a timeout cap to verify the INI fix on a Wind…
gavande1 a68717e
Fix native PHP failing to serve on Windows CI (8.3 short-path tilde)
gcsecsey 40acdb8
Restore per-command CLI shutdown handling
gavande1 ee6a7c0
Address review: rename tmp-dir helper, drop redundant comments, final…
gavande1 31757df
Merge branch 'trunk' into fix-combined-e2e-status-and-ini-quoting
gavande1 7125696
Drop explanatory comments from CI config
gavande1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| import fs from 'node:fs'; | ||
| import os from 'node:os'; | ||
|
|
||
| // Returns `os.tmpdir()` resolved to its long-form path on Windows. | ||
| // | ||
| // When the OS account name is longer than 8 characters (e.g. CI's `buildkite-agent`), | ||
| // Windows exposes an 8.3 short name and `os.tmpdir()` can return something like | ||
| // `C:\Users\BUILDK~1\AppData\Local\Temp`. PHP's INI/argument scanner treats the `~` as a | ||
| // special token, so any temp path we hand to PHP — auto_prepend_file, opcache.file_cache, | ||
| // the phpMyAdmin config, … — breaks with `syntax error, unexpected '~'`. Resolving to the | ||
| // long form removes the tilde. No-op on macOS/Linux, which don't have 8.3 short names. | ||
| export function getFullyResolvedTmpDirPath(): string { | ||
| return process.platform === 'win32' ? fs.realpathSync.native( os.tmpdir() ) : os.tmpdir(); | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.