|
1 | | -name: Hermes blockers workspace |
| 1 | +name: Stage tested Hermes blocker fixes |
2 | 2 | on: |
3 | 3 | push: |
4 | 4 | branches: [codex/hermes-blockers-workspace] |
5 | 5 | permissions: |
6 | | - contents: read |
| 6 | + contents: write |
7 | 7 | jobs: |
8 | | - snapshot: |
| 8 | + stage: |
9 | 9 | runs-on: blacksmith-4vcpu-ubuntu-2404 |
10 | 10 | timeout-minutes: 5 |
11 | 11 | steps: |
12 | 12 | - uses: actions/checkout@v7 |
13 | 13 | with: |
14 | | - ref: 5e1943d7e4c44d1d76fb032ddc5b2ddb951c965b |
15 | | - persist-credentials: false |
16 | | - - uses: actions/setup-node@v7 |
17 | | - with: |
18 | | - node-version: '24.x' |
19 | | - - name: Archive pinned source and real Metro fixtures |
| 14 | + fetch-depth: 0 |
| 15 | + persist-credentials: true |
| 16 | + - name: Apply hash-checked patch to the reviewed PR head |
20 | 17 | shell: bash |
21 | 18 | run: | |
22 | 19 | set -euo pipefail |
23 | | - root="$RUNNER_TEMP/hermes-blockers" |
24 | | - mkdir -p "$root/source" "$root/benchmark" "$root/modern17" |
25 | | - git archive HEAD | tar -x -C "$root/source" |
26 | | - curl --fail --location --retry 2 https://codeload.github.com/sunnylqm/hbc-diff-benchmark/tar.gz/e6a870a1c26c4b64c7860d7e1aa575707d22ad88 | tar -xz --strip-components=1 -C "$root/benchmark" |
27 | | - archive=$(npm pack hermes-compiler@250829098.0.17 --pack-destination "$RUNNER_TEMP" --silent) |
28 | | - tar -xzf "$RUNNER_TEMP/$archive" --strip-components=1 -C "$root/modern17" package/package.json package/hermesc/linux64-bin/hermesc |
29 | | - tar -czf "$RUNNER_TEMP/hermes-blockers.tgz" -C "$root" . |
30 | | - - uses: actions/upload-artifact@v7 |
31 | | - with: |
32 | | - name: hermes-blockers |
33 | | - path: ${{ runner.temp }}/hermes-blockers.tgz |
34 | | - retention-days: 1 |
35 | | - if-no-files-found: error |
| 20 | + base64 -d .hermes-blockers.patch.xz.b64 | xz -dc > "$RUNNER_TEMP/blockers.patch" |
| 21 | + echo "2deb181fe20425b6a92969cdda58b838f21b288e2f4ae9e9517e68ad5aeb0860 $RUNNER_TEMP/blockers.patch" | sha256sum --check |
| 22 | + git switch --detach 5e1943d7e4c44d1d76fb032ddc5b2ddb951c965b |
| 23 | + git apply --check --exclude=.github/workflows/test.yml "$RUNNER_TEMP/blockers.patch" |
| 24 | + git apply --index --exclude=.github/workflows/test.yml "$RUNNER_TEMP/blockers.patch" |
| 25 | + git diff --cached --check |
| 26 | + test "$(git diff --cached --name-only | wc -l)" -eq 7 |
| 27 | + test "$(git write-tree)" = 99d8588d27b297017713671515c7a30bcf8ae983 |
| 28 | + git config user.name 'github-actions[bot]' |
| 29 | + git config user.email '41898282+github-actions[bot]@users.noreply.github.com' |
| 30 | + git commit -m 'fix(hermes-base): accept empty functions and close failed debug dumps' |
| 31 | + git push origin HEAD:refs/heads/codex/hermes-blockers-staged |
| 32 | + git rev-parse HEAD HEAD^{tree} |
0 commit comments