-
Notifications
You must be signed in to change notification settings - Fork 3.1k
ci: run Windows merge queue tests on ECS #8386
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
36 commits
Select commit
Hold shift + click to select a range
118f43f
ci: run Windows merge queue tests on ECS
yiliang114 d3f2562
test(channels): skip POSIX mode assertion on Windows
yiliang114 dd5c351
ci: expose Git Bash on Windows ECS runner
yiliang114 fd822ea
ci: scope Windows ECS tuning to self-hosted and restore full test:ci
qwen-code-dev-bot 439e082
Merge remote-tracking branch 'origin/main' into codex/use-windows-ecs…
yiliang114 980c813
test: make Windows CI suites platform-aware
yiliang114 81731e0
Merge remote-tracking branch 'origin/main' into codex/use-windows-ecs…
yiliang114 40ed11e
ci: add stale-checkout guard to Windows ECS test job
yiliang114 e2eab52
test(core): compare canonical directory identity
yiliang114 dfd5d86
ci: add fork guard and review follow-ups to Windows ECS job
qwen-code-ci-bot 75f6275
Merge branch 'codex/use-windows-ecs-runner' of https://github.com/Qwe…
qwen-code-dev-bot b321c50
test(core): exercise real directory identity change
yiliang114 3730fcf
test(core): wait for killed lease process exit
yiliang114 5f3af1b
test(scripts): avoid cmd echo trailing spaces
yiliang114 7cccd93
test(scripts): use unambiguous cmd echo syntax
yiliang114 6d5061d
test(cli): avoid sidecar I/O in truncation test
yiliang114 5fe19a8
test: fix Windows script-suite gaps and unify platform gating
yiliang114 2a67f0f
test(scripts): restore Windows workflow coverage
yiliang114 40c7561
test(scripts): re-exclude Windows-incompatible workflow tests on win32
yiliang114 945c979
ci: extract checkout-head guard into composite action, pin Windows ga…
yiliang114 2653d68
ci: fail fast in Windows gate environment setup (#8386)
github-actions[bot] 1448cb2
ci: dedupe self-hosted runner steps into actions, pin gate mutations …
github-actions[bot] 37de972
Merge branch 'main' into codex/use-windows-ecs-runner
yiliang114 ec91383
fix(ci): checkout before repository-local actions in Windows gates (#…
github-actions[bot] 632a229
Merge remote-tracking branch 'origin/main' into codex/use-windows-ecs…
yiliang114 533b7af
fix(ci): configure Windows runner before bash guard
yiliang114 24decae
test(ci): pin remaining shared-action wiring in script tests (#8386)
qwen-code-ci-bot d8cfa26
fix(ci): skip zip-dependent packaging tests when zip is missing (#8386)
qwen-code-ci-bot a2a4ebc
Merge branch 'main' into codex/use-windows-ecs-runner
yiliang114 308902b
Merge branch 'codex/use-windows-ecs-runner' of https://github.com/Qwe…
qwen-code-dev-bot 4982a3f
Merge remote-tracking branch 'origin/main' into HEAD
yiliang114 fd3a25c
fix(ci): validate full Windows smoke path
yiliang114 2988ed0
fix(ci): match Windows smoke shell to gate and drop dead runs-on guar…
qwen-code-dev-bot dcdddb0
fix(ci): make SIGTERM escalation test Windows-aware and tighten pins …
qwen-code-dev-bot e6d5b34
Merge remote-tracking branch 'origin/main' into codex/use-windows-ecs…
yiliang114 c9ac158
docs(ci): clarify Windows runner trust boundary
yiliang114 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| name: 'Configure Windows self-hosted runner' | ||
| description: 'Tunes a self-hosted Windows runner for the test gates: exports the Linux gates'' C.UTF-8 locale env (inert on Windows, where Node collates through ICU), redirects TEMP/TMP to RUNNER_TEMP, and puts Git Bash on PATH for bash-shell steps. Runs after actions/checkout because repository-local actions resolve from the workspace; callers turn off autocrlf before the checkout itself. Shared by the Windows merge-queue gate and the runner smoke workflow so both always run an identical configuration.' | ||
|
|
||
| runs: | ||
| using: 'composite' | ||
| steps: | ||
| - name: 'Configure Windows test environment' | ||
| # Self-hosted runners have Windows PowerShell, not necessarily pwsh. | ||
| # Force UTF-8 so GITHUB_ENV/GITHUB_PATH are not written as UTF-16LE. | ||
| shell: 'powershell' | ||
| run: |- | ||
| $ErrorActionPreference = 'Stop' | ||
| "TEMP=$env:RUNNER_TEMP" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | ||
| "TMP=$env:RUNNER_TEMP" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | ||
| "LC_ALL=C.UTF-8" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | ||
| $gitBash = 'C:\Program Files\Git\bin' | ||
| if (!(Test-Path $gitBash)) { | ||
| Write-Output "::error::Git Bash not found at $gitBash" | ||
| exit 1 | ||
| } | ||
| $gitBash | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append |
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,17 @@ | ||
| name: 'Self-hosted Node.js preflight' | ||
| description: 'Preflight for self-hosted runners that reuse their pre-installed Node.js instead of downloading one on ECS, where nodejs.org may be unreachable through the egress proxy: fails the job when Node is missing and warns when the major version is not 22.' | ||
|
|
||
| runs: | ||
| using: 'composite' | ||
| steps: | ||
| - name: 'Use pre-installed Node.js' | ||
| shell: 'bash' | ||
| run: |- | ||
| if ! command -v node >/dev/null 2>&1; then | ||
| echo "::error::Node.js is not on PATH for this self-hosted runner. Provision Node 22.x or set the MAINTAINER_ECS_RUNNER_DISABLED repository variable to 'true' to route this gate back to hosted runners." | ||
| exit 1 | ||
| fi | ||
| echo "Using pre-installed Node $(node -v) / npm $(npm -v)" | ||
| if [[ "$(node -p 'process.versions.node.split(".")[0]')" != "22" ]]; then | ||
| echo "::warning::Expected Node 22.x but found $(node -v); tests will run against the runner's Node." | ||
| fi | ||
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,21 @@ | ||
| name: 'Verify Checkout Head' | ||
| description: 'Fails the job when the checked-out tree does not contain the expected head commit, so a stale checkout (e.g. a caching egress proxy serving an old ref) is never silently tested into a merge. Cheap: one merge-base, sub-second.' | ||
|
|
||
| inputs: | ||
| expected_sha: | ||
| description: 'Commit SHA that must be an ancestor of the checked-out HEAD.' | ||
| required: true | ||
|
|
||
| runs: | ||
| using: 'composite' | ||
| steps: | ||
| - name: 'Verify checkout includes expected head commit' | ||
| shell: 'bash' | ||
| env: | ||
| EXPECTED_SHA: '${{ inputs.expected_sha }}' | ||
| run: |- | ||
| if ! git merge-base --is-ancestor "${EXPECTED_SHA}" HEAD; then | ||
| echo "::error::Checked out ref does not contain expected head ${EXPECTED_SHA}." | ||
| git log --oneline --decorate -5 | ||
| exit 1 | ||
| fi |
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
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.