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
23 changes: 7 additions & 16 deletions .github/workflows/installed_plugin_probe_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -321,18 +321,14 @@ jobs:
done
test "$ready" = 1
xdpyinfo > "$PERF_POSIX_ROOT/display.txt"
for binding in integration framework; do
run_name=run
if [ "$binding" = framework ]; then run_name=framework-run; fi
python3 tool/perf_probe/run_perf_probe_posix.py \
--mode profile --cache-state cold --scenario-set pdf-reader --binding-mode "$binding" \
python3 tool/perf_probe/run_perf_probe_posix.py \
--mode profile --cache-state cold --scenario-set pdf-reader --binding-mode framework \
--pdf-case "$PERF_POSIX_ROOT/case-input.json" \
--warmup 0 --repetitions 1 --launches 1 --display-mode xvfb \
--hardware-id "$GITHUB_RUN_ID-$GITHUB_RUN_ATTEMPT-linux-${{ matrix.arch }}-bookworm-xvfb" \
--build-timeout-seconds 1200 --timeout-seconds 180 \
--output "$PERF_POSIX_ROOT/$run_name" \
2>&1 | tee "$PERF_POSIX_ROOT/$run_name.log"
done
--output "$PERF_POSIX_ROOT/framework-run" \
2>&1 | tee "$PERF_POSIX_ROOT/framework-run.log"
python3 tool/perf_probe/run_perf_probe_posix.py \
--mode profile --cache-state cold --scenario-set pdf-multi-window --binding-mode framework \
--pdf-case "$PERF_POSIX_ROOT/multi-window-case.json" \
Expand All @@ -342,13 +338,9 @@ jobs:
--output "$PERF_POSIX_ROOT/multi-window-run" \
2>&1 | tee "$PERF_POSIX_ROOT/multi-window-run.log"
SESSION
for binding in integration framework; do
run_name=run
if [ "$binding" = framework ]; then run_name=framework-run; fi
python3 tool/perf_probe/validate_perf_probe_smoke.py \
--root "$PERF_POSIX_ROOT/$run_name" --binding-mode "$binding" --platform linux --commit "$GITHUB_SHA" \
| tee "$PERF_POSIX_ROOT/verified-$binding.json"
done
python3 tool/perf_probe/validate_perf_probe_smoke.py \
--root "$PERF_POSIX_ROOT/framework-run" --binding-mode framework --platform linux --commit "$GITHUB_SHA" \
| tee "$PERF_POSIX_ROOT/verified-framework.json"
dart tool/perf_probe/validate_pdf_multi_window.dart \
--root "$PERF_POSIX_ROOT/multi-window-run" \
--platform linux --mode profile --commit "$GITHUB_SHA" \
Expand All @@ -370,7 +362,6 @@ jobs:
${{ env.PERF_POSIX_ROOT }}/**/*.txt
${{ env.PERF_POSIX_ROOT }}/multi-window-run/launch-*/pdf-multi-window-*/*.pdf
${{ env.PERF_POSIX_ROOT }}/multi-window-run/launch-*/pdf-multi-window-*/*.png
!${{ env.PERF_POSIX_ROOT }}/run/data/**
!${{ env.PERF_POSIX_ROOT }}/framework-run/data/**
!${{ env.PERF_POSIX_ROOT }}/multi-window-run/data/**

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/perf_probe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ jobs:
fail-fast: false
matrix:
scenario: ${{ fromJSON(github.event_name == 'pull_request' && '["pdf-reader","pdf-book-view"]' || format('["{0}"]', inputs.scenario_set || 'all')) }}
binding_mode: ${{ fromJSON(github.event_name == 'pull_request' && '["integration","framework"]' || format('["{0}"]', inputs.binding_mode || 'integration')) }}
binding_mode: ${{ fromJSON(github.event_name == 'pull_request' && '["framework"]' || format('["{0}"]', inputs.binding_mode || 'integration')) }}
include: ${{ fromJSON(github.event_name == 'pull_request' && '[{"scenario":"pdf-multi-window","binding_mode":"framework","mode":"profile"},{"scenario":"pdf-multi-window","binding_mode":"framework","mode":"release"}]' || '[]') }}
needs: gate
if: needs.gate.outputs.run == 'true'
Expand Down
36 changes: 11 additions & 25 deletions .github/workflows/perf_probe_paired.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
- 'tool/perf_probe/paired_pdf_case.py'
- 'tool/perf_probe/test_paired_pdf_case.py'
- 'tool/perf_probe/prepare_pair_ci_case.dart'
- 'tool/perf_probe/pdf_layout_pair.json'
- 'tool/perf_probe/posix_engine.py'
- 'tool/perf_probe/test_posix_engine.py'
- 'tool/perf_probe/run_perf_probe_posix.py'
Expand Down Expand Up @@ -81,11 +80,11 @@ jobs:
pair:
name: Same Windows host (${{ matrix.cache }}, ${{ inputs.mode || 'profile' }})
needs: [gate, contracts]
if: needs.gate.outputs.run == 'true'
if: github.event_name == 'workflow_dispatch' && needs.gate.outputs.run == 'true'
strategy:
fail-fast: false
matrix:
cache: ${{ fromJSON(github.event_name == 'pull_request' && '["cold","warm"]' || format('["{0}"]', inputs.cache_state || 'cold')) }}
cache: ['${{ inputs.cache_state }}']
runs-on: windows-2025
timeout-minutes: 120
steps:
Expand Down Expand Up @@ -126,16 +125,10 @@ jobs:
$arguments = @('tool/perf_probe/run_pdf_pair.py', '--output', (Join-Path $env:RUNNER_TEMP 'pdf-pair'),
'--mode', $env:PAIR_MODE, '--cache-state', $env:PAIR_CACHE, '--scenario', $env:PAIR_SCENARIO,
'--pdf-case', (Join-Path $env:RUNNER_TEMP 'pdf-pair-corpus/case.json'), '--launches', $env:PAIR_LAUNCHES,
'--repetitions', $env:PAIR_REPETITIONS, '--order', $env:PAIR_ORDER)
if ($env:PAIR_BASELINE -or $env:PAIR_CANDIDATE) {
$commits = @($env:PAIR_BASELINE, $env:PAIR_CANDIDATE)
$repository = $env:GITHUB_REPOSITORY
$arguments += @('--baseline', $env:PAIR_BASELINE, '--candidate', $env:PAIR_CANDIDATE)
} else {
$experiment = Get-Content tool/perf_probe/pdf_layout_pair.json -Raw | ConvertFrom-Json
$commits = @($experiment.baseline, $experiment.candidate)
$repository = $experiment.repository
}
'--repetitions', $env:PAIR_REPETITIONS, '--order', $env:PAIR_ORDER,
'--baseline', $env:PAIR_BASELINE, '--candidate', $env:PAIR_CANDIDATE)
$commits = @($env:PAIR_BASELINE, $env:PAIR_CANDIDATE)
$repository = $env:GITHUB_REPOSITORY
if ($repository -cnotmatch '^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$') { throw 'Invalid source repository.' }
foreach ($commit in $commits) {
if ($commit -cnotmatch '^[a-f0-9]{40}$') { throw 'Both sources must be full immutable commit SHAs.' }
Expand Down Expand Up @@ -168,7 +161,7 @@ jobs:
posix_pair:
name: Same ${{ matrix.platform.name }} host (${{ matrix.cache }}, ${{ inputs.mode || 'profile' }})
needs: [gate, contracts]
if: needs.gate.outputs.run == 'true'
if: github.event_name == 'workflow_dispatch' && needs.gate.outputs.run == 'true'
strategy:
fail-fast: false
matrix:
Expand All @@ -179,7 +172,7 @@ jobs:
- name: macOS
runner: macos-latest
container: ''
cache: ${{ fromJSON(github.event_name == 'pull_request' && '["cold","warm"]' || format('["{0}"]', inputs.cache_state || 'cold')) }}
cache: ['${{ inputs.cache_state }}']
runs-on: ${{ matrix.platform.runner }}
container: ${{ matrix.platform.container }}
timeout-minutes: 120
Expand Down Expand Up @@ -269,13 +262,9 @@ jobs:
python3 -B -m unittest tool.perf_probe.test_pdf_pair \
tool.perf_probe.test_paired_pdf_case tool.perf_probe.test_posix_engine tool.perf_probe.test_perf_probe_posix -v
python3 -B - <<'PY'
import json, os, pathlib, re, subprocess
import os, re, subprocess
baseline, candidate = os.environ['PAIR_BASELINE'], os.environ['PAIR_CANDIDATE']
if baseline or candidate:
repository = os.environ['GITHUB_REPOSITORY']
else:
experiment = json.loads(pathlib.Path('tool/perf_probe/pdf_layout_pair.json').read_text())
repository, baseline, candidate = (experiment[k] for k in ('repository', 'baseline', 'candidate'))
repository = os.environ['GITHUB_REPOSITORY']
if not re.fullmatch(r'[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+', repository):
raise SystemExit('Invalid source repository')
for commit in (baseline, candidate):
Expand All @@ -292,10 +281,7 @@ jobs:
arguments=(tool/perf_probe/run_pdf_pair.py --output "$RUNNER_TEMP/pdf-pair"
--mode "$PAIR_MODE" --cache-state "$PAIR_CACHE" --scenario "$PAIR_SCENARIO"
--pdf-case "$RUNNER_TEMP/pdf-pair-corpus/case.json" --launches "$PAIR_LAUNCHES" --repetitions "$PAIR_REPETITIONS"
--order "$PAIR_ORDER")
if [ -n "$PAIR_BASELINE" ] || [ -n "$PAIR_CANDIDATE" ]; then
arguments+=(--baseline "$PAIR_BASELINE" --candidate "$PAIR_CANDIDATE")
fi
--order "$PAIR_ORDER" --baseline "$PAIR_BASELINE" --candidate "$PAIR_CANDIDATE")
if [ "$RUNNER_OS" = Linux ]; then
arguments+=(--display-mode xvfb)
mkdir -p "$RUNNER_TEMP/pdf-pair-session/runtime"
Expand Down
23 changes: 7 additions & 16 deletions .github/workflows/webview_apple_smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -263,25 +263,17 @@ jobs:
2>&1 | tee "$PERF_POSIX_ROOT/contracts.log"
printf '%s\n' '{"schemaVersion":1,"source":{"kind":"generated","pageCount":600}}' \
> "$PERF_POSIX_ROOT/case-input.json"
for binding in integration framework; do
run_name=run
if [ "$binding" = framework ]; then run_name=framework-run; fi
python3 tool/perf_probe/run_perf_probe_posix.py \
--mode profile --cache-state cold --scenario-set pdf-reader --binding-mode "$binding" \
python3 tool/perf_probe/run_perf_probe_posix.py \
--mode profile --cache-state cold --scenario-set pdf-reader --binding-mode framework \
--pdf-case "$PERF_POSIX_ROOT/case-input.json" \
--warmup 0 --repetitions 1 --launches 1 --display-mode desktop \
--hardware-id "$GITHUB_RUN_ID-$GITHUB_RUN_ATTEMPT-macos-desktop" \
--build-timeout-seconds 1200 --timeout-seconds 180 \
--output "$PERF_POSIX_ROOT/$run_name" \
2>&1 | tee "$PERF_POSIX_ROOT/$run_name.log"
done
for binding in integration framework; do
run_name=run
if [ "$binding" = framework ]; then run_name=framework-run; fi
python3 tool/perf_probe/validate_perf_probe_smoke.py \
--root "$PERF_POSIX_ROOT/$run_name" --binding-mode "$binding" --platform macos --commit "$GITHUB_SHA" \
| tee "$PERF_POSIX_ROOT/verified-$binding.json"
done
--output "$PERF_POSIX_ROOT/framework-run" \
2>&1 | tee "$PERF_POSIX_ROOT/framework-run.log"
python3 tool/perf_probe/validate_perf_probe_smoke.py \
--root "$PERF_POSIX_ROOT/framework-run" --binding-mode framework --platform macos --commit "$GITHUB_SHA" \
| tee "$PERF_POSIX_ROOT/verified-framework.json"
printf '%s\n' '{"schemaVersion":1,"source":{"kind":"generated","pageCount":10}}' \
> "$PERF_POSIX_ROOT/multi-window-case.json"
python3 tool/perf_probe/run_perf_probe_posix.py \
Expand Down Expand Up @@ -313,7 +305,6 @@ jobs:
${{ env.PERF_POSIX_ROOT }}/**/*.txt
${{ env.PERF_POSIX_ROOT }}/multi-window-run/launch-*/pdf-multi-window-*/*.pdf
${{ env.PERF_POSIX_ROOT }}/multi-window-run/launch-*/pdf-multi-window-*/*.png
!${{ env.PERF_POSIX_ROOT }}/run/data/**
!${{ env.PERF_POSIX_ROOT }}/framework-run/data/**
!${{ env.PERF_POSIX_ROOT }}/multi-window-run/data/**

Expand Down
169 changes: 0 additions & 169 deletions integration_test/pdf_bookview_idle_probe_test.dart

This file was deleted.

Loading
Loading