From 888ee0dff3881d343fbeb4e7f6a75515cbf8ceb0 Mon Sep 17 00:00:00 2001 From: SoftFever <103989404+SoftFever@users.noreply.github.com> Date: Mon, 23 Nov 2026 21:40:24 +0800 Subject: [PATCH] Fix the Flatpak unit-test jobs failing on the page agent test Both Flatpak unit-test jobs failed one test, which reads the MCP server's page agent script, because the script was missing from the test bundle those jobs run from. The bundle carries it, so the jobs run that test as the other platforms' jobs do. --- .github/workflows/build_flatpak.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_flatpak.yml b/.github/workflows/build_flatpak.yml index 88f39a8be6..db3e51fe79 100644 --- a/.github/workflows/build_flatpak.yml +++ b/.github/workflows/build_flatpak.yml @@ -224,11 +224,13 @@ jobs: # the bounds checks are compiled in, so a stripped exe still catches them. find "$d/build_flatpak/tests" -type f -perm -u+x -exec strip --strip-unneeded {} + 2>/dev/null || true # At runtime the tests read tests/ (TEST_DATA_DIR), scripts/, and under - # resources/ the shipped profiles (PROFILES_DIR), the printers/ maps, and - # the icon SVGs (NativeCommands icon names are checked against them). + # resources/ the shipped profiles (PROFILES_DIR), the printers/ maps, + # the icon SVGs (NativeCommands icon names are checked against them), and + # the MCP server's page agent (web/mcp). find "$d" -mindepth 1 -maxdepth 1 -type d \ ! -name tests ! -name build_flatpak ! -name scripts ! -name resources -exec rm -rf {} + - find "$d/resources" -mindepth 1 -maxdepth 1 ! -name profiles ! -name printers ! -name images -exec rm -rf {} + + find "$d/resources" -mindepth 1 -maxdepth 1 ! -name profiles ! -name printers ! -name images ! -name web -exec rm -rf {} + + find "$d/resources/web" -mindepth 1 -maxdepth 1 ! -name mcp -exec rm -rf {} + # Only the SVGs are read; the png/ico/icns/gif assets are ~35MB of dead weight. find "$d/resources/images" -mindepth 1 -maxdepth 1 ! -name '*.svg' -exec rm -rf {} + 2>/dev/null || true tar -cf flatpak-test-asset.tar flatpak_app "$d"