From 420814631eda1f70e6415e57df414cd3400a3f8d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 28 May 2026 05:27:43 +0000 Subject: [PATCH 1/3] Initial plan From c1a1fae5dc15cb24da23baec3c84060d9a09154c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 28 May 2026 05:31:41 +0000 Subject: [PATCH 2/3] Add workflow artifact smoke tests --- .github/workflows/buildDaily.yaml | 86 ++++++++++++++++++++++++++++++ .github/workflows/buildStable.yaml | 42 +++++++++++++++ 2 files changed, 128 insertions(+) diff --git a/.github/workflows/buildDaily.yaml b/.github/workflows/buildDaily.yaml index f2514eb..078d7ab 100644 --- a/.github/workflows/buildDaily.yaml +++ b/.github/workflows/buildDaily.yaml @@ -84,6 +84,13 @@ jobs: run : | mv nightly output + # ---------------------------- + - name: Upload build artifact + uses: actions/upload-artifact@v4 + with: + name: nightly-output + path: output/ + # ----------------------- - name: Copy build result #uses: openaf/ojob-action@v7 @@ -174,6 +181,13 @@ jobs: run : | mv t8 output + # ---------------------------- + - name: Upload build artifact + uses: actions/upload-artifact@v4 + with: + name: t8-output + path: output/ + # ----------------------- - name: Copy build result #uses: openaf/ojob-action@v7 @@ -215,3 +229,75 @@ jobs: # prefix : t8/ # bucket : oafsh # execute : true + + test-nightly: + runs-on: ubuntu-latest + needs : build-nightly + + steps: + - name: Download build artifact + uses: actions/download-artifact@v4 + with: + name: nightly-output + path: output + + - name: Prepare Linux smoke test + working-directory: output + run: | + chmod +x oaf-linux-x86_64 + ./oaf-linux-x86_64 --install + test -L ojob || test -x ojob + + - name: Smoke test Linux x86_64 version + working-directory: output + run: | + ./oaf -v | tee /tmp/oaf-version.txt + grep -Eq '[0-9]' /tmp/oaf-version.txt + + - name: Smoke test Linux x86_64 JavaScript execution + working-directory: output + run: | + ./oaf -c 'print("ok")' | tee /tmp/oaf-js.txt + grep -qx 'ok' /tmp/oaf-js.txt + + - name: Smoke test Alpine x86_64 artifact + working-directory: output + run: | + chmod +x oaf-alpine-x86_64 + docker run --rm -v "$PWD:/work" -w /work alpine:latest sh -lc './oaf-alpine-x86_64 --install && (test -L ojob || test -x ojob) && ./oaf -v' + + test-t8: + runs-on: ubuntu-latest + needs : build-t8 + + steps: + - name: Download build artifact + uses: actions/download-artifact@v4 + with: + name: t8-output + path: output + + - name: Prepare Linux smoke test + working-directory: output + run: | + chmod +x oaf-linux-x86_64 + ./oaf-linux-x86_64 --install + test -L ojob || test -x ojob + + - name: Smoke test Linux x86_64 version + working-directory: output + run: | + ./oaf -v | tee /tmp/oaf-version.txt + grep -Eq '[0-9]' /tmp/oaf-version.txt + + - name: Smoke test Linux x86_64 JavaScript execution + working-directory: output + run: | + ./oaf -c 'print("ok")' | tee /tmp/oaf-js.txt + grep -qx 'ok' /tmp/oaf-js.txt + + - name: Smoke test Alpine x86_64 artifact + working-directory: output + run: | + chmod +x oaf-alpine-x86_64 + docker run --rm -v "$PWD:/work" -w /work alpine:latest sh -lc './oaf-alpine-x86_64 --install && (test -L ojob || test -x ojob) && ./oaf -v' diff --git a/.github/workflows/buildStable.yaml b/.github/workflows/buildStable.yaml index f25942f..5b13fe8 100644 --- a/.github/workflows/buildStable.yaml +++ b/.github/workflows/buildStable.yaml @@ -83,6 +83,13 @@ jobs: mv oaf-* output /tmp/oaf/opack install S3 + # ---------------------------- + - name: Upload build artifact + uses: actions/upload-artifact@v4 + with: + name: stable-output + path: output/ + # ----------------------- - name: Copy build result #uses: openaf/ojob-action@v7 @@ -123,3 +130,38 @@ jobs: # bucket : oafsh # execute : true + test-stable: + runs-on: ubuntu-latest + needs : build-stable + + steps: + - name: Download build artifact + uses: actions/download-artifact@v4 + with: + name: stable-output + path: output + + - name: Prepare Linux smoke test + working-directory: output + run: | + chmod +x oaf-linux-x86_64 + ./oaf-linux-x86_64 --install + test -L ojob || test -x ojob + + - name: Smoke test Linux x86_64 version + working-directory: output + run: | + ./oaf -v | tee /tmp/oaf-version.txt + grep -Eq '[0-9]' /tmp/oaf-version.txt + + - name: Smoke test Linux x86_64 JavaScript execution + working-directory: output + run: | + ./oaf -c 'print("ok")' | tee /tmp/oaf-js.txt + grep -qx 'ok' /tmp/oaf-js.txt + + - name: Smoke test Alpine x86_64 artifact + working-directory: output + run: | + chmod +x oaf-alpine-x86_64 + docker run --rm -v "$PWD:/work" -w /work alpine:latest sh -lc './oaf-alpine-x86_64 --install && (test -L ojob || test -x ojob) && ./oaf -v' From 0579a3b125492304d0dae837e470a3d0566c3f31 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 28 May 2026 05:32:30 +0000 Subject: [PATCH 3/3] Tighten smoke test job permissions --- .github/workflows/buildDaily.yaml | 2 ++ .github/workflows/buildStable.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/buildDaily.yaml b/.github/workflows/buildDaily.yaml index 078d7ab..d2745a3 100644 --- a/.github/workflows/buildDaily.yaml +++ b/.github/workflows/buildDaily.yaml @@ -233,6 +233,7 @@ jobs: test-nightly: runs-on: ubuntu-latest needs : build-nightly + permissions: {} steps: - name: Download build artifact @@ -269,6 +270,7 @@ jobs: test-t8: runs-on: ubuntu-latest needs : build-t8 + permissions: {} steps: - name: Download build artifact diff --git a/.github/workflows/buildStable.yaml b/.github/workflows/buildStable.yaml index 5b13fe8..45c75dd 100644 --- a/.github/workflows/buildStable.yaml +++ b/.github/workflows/buildStable.yaml @@ -133,6 +133,7 @@ jobs: test-stable: runs-on: ubuntu-latest needs : build-stable + permissions: {} steps: - name: Download build artifact