From 233277d94bbc9f40f933f91648b51bafa595eeb1 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Thu, 2 Jul 2026 09:05:49 +0800 Subject: [PATCH] [Fix] (replay-trace) add Minecraft 26.2 vanilla fixtures --- .github/scripts/fetch-trace-fixture-lfs.sh | 6 +++++ .github/workflows/apk.yml | 24 +++++++++++++++++++ .github/workflows/test.yml | 2 ++ tools/trace_replay/CMakeLists.txt | 18 ++++++++++++++ tools/trace_replay/README.md | 4 ++++ .../minecraft-26.2-in-world.0000519370.png | 3 +++ .../fixtures/minecraft-26.2-in-world.tgz | 3 +++ .../minecraft-26.2-main-menu.0000259766.png | 3 +++ .../fixtures/minecraft-26.2-main-menu.tgz | 3 +++ tools/trace_replay/render_retrace_summary.mjs | 2 ++ .../trace_replay/run_android_retrace_local.py | 2 ++ 11 files changed, 70 insertions(+) create mode 100644 tools/trace_replay/fixtures/minecraft-26.2-in-world.0000519370.png create mode 100644 tools/trace_replay/fixtures/minecraft-26.2-in-world.tgz create mode 100644 tools/trace_replay/fixtures/minecraft-26.2-main-menu.0000259766.png create mode 100644 tools/trace_replay/fixtures/minecraft-26.2-main-menu.tgz diff --git a/.github/scripts/fetch-trace-fixture-lfs.sh b/.github/scripts/fetch-trace-fixture-lfs.sh index 300c05b8..88c1b726 100644 --- a/.github/scripts/fetch-trace-fixture-lfs.sh +++ b/.github/scripts/fetch-trace-fixture-lfs.sh @@ -38,6 +38,12 @@ case "${case_name}" in minecraft-1.21.4-fabric-sodium-in-world) add_standard_case "0000923340" ;; + minecraft-26.2-main-menu) + add_standard_case "0000259766" + ;; + minecraft-26.2-in-world) + add_standard_case "0000519370" + ;; minecraft-1.21.4-fabric-rei-inventory-normal-world) add_standard_case "0000734465" ;; diff --git a/.github/workflows/apk.yml b/.github/workflows/apk.yml index 8982323f..5b0465ef 100644 --- a/.github/workflows/apk.yml +++ b/.github/workflows/apk.yml @@ -212,6 +212,30 @@ jobs: crop_width: 0 crop_height: 0 timeout_seconds: 1800 + - name: minecraft-26.2-main-menu + trace_archive: tools/trace_replay/fixtures/minecraft-26.2-main-menu.tgz + trace_file: trace.trace + golden: tools/trace_replay/fixtures/minecraft-26.2-main-menu.0000259766.png + target_call: 259766 + width: 854 + height: 480 + crop_x: 0 + crop_y: 0 + crop_width: 0 + crop_height: 0 + timeout_seconds: 180 + - name: minecraft-26.2-in-world + trace_archive: tools/trace_replay/fixtures/minecraft-26.2-in-world.tgz + trace_file: trace.trace + golden: tools/trace_replay/fixtures/minecraft-26.2-in-world.0000519370.png + target_call: 519370 + width: 854 + height: 480 + crop_x: 0 + crop_y: 0 + crop_width: 0 + crop_height: 0 + timeout_seconds: 900 - name: minecraft-1.21.4-fabric-rei-inventory-normal-world trace_archive: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-rei-inventory-normal-world.tgz trace_file: trace.trace diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7d16c26e..f094bd0d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -348,6 +348,8 @@ jobs: - minecraft-1.21.4-main-menu - minecraft-1.21.4-in-world - minecraft-1.21.4-fabric-sodium-in-world + - minecraft-26.2-main-menu + - minecraft-26.2-in-world - minecraft-1.21.4-fabric-rei-inventory-normal-world - minecraft-1.21.4-fabric-xaero-minimap-in-world-normal-world - minecraft-1.21.4-fabric-xaero-world-map-in-world-normal-world diff --git a/tools/trace_replay/CMakeLists.txt b/tools/trace_replay/CMakeLists.txt index 4ae8c2c7..5de0910c 100644 --- a/tools/trace_replay/CMakeLists.txt +++ b/tools/trace_replay/CMakeLists.txt @@ -410,6 +410,24 @@ add_trace_replay_test_for_backends(minecraft-1.21.4-fabric-sodium-in-world HEIGHT 480 ) +add_trace_replay_test_for_backends(minecraft-26.2-main-menu + TRACE_ARCHIVE ${MOBILEGL_TRACE_ROOT}/fixtures/minecraft-26.2-main-menu.tgz + TRACE_FILE trace.trace + GOLDEN ${MOBILEGL_TRACE_ROOT}/fixtures/minecraft-26.2-main-menu.0000259766.png + TARGET_CALL 259766 + WIDTH 854 + HEIGHT 480 +) + +add_trace_replay_test_for_backends(minecraft-26.2-in-world + TRACE_ARCHIVE ${MOBILEGL_TRACE_ROOT}/fixtures/minecraft-26.2-in-world.tgz + TRACE_FILE trace.trace + GOLDEN ${MOBILEGL_TRACE_ROOT}/fixtures/minecraft-26.2-in-world.0000519370.png + TARGET_CALL 519370 + WIDTH 854 + HEIGHT 480 +) + add_trace_replay_test_for_backends(minecraft-1.21.4-fabric-common-mods-in-world TRACE_ARCHIVE ${MOBILEGL_TRACE_ROOT}/fixtures/minecraft-1.21.4-fabric-common-mods-in-world.tgz TRACE_FILE trace.trace diff --git a/tools/trace_replay/README.md b/tools/trace_replay/README.md index ba40442b..f0f4c105 100644 --- a/tools/trace_replay/README.md +++ b/tools/trace_replay/README.md @@ -16,6 +16,10 @@ The bundled fixtures cover: - minecraft-1.21.4-fabric-sodium-in-world: captured from Minecraft 1.21.4 Fabric with Sodium after entering a singleplayer world with Fancy graphics. ![Minecraft 1.21.4 Fabric Sodium in-world golden](fixtures/minecraft-1.21.4-fabric-sodium-in-world.0000923340.png) +- minecraft-26.2-main-menu: captured from Minecraft 26.2's main menu. + ![Minecraft 26.2 main menu golden](fixtures/minecraft-26.2-main-menu.0000259766.png) +- minecraft-26.2-in-world: captured from Minecraft 26.2 after entering a normal singleplayer world. + ![Minecraft 26.2 in-world golden](fixtures/minecraft-26.2-in-world.0000519370.png) - minecraft-1.21.4-fabric-common-mods-in-world: captured from Minecraft 1.21.4 Fabric with Sodium, Iris, REI, Xaero's Minimap, Xaero's World Map, JourneyMap, and Modern UI, with shader packs disabled. ![Minecraft 1.21.4 Fabric common mods in-world golden](fixtures/minecraft-1.21.4-fabric-common-mods-in-world.0000522084.png) diff --git a/tools/trace_replay/fixtures/minecraft-26.2-in-world.0000519370.png b/tools/trace_replay/fixtures/minecraft-26.2-in-world.0000519370.png new file mode 100644 index 00000000..b3201e02 --- /dev/null +++ b/tools/trace_replay/fixtures/minecraft-26.2-in-world.0000519370.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:591f1672c81ad364451b33aafe240ade2f992f6228dcb92d4b4466f564dd713d +size 101648 diff --git a/tools/trace_replay/fixtures/minecraft-26.2-in-world.tgz b/tools/trace_replay/fixtures/minecraft-26.2-in-world.tgz new file mode 100644 index 00000000..21c7d4c7 --- /dev/null +++ b/tools/trace_replay/fixtures/minecraft-26.2-in-world.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54a155a5e8fe51143cf936b84fb47e054d4e177f8ca19a8c1347f99901a41360 +size 13244500 diff --git a/tools/trace_replay/fixtures/minecraft-26.2-main-menu.0000259766.png b/tools/trace_replay/fixtures/minecraft-26.2-main-menu.0000259766.png new file mode 100644 index 00000000..8b5ab822 --- /dev/null +++ b/tools/trace_replay/fixtures/minecraft-26.2-main-menu.0000259766.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f28a1699cb74519944e0f6a3d4857d57245e2d8ff4734ba2b54bbb5f849be6c8 +size 312952 diff --git a/tools/trace_replay/fixtures/minecraft-26.2-main-menu.tgz b/tools/trace_replay/fixtures/minecraft-26.2-main-menu.tgz new file mode 100644 index 00000000..33883bca --- /dev/null +++ b/tools/trace_replay/fixtures/minecraft-26.2-main-menu.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:804dc8cc22101826f31628b80e489f164c1ad7b9016cdda3325c9080c5b3584b +size 8833836 diff --git a/tools/trace_replay/render_retrace_summary.mjs b/tools/trace_replay/render_retrace_summary.mjs index 793670e4..5730d60d 100644 --- a/tools/trace_replay/render_retrace_summary.mjs +++ b/tools/trace_replay/render_retrace_summary.mjs @@ -13,6 +13,8 @@ const CASES = [ "minecraft-1.21.4-main-menu", "minecraft-1.21.4-in-world", "minecraft-1.21.4-fabric-sodium-in-world", + "minecraft-26.2-main-menu", + "minecraft-26.2-in-world", "minecraft-1.21.4-fabric-rei-inventory-normal-world", "minecraft-1.21.4-fabric-xaero-minimap-in-world-normal-world", "minecraft-1.21.4-fabric-xaero-world-map-in-world-normal-world", diff --git a/tools/trace_replay/run_android_retrace_local.py b/tools/trace_replay/run_android_retrace_local.py index 2dca2e22..bb803212 100644 --- a/tools/trace_replay/run_android_retrace_local.py +++ b/tools/trace_replay/run_android_retrace_local.py @@ -48,6 +48,8 @@ CASES = [ {"name": "minecraft-1.21.4-main-menu", "golden": "minecraft-1.21.4-main-menu.0000481787.png", "alternate_golden": "minecraft-1.21.4-main-menu.0000481787-mali.png", "target_call": 481787, "timeout_seconds": 180}, {"name": "minecraft-1.21.4-in-world", "golden": "minecraft-1.21.4-in-world.0000280000.png", "target_call": 280000, "timeout_seconds": 900}, {"name": "minecraft-1.21.4-fabric-sodium-in-world", "golden": "minecraft-1.21.4-fabric-sodium-in-world.0000923340.png", "target_call": 923340, "timeout_seconds": 1800}, + {"name": "minecraft-26.2-main-menu", "golden": "minecraft-26.2-main-menu.0000259766.png", "target_call": 259766, "timeout_seconds": 180}, + {"name": "minecraft-26.2-in-world", "golden": "minecraft-26.2-in-world.0000519370.png", "target_call": 519370, "timeout_seconds": 900}, {"name": "minecraft-1.21.4-fabric-common-mods-in-world", "golden": "minecraft-1.21.4-fabric-common-mods-in-world.0000522084.png", "target_call": 522084, "timeout_seconds": 1800}, {"name": "minecraft-1.21.4-fabric-common-mods-inventory", "golden": "minecraft-1.21.4-fabric-common-mods-inventory.0000728558.png", "target_call": 728558, "timeout_seconds": 1800}, {"name": "minecraft-1.21.4-fabric-rei-inventory", "golden": "minecraft-1.21.4-fabric-rei-inventory.0005431826.png", "target_call": 5431826, "timeout_seconds": 1800},