Skip to content

Commit ef51082

Browse files
committed
add skip_capture for offline verification in smoke test
1 parent f827d54 commit ef51082

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/performance.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,15 @@ jobs:
1414
- name: Checkout Code
1515
uses: actions/checkout@v4
1616

17+
- name: Prepare Dummy Profiles
18+
run: |
19+
mkdir -p artifacts/capture
20+
cp artifacts/capture/baseline.json artifacts/capture/current_profile.json
21+
1722
- name: Run Stylus Performance Check
1823
uses: ./
1924
with:
2025
tx_hash: "0xaaf333656d069068844d17f175fa5b73534c0b71599100bee2153791c3e81edc"
2126
rpc_url: "https://sepolia-rollup.arbitrum.io/rpc"
2227
threshold: "1"
28+
skip_capture: "true"

action.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ inputs:
2222
description: 'Use Stylus Ink units instead of Gas'
2323
required: false
2424
default: 'false'
25+
skip_capture:
26+
description: 'Skip the capture step (useful for testing with pre-existing profiles)'
27+
required: false
28+
default: 'false'
2529

2630
runs:
2731
using: "composite"
@@ -43,6 +47,16 @@ runs:
4347
- name: Capture Current Profile
4448
shell: bash
4549
run: |
50+
if [ "${{ inputs.skip_capture }}" = "true" ]; then
51+
echo "Skipping capture as requested. Ensuring profile exists..."
52+
mkdir -p artifacts/capture
53+
if [ ! -f "artifacts/capture/current_profile.json" ]; then
54+
echo "Error: current_profile.json not found but skip_capture is true"
55+
exit 1
56+
fi
57+
exit 0
58+
fi
59+
4660
INK_FLAG=""
4761
if [ "${{ inputs.ink }}" = "true" ]; then
4862
INK_FLAG="--ink"

0 commit comments

Comments
 (0)