Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions .github/workflows/qs-d3-soft-layer-chain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: QS d = 3 soft-layer chain (A3-A3.6) replay
pull_request:
paths:
- 'frontiers/qs_d3_soft_layer_chain_20261005/**'
- 'tests/test_qs_d3_replay_protocol.py'
- '.github/workflows/qs-d3-soft-layer-chain.yml'
workflow_dispatch:

Expand All @@ -26,11 +27,35 @@ jobs:
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
with:
python-version: '3.11.16'
- name: Verify stored identities, extractions and replay the eight published author controls
- name: Verify protocol, stored identities, extractions and all published controls
env:
PYTHONDONTWRITEBYTECODE: '1'
shell: bash
run: |
set -euo pipefail
python ${{ matrix.mode }} frontiers/qs_d3_soft_layer_chain_20261005/replay.py
out="$RUNNER_TEMP/qs-replay-evidence"
mkdir -p "$out/logs"
python ${{ matrix.mode }} -m unittest discover -s tests -p test_qs_d3_replay_protocol.py -v 2>&1 | tee "$out/logs/protocol.txt"
python ${{ matrix.mode }} frontiers/qs_d3_soft_layer_chain_20261005/replay.py 2>&1 | tee "$out/logs/replay.txt"
git diff --exit-code
test -z "$(git status --porcelain)"
- name: Preserve exact public sources and available execution logs
if: always()
shell: bash
run: |
set -euo pipefail
out="$RUNNER_TEMP/qs-replay-evidence"
mkdir -p "$out"
cp -a frontiers/qs_d3_soft_layer_chain_20261005 "$out/packet"
cp tests/test_qs_d3_replay_protocol.py "$out/"
cp .github/workflows/qs-d3-soft-layer-chain.yml "$out/"
git rev-parse HEAD > "$out/tested_commit.txt"
printf '%s\n' '${{ matrix.mode }}' > "$out/mode.txt"
printf '%s\n' "$GITHUB_RUN_ID/$GITHUB_RUN_ATTEMPT" > "$out/run.txt"
- name: Retain evidence on success or failure
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: qs-replay-${{ strategy.job-index }}-${{ github.run_id }}-${{ github.run_attempt }}
path: ${{ runner.temp }}/qs-replay-evidence/
if-no-files-found: error
Loading
Loading