|
| 1 | +name: Verify merged standalone updater on main |
| 2 | +on: |
| 3 | + push: |
| 4 | + branches: [qualify/611-merged-main] |
| 5 | + paths: ['.github/workflows/qualify-611-merged.yml'] |
| 6 | +permissions: |
| 7 | + contents: read |
| 8 | + statuses: write |
| 9 | +jobs: |
| 10 | + native: |
| 11 | + strategy: |
| 12 | + fail-fast: false |
| 13 | + matrix: |
| 14 | + os: [ubuntu-24.04] |
| 15 | + runs-on: ${{ matrix.os }} |
| 16 | + timeout-minutes: 75 |
| 17 | + defaults: |
| 18 | + run: |
| 19 | + shell: bash |
| 20 | + steps: |
| 21 | + - uses: actions/checkout@v5 |
| 22 | + with: |
| 23 | + persist-credentials: false |
| 24 | + - uses: actions/checkout@v5 |
| 25 | + with: |
| 26 | + path: candidate |
| 27 | + ref: 5b4e998b0fb5138a985b4988425a118d34378d65 |
| 28 | + persist-credentials: false |
| 29 | + - uses: dtolnay/rust-toolchain@1.100.0 |
| 30 | + - if: runner.os == 'Linux' |
| 31 | + run: sudo apt-get update && sudo apt-get install -y tmux pkg-config libasound2-dev |
| 32 | + - uses: actions/cache/restore@v5 |
| 33 | + if: runner.os == 'Linux' |
| 34 | + with: |
| 35 | + path: | |
| 36 | + ~/.cargo/registry |
| 37 | + ~/.cargo/git |
| 38 | + key: tui-tests-registry-${{ hashFiles('candidate/src-rust/Cargo.lock') }} |
| 39 | + - name: Build exact candidate |
| 40 | + working-directory: candidate/src-rust |
| 41 | + run: | |
| 42 | + test "$(git rev-parse HEAD)" = 5b4e998b0fb5138a985b4988425a118d34378d65 |
| 43 | + cargo build --locked --package claurst --bin coven-code |
| 44 | + mkdir -p ../../binaries/exact |
| 45 | + if [[ "$RUNNER_OS" = Windows ]]; then cp target/debug/coven-code.exe ../../binaries/exact/; else cp target/debug/coven-code ../../binaries/exact/; fi |
| 46 | + - name: Build disposable older version with loopback release URLs |
| 47 | + working-directory: candidate |
| 48 | + run: | |
| 49 | + python scripts/bump-version.py v0.9.2 |
| 50 | + python - <<'PY' |
| 51 | + from pathlib import Path |
| 52 | + for f,a,b in [('commands/src/lib.rs','https://api.github.com/repos/{COVEN_CODE_REPO}/releases/latest','http://127.0.0.1:41611/repos/{COVEN_CODE_REPO}/releases/latest'),('cli/src/upgrade.rs','https://github.com/{REPO}/releases/download/v{target_version}','http://127.0.0.1:41611/{REPO}/releases/download/v{target_version}')]: |
| 53 | + p=Path('src-rust/crates')/f;s=p.read_text();assert s.count(a)==1;p.write_text(s.replace(a,b)) |
| 54 | + PY |
| 55 | + cd src-rust |
| 56 | + cargo build --locked --package claurst --bin coven-code |
| 57 | + mkdir -p ../../binaries/fixture |
| 58 | + if [[ "$RUNNER_OS" = Windows ]]; then cp target/debug/coven-code.exe ../../binaries/fixture/; else cp target/debug/coven-code ../../binaries/fixture/; fi |
| 59 | + - uses: actions/upload-artifact@v4 |
| 60 | + if: runner.os == 'Windows' |
| 61 | + with: |
| 62 | + name: windows-611-native-fixtures |
| 63 | + path: binaries |
| 64 | + retention-days: 7 |
| 65 | + - name: Run Classic and Next in native terminals |
| 66 | + if: runner.os == 'Linux' |
| 67 | + run: | |
| 68 | + mkdir /tmp/u611mat /tmp/u611act /tmp/u611assets |
| 69 | + cd /tmp/u611assets |
| 70 | + for f in SHA256SUMS coven-code-linux-x86_64.tar.gz; do curl -fsSLO "https://github.com/OpenCoven/coven-code/releases/download/v0.9.3/$f"; done |
| 71 | + grep 'coven-code-linux-x86_64.tar.gz' SHA256SUMS | sha256sum -c - |
| 72 | + cd "$GITHUB_WORKSPACE" |
| 73 | + python3 qualification/611/active.py /tmp/u611act binaries/exact/coven-code |
| 74 | + python3 qualification/611/matrix.py /tmp/u611mat binaries/fixture/coven-code /tmp/u611assets coven-code-linux-x86_64.tar.gz |
| 75 | + - name: Report qualification step result |
| 76 | + if: always() |
| 77 | + env: |
| 78 | + GH_TOKEN: ${{ github.token }} |
| 79 | + RESULT: ${{ job.status }} |
| 80 | + run: | |
| 81 | + state=failure |
| 82 | + if [[ "$RESULT" = success ]]; then state=success; fi |
| 83 | + gh api -X POST "repos/$GITHUB_REPOSITORY/statuses/$GITHUB_SHA" -f state="$state" -f context="native-611-$RUNNER_OS" -f target_url="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" |
0 commit comments