Skip to content

Commit 848ca94

Browse files
author
Richie McIlroy
committed
scratch: round 2 (macOS Frameworks, playback mutations)
1 parent 09bf1f1 commit 848ca94

2 files changed

Lines changed: 41 additions & 18 deletions

File tree

‎.github/workflows/verify-mutation-runs.yml‎

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- ci/verify-mutation-runs
1111

1212
concurrency:
13-
group: verify-mutation-${{ github.ref_name }}
13+
group: verify-mutation-${{ github.sha }}
1414
cancel-in-progress: false
1515

1616
permissions:
@@ -32,21 +32,7 @@ jobs:
3232
fail-fast: false
3333
matrix:
3434
include:
35-
- { name: lin-01, runner: ubuntu-24.04, platform: linux, target: x86_64-unknown-linux-gnu, ids: "T01 T02 T03 T04" }
36-
- { name: lin-02, runner: ubuntu-24.04, platform: linux, target: x86_64-unknown-linux-gnu, ids: "T05 T06 T07 T08" }
37-
- { name: lin-03, runner: ubuntu-24.04, platform: linux, target: x86_64-unknown-linux-gnu, ids: "R01 R02 R03 R04" }
38-
- { name: lin-04, runner: ubuntu-24.04, platform: linux, target: x86_64-unknown-linux-gnu, ids: "R05 R06 R07 R08" }
39-
- { name: lin-05, runner: ubuntu-24.04, platform: linux, target: x86_64-unknown-linux-gnu, ids: "R09 R10 R11 E01" }
40-
- { name: lin-06, runner: ubuntu-24.04, platform: linux, target: x86_64-unknown-linux-gnu, ids: "E02 E03 E04 E05" }
41-
- { name: lin-07, runner: ubuntu-24.04, platform: linux, target: x86_64-unknown-linux-gnu, ids: "D01 D02 D03" }
42-
- { name: lin-08, runner: ubuntu-24.04, platform: linux, target: x86_64-unknown-linux-gnu, ids: "D04 D05 D06" }
43-
- { name: lin-09, runner: ubuntu-24.04, platform: linux, target: x86_64-unknown-linux-gnu, ids: "A01 A02 A03 A04" }
44-
- { name: lin-10, runner: ubuntu-24.04, platform: linux, target: x86_64-unknown-linux-gnu, ids: "A05 A06 A07 A08" }
45-
- { name: lin-11, runner: ubuntu-24.04, platform: linux, target: x86_64-unknown-linux-gnu, ids: "A09 A10 A11" }
46-
- { name: lin-12, runner: ubuntu-24.04, platform: linux, target: x86_64-unknown-linux-gnu, ids: "A12 A13 A14" }
47-
- { name: lin-13, runner: ubuntu-24.04, platform: linux, target: x86_64-unknown-linux-gnu, ids: "C01 C02 C03 C04 C05" }
48-
- { name: lin-14, runner: ubuntu-24.04, platform: linux, target: x86_64-unknown-linux-gnu, ids: "K01 K02 K03 K04 K05" }
49-
- { name: lin-fresh, runner: ubuntu-24.04, platform: linux, target: x86_64-unknown-linux-gnu, ids: "C01 C02 C03 C04 C05", fresh: true }
35+
- { name: lin-p, runner: ubuntu-24.04, platform: linux, target: x86_64-unknown-linux-gnu, ids: "P01 P02 R12" }
5036
- { name: mac-01, runner: macos-15, platform: macos, target: aarch64-apple-darwin, ids: "D01 D02 D07" }
5137
- { name: mac-02, runner: macos-15, platform: macos, target: aarch64-apple-darwin, ids: "D08 D09 D10" }
5238
- { name: mac-03, runner: macos-15, platform: macos, target: aarch64-apple-darwin, ids: "C01 C02 C03" }
@@ -76,6 +62,14 @@ jobs:
7662
if: runner.os == 'macOS'
7763
uses: ./.github/actions/install-desktop-deps
7864

65+
# Test binaries in target/ci-verify/deps load FFmpeg from
66+
# @executable_path/../Frameworks; setup.js only fills target/Frameworks.
67+
- name: Frameworks for the ci-verify profile (macOS)
68+
if: runner.os == 'macOS'
69+
run: |
70+
mkdir -p target/ci-verify
71+
ln -sfn "$GITHUB_WORKSPACE/target/Frameworks" target/ci-verify/Frameworks
72+
7973
- name: Mutations
8074
shell: bash
8175
run: |
@@ -103,14 +97,14 @@ jobs:
10397

10498
gpui:
10599
name: ${{ matrix.name }}
100+
if: false
106101
runs-on: ubuntu-24.04
107102
timeout-minutes: 300
108103
strategy:
109104
fail-fast: false
110105
matrix:
111106
include:
112-
- { name: gpui-01, ids: "U01 U02 U03 U04 U05 K06" }
113-
- { name: gpui-02, ids: "U06 U07 U08 U09 U10" }
107+
- { name: gpui-none, ids: "" }
114108
env:
115109
CARGO_PROFILE_DEV_DEBUG: "0"
116110
CARGO_INCREMENTAL: "1"

‎scripts/verify/mutation/mutations.py‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,3 +629,32 @@ def mutation(id, area, title, history, file, edits, platforms, suites=None, visi
629629
" progress((offset as f64 / file_size as f64).min(1.0));\n", 1)],
630630
["linux"], ["gpui"],
631631
)
632+
633+
# ---------------------------------------------------------------- editor real-time playback loop
634+
PB = "crates/editor/src/playback.rs"
635+
mutation(
636+
"P01", "playback", "playback prefetch decodes one frame ahead of the frame number it is stored under",
637+
"stale/shifted prefetch (play-start latency work, #2492)",
638+
PB,
639+
[(" let prefetch_time = frame_num as f64 / fps_f64;\n",
640+
" let prefetch_time = (frame_num + 1) as f64 / fps_f64;\n", 1)],
641+
["linux"],
642+
)
643+
mutation(
644+
"P02", "playback", "real-time playback renders transitions with the blend progress reversed",
645+
"transition blend weights (preview only)",
646+
PB,
647+
[(" progress: progress as f32,\n })\n}\n",
648+
" progress: 1.0 - progress as f32,\n })\n}\n", 1)],
649+
["linux"],
650+
)
651+
652+
mutation(
653+
"R12", "render", "export NV12 conversion drops the limited-range luma offset (picture 16 levels darker)",
654+
"colour range (full vs limited)",
655+
"crates/rendering/src/shaders/rgba_to_nv12.wgsl",
656+
[(" return u32(clamp(16.0 + 65.481 * r + 128.553 * g + 24.966 * b, 0.0, 255.0));\n",
657+
" return u32(clamp(65.481 * r + 128.553 * g + 24.966 * b, 0.0, 255.0));\n", 1)],
658+
["linux"],
659+
RENDER_ENGINE,
660+
)

0 commit comments

Comments
 (0)