Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
ci(verify): reuse suite build for isolated fixture preparation
Richie McIlroyc3d021376165
diff --git a/.github/workflows/engine-verify-os.yml b/.github/workflows/engine-verify-os.ymlindex 223fb8bcc..31120d237 100644--- a/.github/workflows/engine-verify-os.yml+++ b/.github/workflows/engine-verify-os.yml@@ -173,11 +173,9 @@ jobs:CAP_VERIFY_TIER: ${{ inputs.tier }}run: |if [[ "${{ inputs.archive }}" == true ]]; then- cargo-nextest nextest run --profile ci --archive-file "$RUNNER_TEMP/verify.tar.zst" --workspace-remap "$GITHUB_WORKSPACE" \- --run-ignored ignored-only -E 'binary_id(cap-verify::export) and test(=prepare_recorded_fixtures)'+ scripts/verify/run.sh "${{ inputs.tier }}" --suites "${{ inputs.suites }}" --prepare-fixtures --from-archive "$RUNNER_TEMP/verify.tar.zst"else- cargo nextest run --profile ci --cargo-profile ci-verify --locked -p cap-verify --test export \- --run-ignored ignored-only -E 'test(=prepare_recorded_fixtures)'+ scripts/verify/run.sh "${{ inputs.tier }}" --suites "${{ inputs.suites }}" --prepare-fixturesfi- name: Testdiff --git a/scripts/verify/run.sh b/scripts/verify/run.shindex 4b9471c8a..a1f8bf4f0 100755--- a/scripts/verify/run.sh+++ b/scripts/verify/run.sh@@ -30,6 +30,7 @@ suites=""mode=runarchive=""partition=""+prepare_fixtures=0extra=()while [[ $# -gt 0 ]]; docase "$1" in@@ -38,6 +39,7 @@ while [[ $# -gt 0 ]]; do--case) export CAP_VERIFY_CASE="$2"; shift ;;--list) mode=list ;;--no-run) mode=build ;;+ --prepare-fixtures) prepare_fixtures=1 ;;--archive) mode=archive; archive="$2"; shift ;;--from-archive) mode=from-archive; archive="$2"; shift ;;--partition) partition="$2"; shift ;;@@ -138,6 +140,10 @@ if [[ $have_nextest == 1 ]]; thenelserun+=(--cargo-profile "$profile" "${cargo_args[@]}")fi+ if [[ $prepare_fixtures == 1 ]]; then+ "${run[@]}" --run-ignored ignored-only -E 'binary_id(cap-verify::export) and test(=prepare_recorded_fixtures)'+ exit+ fishard=()[[ -n "$partition" ]] && shard=(--partition "$partition")"${run[@]}" ${shard[@]+"${shard[@]}"} -E "$filter" ${extra[@]+"${extra[@]}"} || status=$?@@ -159,6 +165,10 @@ for c in ET.parse(sys.argv[1]).getroot().iter("testcase"):print(c.get("classname"), c.get("name"), sep="\t")' "$CAP_VERIFY_REPORT_DIR/junit.xml" | head -n 5)fielse+ if [[ $prepare_fixtures == 1 ]]; then+ echo "--prepare-fixtures needs cargo-nextest" >&2+ exit 2+ fiecho "cargo-nextest not found: running suites one by one with cargo test (cargo install cargo-nextest --locked for parallel runs)"for name in $suite_names; doplan_one="$("$py" scripts/verify/plan.py select --tier "$tier" --platform "$platform" --suites "$name" --local)"