|
| 1 | +# Verification probe for QwenLM/qwen-code#12864 (not for upstream): runs the |
| 2 | +# PR's new Windows "Hosted process suite" step, extracted verbatim from |
| 3 | +# ci.yml, on a GitHub-hosted windows-2022 runner, plus mutation arms. |
| 4 | +name: 'probe pr12864 windows' |
| 5 | +on: |
| 6 | + push: |
| 7 | + branches: ['probe/pr12864-**'] |
| 8 | +permissions: |
| 9 | + contents: 'read' |
| 10 | +defaults: |
| 11 | + run: |
| 12 | + shell: 'bash' |
| 13 | +jobs: |
| 14 | + windows: |
| 15 | + runs-on: 'windows-2022' |
| 16 | + timeout-minutes: 100 |
| 17 | + steps: |
| 18 | + - name: 'Checkout' |
| 19 | + uses: 'actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10' # v6.0.3 |
| 20 | + - name: 'Point temp at a short-alias-free directory' |
| 21 | + shell: 'powershell' |
| 22 | + run: |- |
| 23 | + $temp = Join-Path $env:RUNNER_WORKSPACE 'qwen-code-temp' |
| 24 | + New-Item -ItemType Directory -Force -Path $temp | Out-Null |
| 25 | + "TEMP=$temp" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
| 26 | + "TMP=$temp" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
| 27 | + Write-Host "TEMP set to $temp" |
| 28 | + - name: 'Set up Node.js 22.x (hosted)' |
| 29 | + uses: 'actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e' # v6.4.0 |
| 30 | + with: |
| 31 | + node-version: '22.x' |
| 32 | + package-manager-cache: false |
| 33 | + registry-url: 'https://registry.npmjs.org/' |
| 34 | + - name: 'Install dependencies' |
| 35 | + run: |- |
| 36 | + corepack pnpm install --frozen-lockfile --prefer-offline --reporter=append-only |
| 37 | + - name: 'Environment' |
| 38 | + run: |- |
| 39 | + node -v; git rev-parse HEAD; uname -a; echo "MSYSTEM=${MSYSTEM:-}"; ls -la dist/cli.js |
| 40 | + powershell -NoProfile -Command "(Get-CimInstance Win32_OperatingSystem).Caption + ' ' + (Get-CimInstance Win32_OperatingSystem).Version" |
| 41 | + - name: 'Extract the steps verbatim' |
| 42 | + run: |- |
| 43 | + node probe/extract-step.mjs .github/workflows/ci.yml test_windows 'Hosted process suite' probe/pr-step.sh |
| 44 | + node probe/extract-step.mjs probe/ci-main.yml test_windows 'Hosted portable process smoke' probe/main-step.sh |
| 45 | + - name: 'Run arms' |
| 46 | + run: 'bash probe/run-arms.sh' |
| 47 | + - name: 'Summary' |
| 48 | + if: 'always()' |
| 49 | + run: 'cat probe-out/summary.txt || true' |
| 50 | + - name: 'Upload' |
| 51 | + if: 'always()' |
| 52 | + uses: 'actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a' # v7.0.1 |
| 53 | + with: |
| 54 | + name: 'probe-out' |
| 55 | + path: 'probe-out/' |
0 commit comments