From 6a11f96a5b43dcf6a8bb8a5ce9941e83f61e2c59 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Sun, 28 Jun 2026 10:39:04 +0800 Subject: [PATCH] [CI] add per-mod common mod retrace fixtures --- .github/workflows/apk.yml | 165 ++++++++++++++++++ tools/trace_replay/CMakeLists.txt | 45 +++++ tools/trace_replay/README.md | 15 ++ ...-fabric-journeymap-in-world.0002632392.png | 3 + ...raft-1.21.4-fabric-journeymap-in-world.tgz | 3 + ...4-fabric-modernui-inventory.0004907381.png | 3 + ...craft-1.21.4-fabric-modernui-inventory.tgz | 3 + ...1.21.4-fabric-rei-inventory.0005431826.png | 3 + .../minecraft-1.21.4-fabric-rei-inventory.tgz | 3 + ...bric-xaero-minimap-in-world.0002553500.png | 3 + ...t-1.21.4-fabric-xaero-minimap-in-world.tgz | 3 + ...ic-xaero-world-map-in-world.0001598209.png | 3 + ...1.21.4-fabric-xaero-world-map-in-world.tgz | 3 + 13 files changed, 255 insertions(+) create mode 100644 tools/trace_replay/fixtures/minecraft-1.21.4-fabric-journeymap-in-world.0002632392.png create mode 100644 tools/trace_replay/fixtures/minecraft-1.21.4-fabric-journeymap-in-world.tgz create mode 100644 tools/trace_replay/fixtures/minecraft-1.21.4-fabric-modernui-inventory.0004907381.png create mode 100644 tools/trace_replay/fixtures/minecraft-1.21.4-fabric-modernui-inventory.tgz create mode 100644 tools/trace_replay/fixtures/minecraft-1.21.4-fabric-rei-inventory.0005431826.png create mode 100644 tools/trace_replay/fixtures/minecraft-1.21.4-fabric-rei-inventory.tgz create mode 100644 tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-minimap-in-world.0002553500.png create mode 100644 tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-minimap-in-world.tgz create mode 100644 tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-world-map-in-world.0001598209.png create mode 100644 tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-world-map-in-world.tgz diff --git a/.github/workflows/apk.yml b/.github/workflows/apk.yml index f30ee4f9..c21e9da8 100644 --- a/.github/workflows/apk.yml +++ b/.github/workflows/apk.yml @@ -238,6 +238,71 @@ jobs: crop_width: 0 crop_height: 0 timeout_seconds: 1800 + - name: minecraft-1.21.4-fabric-rei-inventory + trace_archive: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-rei-inventory.tgz + trace_file: trace.trace + golden: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-rei-inventory.0005431826.png + vulkan_only: true + target_call: 5431826 + width: 854 + height: 480 + crop_x: 0 + crop_y: 0 + crop_width: 0 + crop_height: 0 + timeout_seconds: 1800 + - name: minecraft-1.21.4-fabric-xaero-minimap-in-world + trace_archive: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-minimap-in-world.tgz + trace_file: trace.trace + golden: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-minimap-in-world.0002553500.png + vulkan_only: true + target_call: 2553500 + width: 854 + height: 480 + crop_x: 0 + crop_y: 0 + crop_width: 0 + crop_height: 0 + timeout_seconds: 1800 + - name: minecraft-1.21.4-fabric-xaero-world-map-in-world + trace_archive: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-world-map-in-world.tgz + trace_file: trace.trace + golden: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-world-map-in-world.0001598209.png + vulkan_only: true + target_call: 1598209 + width: 854 + height: 480 + crop_x: 0 + crop_y: 0 + crop_width: 0 + crop_height: 0 + timeout_seconds: 1800 + - name: minecraft-1.21.4-fabric-journeymap-in-world + trace_archive: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-journeymap-in-world.tgz + trace_file: trace.trace + golden: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-journeymap-in-world.0002632392.png + vulkan_only: true + target_call: 2632392 + width: 854 + height: 480 + crop_x: 0 + crop_y: 0 + crop_width: 0 + crop_height: 0 + timeout_seconds: 1800 + - name: minecraft-1.21.4-fabric-modernui-inventory + trace_archive: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-modernui-inventory.tgz + trace_file: trace.trace + golden: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-modernui-inventory.0004907381.png + vulkan_only: true + target_call: 4907381 + width: 854 + height: 480 + crop_x: 0 + crop_y: 0 + crop_width: 0 + crop_height: 0 + timeout_seconds: 1800 - name: minecraft-1.21.4-fabric-iris-bsl-in-world trace_archive: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-iris-bsl-in-world.tgz trace_file: trace.trace @@ -461,6 +526,106 @@ jobs: crop_width: 0 crop_height: 0 timeout_seconds: 1800 + - backend: + name: DirectGLES + id: espryt + apk: MobileGL-EsprytTrace-release.apk + package: top.mobilegl.plugin.espryt.trace + gpu: software + case: + name: minecraft-1.21.4-fabric-rei-inventory + trace_archive: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-rei-inventory.tgz + trace_file: trace.trace + golden: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-rei-inventory.0005431826.png + vulkan_only: true + target_call: 5431826 + width: 854 + height: 480 + crop_x: 0 + crop_y: 0 + crop_width: 0 + crop_height: 0 + timeout_seconds: 1800 + - backend: + name: DirectGLES + id: espryt + apk: MobileGL-EsprytTrace-release.apk + package: top.mobilegl.plugin.espryt.trace + gpu: software + case: + name: minecraft-1.21.4-fabric-xaero-minimap-in-world + trace_archive: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-minimap-in-world.tgz + trace_file: trace.trace + golden: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-minimap-in-world.0002553500.png + vulkan_only: true + target_call: 2553500 + width: 854 + height: 480 + crop_x: 0 + crop_y: 0 + crop_width: 0 + crop_height: 0 + timeout_seconds: 1800 + - backend: + name: DirectGLES + id: espryt + apk: MobileGL-EsprytTrace-release.apk + package: top.mobilegl.plugin.espryt.trace + gpu: software + case: + name: minecraft-1.21.4-fabric-xaero-world-map-in-world + trace_archive: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-world-map-in-world.tgz + trace_file: trace.trace + golden: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-world-map-in-world.0001598209.png + vulkan_only: true + target_call: 1598209 + width: 854 + height: 480 + crop_x: 0 + crop_y: 0 + crop_width: 0 + crop_height: 0 + timeout_seconds: 1800 + - backend: + name: DirectGLES + id: espryt + apk: MobileGL-EsprytTrace-release.apk + package: top.mobilegl.plugin.espryt.trace + gpu: software + case: + name: minecraft-1.21.4-fabric-journeymap-in-world + trace_archive: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-journeymap-in-world.tgz + trace_file: trace.trace + golden: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-journeymap-in-world.0002632392.png + vulkan_only: true + target_call: 2632392 + width: 854 + height: 480 + crop_x: 0 + crop_y: 0 + crop_width: 0 + crop_height: 0 + timeout_seconds: 1800 + - backend: + name: DirectGLES + id: espryt + apk: MobileGL-EsprytTrace-release.apk + package: top.mobilegl.plugin.espryt.trace + gpu: software + case: + name: minecraft-1.21.4-fabric-modernui-inventory + trace_archive: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-modernui-inventory.tgz + trace_file: trace.trace + golden: tools/trace_replay/fixtures/minecraft-1.21.4-fabric-modernui-inventory.0004907381.png + vulkan_only: true + target_call: 4907381 + width: 854 + height: 480 + crop_x: 0 + crop_y: 0 + crop_width: 0 + crop_height: 0 + timeout_seconds: 1800 steps: - name: Checkout repo diff --git a/tools/trace_replay/CMakeLists.txt b/tools/trace_replay/CMakeLists.txt index f7d0bb8c..7186c886 100644 --- a/tools/trace_replay/CMakeLists.txt +++ b/tools/trace_replay/CMakeLists.txt @@ -406,6 +406,51 @@ add_trace_replay_test(minecraft-1.21.4-fabric-common-mods-inventory DirectVulkan HEIGHT 480 ) +add_trace_replay_test(minecraft-1.21.4-fabric-rei-inventory DirectVulkan + TRACE_ARCHIVE ${MOBILEGL_TRACE_ROOT}/fixtures/minecraft-1.21.4-fabric-rei-inventory.tgz + TRACE_FILE trace.trace + GOLDEN ${MOBILEGL_TRACE_ROOT}/fixtures/minecraft-1.21.4-fabric-rei-inventory.0005431826.png + TARGET_CALL 5431826 + WIDTH 854 + HEIGHT 480 +) + +add_trace_replay_test(minecraft-1.21.4-fabric-xaero-minimap-in-world DirectVulkan + TRACE_ARCHIVE ${MOBILEGL_TRACE_ROOT}/fixtures/minecraft-1.21.4-fabric-xaero-minimap-in-world.tgz + TRACE_FILE trace.trace + GOLDEN ${MOBILEGL_TRACE_ROOT}/fixtures/minecraft-1.21.4-fabric-xaero-minimap-in-world.0002553500.png + TARGET_CALL 2553500 + WIDTH 854 + HEIGHT 480 +) + +add_trace_replay_test(minecraft-1.21.4-fabric-xaero-world-map-in-world DirectVulkan + TRACE_ARCHIVE ${MOBILEGL_TRACE_ROOT}/fixtures/minecraft-1.21.4-fabric-xaero-world-map-in-world.tgz + TRACE_FILE trace.trace + GOLDEN ${MOBILEGL_TRACE_ROOT}/fixtures/minecraft-1.21.4-fabric-xaero-world-map-in-world.0001598209.png + TARGET_CALL 1598209 + WIDTH 854 + HEIGHT 480 +) + +add_trace_replay_test(minecraft-1.21.4-fabric-journeymap-in-world DirectVulkan + TRACE_ARCHIVE ${MOBILEGL_TRACE_ROOT}/fixtures/minecraft-1.21.4-fabric-journeymap-in-world.tgz + TRACE_FILE trace.trace + GOLDEN ${MOBILEGL_TRACE_ROOT}/fixtures/minecraft-1.21.4-fabric-journeymap-in-world.0002632392.png + TARGET_CALL 2632392 + WIDTH 854 + HEIGHT 480 +) + +add_trace_replay_test(minecraft-1.21.4-fabric-modernui-inventory DirectVulkan + TRACE_ARCHIVE ${MOBILEGL_TRACE_ROOT}/fixtures/minecraft-1.21.4-fabric-modernui-inventory.tgz + TRACE_FILE trace.trace + GOLDEN ${MOBILEGL_TRACE_ROOT}/fixtures/minecraft-1.21.4-fabric-modernui-inventory.0004907381.png + TARGET_CALL 4907381 + WIDTH 854 + HEIGHT 480 +) + add_trace_replay_test_for_backends(minecraft-1.21.4-fabric-iris-bsl-in-world TRACE_ARCHIVE ${MOBILEGL_TRACE_ROOT}/fixtures/minecraft-1.21.4-fabric-iris-bsl-in-world.tgz TRACE_FILE trace.trace diff --git a/tools/trace_replay/README.md b/tools/trace_replay/README.md index a6dec03b..61f3bcf9 100644 --- a/tools/trace_replay/README.md +++ b/tools/trace_replay/README.md @@ -22,6 +22,21 @@ The bundled fixtures cover: - minecraft-1.21.4-fabric-common-mods-inventory: captured from Minecraft 1.21.4 Fabric with Sodium, Iris, REI, Xaero's Minimap, Xaero's World Map, JourneyMap, and Modern UI with the creative inventory and REI item list open. ![Minecraft 1.21.4 Fabric common mods inventory golden](fixtures/minecraft-1.21.4-fabric-common-mods-inventory.0000728558.png) +- minecraft-1.21.4-fabric-rei-inventory: captured from Minecraft 1.21.4 Fabric with Sodium, Iris, and REI, with + shader packs disabled and the creative inventory and REI item list open. + ![Minecraft 1.21.4 Fabric REI inventory golden](fixtures/minecraft-1.21.4-fabric-rei-inventory.0005431826.png) +- minecraft-1.21.4-fabric-xaero-minimap-in-world: captured from Minecraft 1.21.4 Fabric with Sodium, Iris, and + Xaero's Minimap after entering a singleplayer world with shader packs disabled. + ![Minecraft 1.21.4 Fabric Xaero's Minimap in-world golden](fixtures/minecraft-1.21.4-fabric-xaero-minimap-in-world.0002553500.png) +- minecraft-1.21.4-fabric-xaero-world-map-in-world: captured from Minecraft 1.21.4 Fabric with Sodium, Iris, and + Xaero's World Map, with shader packs disabled and the world map screen open. + ![Minecraft 1.21.4 Fabric Xaero's World Map in-world golden](fixtures/minecraft-1.21.4-fabric-xaero-world-map-in-world.0001598209.png) +- minecraft-1.21.4-fabric-journeymap-in-world: captured from Minecraft 1.21.4 Fabric with Sodium, Iris, and + JourneyMap after entering a singleplayer world with shader packs disabled. + ![Minecraft 1.21.4 Fabric JourneyMap in-world golden](fixtures/minecraft-1.21.4-fabric-journeymap-in-world.0002632392.png) +- minecraft-1.21.4-fabric-modernui-inventory: captured from Minecraft 1.21.4 Fabric with Sodium, Iris, and Modern UI, + with shader packs disabled and the creative inventory open. + ![Minecraft 1.21.4 Fabric Modern UI inventory golden](fixtures/minecraft-1.21.4-fabric-modernui-inventory.0004907381.png) - minecraft-1.21.4-fabric-iris-bsl-in-world: captured from Minecraft 1.21.4 Fabric with Sodium, Iris, and BSL Shaders after entering a singleplayer world. ![Minecraft 1.21.4 Fabric Iris BSL in-world golden](fixtures/minecraft-1.21.4-fabric-iris-bsl-in-world.0000110725.png) diff --git a/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-journeymap-in-world.0002632392.png b/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-journeymap-in-world.0002632392.png new file mode 100644 index 00000000..fd8801d5 --- /dev/null +++ b/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-journeymap-in-world.0002632392.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4b7f9203e28e996e7535f0c24cbb9ac0ed09a1a199798649b0099939c1530f2 +size 115169 diff --git a/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-journeymap-in-world.tgz b/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-journeymap-in-world.tgz new file mode 100644 index 00000000..2465cf78 --- /dev/null +++ b/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-journeymap-in-world.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7790b9cd6363e101fd86170c51499252c72fcfe3347a650b2832c9dc2dde4e48 +size 20905612 diff --git a/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-modernui-inventory.0004907381.png b/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-modernui-inventory.0004907381.png new file mode 100644 index 00000000..62db1d25 --- /dev/null +++ b/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-modernui-inventory.0004907381.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:906e912e57be854890fb8129ca269052f187c9eafb3241c49c176864e6c2fb29 +size 136268 diff --git a/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-modernui-inventory.tgz b/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-modernui-inventory.tgz new file mode 100644 index 00000000..084c5ebb --- /dev/null +++ b/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-modernui-inventory.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22d2a92ef46de6763b9d6bdba09a98a69e49b42ad1d5e8a1273f235d42edbcc1 +size 73674746 diff --git a/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-rei-inventory.0005431826.png b/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-rei-inventory.0005431826.png new file mode 100644 index 00000000..844a35c4 --- /dev/null +++ b/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-rei-inventory.0005431826.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f326d94d808d876d1ea67bf14f2f6f5be329acc0ed2c4acd2382ceb7f8c473c1 +size 176731 diff --git a/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-rei-inventory.tgz b/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-rei-inventory.tgz new file mode 100644 index 00000000..d4bf69bc --- /dev/null +++ b/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-rei-inventory.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb3751a0a4d96b7d43f94646c59eb526949739ee3145fbe387b3df3d18a435b6 +size 103463705 diff --git a/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-minimap-in-world.0002553500.png b/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-minimap-in-world.0002553500.png new file mode 100644 index 00000000..9f3144de --- /dev/null +++ b/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-minimap-in-world.0002553500.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3fbddd86e622de48f93578df2a2f4b159eb33769ad72b2688aa5e3ce0d77ee9 +size 110300 diff --git a/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-minimap-in-world.tgz b/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-minimap-in-world.tgz new file mode 100644 index 00000000..4d339852 --- /dev/null +++ b/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-minimap-in-world.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e4548fcf8e86e6cf2d449cb7f109bae234dbb60eab555678ba9766ef35ff26a +size 25620298 diff --git a/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-world-map-in-world.0001598209.png b/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-world-map-in-world.0001598209.png new file mode 100644 index 00000000..46045a56 --- /dev/null +++ b/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-world-map-in-world.0001598209.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:696594b962b78c92ff7101c8626cecbb5bd7b50eb0dcfc23532b65f942ed28f9 +size 12516 diff --git a/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-world-map-in-world.tgz b/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-world-map-in-world.tgz new file mode 100644 index 00000000..bfa6301d --- /dev/null +++ b/tools/trace_replay/fixtures/minecraft-1.21.4-fabric-xaero-world-map-in-world.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:329b6b1e7a304c8bd8e37878f3b37a7de78177d9dd058550ff8ed947715cddaf +size 14103017