Skip to content

Commit 854b481

Browse files
committed
ci: scratch probe for jitter export determinism under suite load (not for merge)
1 parent 37d0158 commit 854b481

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

‎.github/workflows/jitter-probe.yml‎

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Jitter export determinism probe (scratch)
2+
3+
on:
4+
push:
5+
branches: [scratch/jitter-probe2]
6+
7+
permissions:
8+
contents: read
9+
10+
env:
11+
CARGO_TERM_COLOR: always
12+
CARGO_INCREMENTAL: "0"
13+
CAP_VERIFY_CARGO_PROFILE: ci-verify
14+
CAP_VERIFY_LOCKED: "1"
15+
CAP_VERIFY_TIER: full
16+
17+
jobs:
18+
probe:
19+
name: probe ${{ matrix.copy }}
20+
runs-on: blacksmith-6vcpu-macos-15
21+
timeout-minutes: 120
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
copy: [a, b]
26+
steps:
27+
- uses: actions/checkout@v4
28+
with:
29+
persist-credentials: false
30+
- name: Setup
31+
uses: ./.github/actions/engine-verify-setup
32+
with:
33+
target: aarch64-apple-darwin
34+
tier: full
35+
- name: Build
36+
run: scripts/verify/run.sh full --suites export --no-run
37+
- name: Repeat the 120 s jitter export alongside the whole export suite
38+
run: |
39+
set +e
40+
mkdir -p "$RUNNER_TEMP/probe"
41+
for i in $(seq 1 4); do
42+
export CAP_VERIFY_REPORT_DIR="$RUNNER_TEMP/probe/report-$i"
43+
cargo nextest run --cargo-profile ci-verify --locked -p cap-verify --test export --no-fail-fast \
44+
> "$RUNNER_TEMP/probe/log-$i.txt" 2>&1
45+
echo "rep $i: $(grep -h '"export/jitter-camera-120s/full/mp460/avf"' "$CAP_VERIFY_REPORT_DIR"/*.jsonl | grep -o 'nondeterministic: [^(]*\|camera: [0-9]* of [0-9]* frames wrong' | sort -u | tr '\n' ' ')"
46+
done
47+
true
48+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
49+
if: always()
50+
with:
51+
name: jitter-probe-${{ matrix.copy }}
52+
path: ${{ runner.temp }}/probe/**/*.jsonl
53+
retention-days: 7

0 commit comments

Comments
 (0)