|
| 1 | +name: AVF unreadable attribution probe (scratch) |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [scratch/avf-attr-probe] |
| 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.config }} |
| 20 | + runs-on: macos-15 |
| 21 | + timeout-minutes: 120 |
| 22 | + strategy: |
| 23 | + fail-fast: false |
| 24 | + matrix: |
| 25 | + config: [base, iosurface, decoder] |
| 26 | + steps: |
| 27 | + - uses: actions/checkout@v4 |
| 28 | + with: |
| 29 | + persist-credentials: false |
| 30 | + - name: Apply product patch |
| 31 | + if: matrix.config != 'base' |
| 32 | + run: | |
| 33 | + case "${{ matrix.config }}" in |
| 34 | + iosurface) git apply probe-patches/iosurface.patch ;; |
| 35 | + decoder) git apply probe-patches/decoder2595.patch ;; |
| 36 | + esac |
| 37 | + git diff --stat |
| 38 | + - name: Setup |
| 39 | + uses: ./.github/actions/engine-verify-setup |
| 40 | + with: |
| 41 | + target: aarch64-apple-darwin |
| 42 | + tier: full |
| 43 | + - name: Build |
| 44 | + run: scripts/verify/run.sh full --suites export,audio --no-run |
| 45 | + - name: Repeat cases |
| 46 | + run: | |
| 47 | + set +e |
| 48 | + mkdir -p "$RUNNER_TEMP/probe" |
| 49 | + summary() { |
| 50 | + cat "$1"/*.jsonl 2>/dev/null | python3 -c ' |
| 51 | + import sys, json |
| 52 | + for l in sys.stdin: |
| 53 | + r = json.loads(l) |
| 54 | + print(" ", r["outcome"], r["case"], sorted(r["failures"]), "|", r["summary"][:160].replace("\n", " "))' |
| 55 | + } |
| 56 | + run() { |
| 57 | + local name="$1" test="$2" case="$3" reps="$4" |
| 58 | + for i in $(seq 1 "$reps"); do |
| 59 | + export CAP_VERIFY_REPORT_DIR="$RUNNER_TEMP/probe/$name-$i" |
| 60 | + CAP_VERIFY_CASE="$case" cargo nextest run --cargo-profile ci-verify --locked -p cap-verify --test "$test" --no-fail-fast \ |
| 61 | + > "$RUNNER_TEMP/probe/$name-$i.log" 2>&1 |
| 62 | + echo "$name rep $i" |
| 63 | + summary "$CAP_VERIFY_REPORT_DIR" |
| 64 | + done |
| 65 | + } |
| 66 | + run campts export 'export/camera-pts-late/full/mp430/avf' 12 |
| 67 | + run jitter export 'export/jitter-camera-120s/full/mp460/avf' 6 |
| 68 | + run crossfade audio 'audio/audio-mix-30s-a2/long-crossfade/mp4-*' 4 |
| 69 | + true |
| 70 | + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 |
| 71 | + if: always() |
| 72 | + with: |
| 73 | + name: avf-attr-probe-${{ matrix.config }} |
| 74 | + path: ${{ runner.temp }}/probe/**/*.jsonl |
| 75 | + retention-days: 7 |
0 commit comments