Files
Martin Vogel 3c187ab99a test(cli): size the update tests' decompression limit to their fixture
On macOS, cli_update_agent_configs_finish_before_guard_release and
cli_update_names_the_failing_staging_step_and_os_error package the test
runner itself as the fake release. The in-process updater, which exists
only in test builds, refuses a tar.gz that inflates past 500 MiB
(DECOMPRESS_MAX_BYTES), and an ASan runner carrying every vendored grammar
sits right at that limit. The ObjectScript v1.11.0 parse tables add about
4.9 MB to the runner, which took both CI macOS runners over it: the
archive was refused as "binary not found in archive" right after its
checksum was verified, so the first test got rc 1 and the second never
reached the staging write that fails with ENOSPC. Linux packages
/bin/true and was not affected.

The limit keeps its own test,
cli_update_refuses_an_archive_over_the_decompression_limit. These two
tests only need their archive accepted, so they set the limit to twice
the fixture's inflated tar, which the doubling decompression buffer can
never exceed, and restore it right after the update runs.

x86_64 ASan runner under Rosetta, the macos-15-intel analog: main
1ec2f262 is 520,665,520 bytes and passes; 0bde6dea is 525,530,264 bytes
and fails both tests with the CI messages; main plus only the vendored
grammar directories of 086967955 is 525,502,864 bytes and fails the same
way. With this change both tests pass at 525,530,264 bytes, and fail
again with it reverted.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
(cherry picked from commit 9d3f2af1ec)
2026-11-18 18:17:27 +01:00
..