Flaky: xtask package tests fail with "Text file busy (os error 26)" when spawning the AppImage #903

Open
opened 2026-11-18 14:51:15 +00:00 by charles · 0 comments
Owner

Seen on the shell branch at commit 4a7f4a1c (origin/shell d48106dc plus the reviewed branches of Shell 3, 18 and 25), during FLUXER_SCREENSHOT_TESTS=1 cargo xtask ci, step test, while another worktree ran its own gate on the same machine.

Seven tests of xtask/tests/package.rs failed at line 65: cargo xtask package --target linux failed with

xtask package: spawn APPIMAGE_EXTRACT_AND_RUN="1" ".../tmp/package-linux/dist/Flaxative-2026.1111.0-linux-x86_64.AppImage" "--check-noise-suppression": Text file busy (os error 26)

(appimage_bundles_ffmpeg_under_usr_lib_flaxative, appimage_has_flaxative_desktop_icon_and_binary, appimage_carries_and_starts_deep_filter, appimage_ships_lgpl_text_and_notice_with_source_url, bundled_ffmpeg_size_is_reported, package_writes_the_asset_fragment, binary_runpath_is_origin_relative_only; they share one OnceLock package, so one failure fails them all).

Re-running cargo test -p xtask --test package alone passed (15/15). ETXTBSY on exec usually means a write descriptor of the just-written AppImage is still open somewhere, e.g. inherited by a process forked by another test thread between open and the childs exec(the classic fork/exec race), soxtask package` may want to retry the spawn on ETXTBSY or write the file under a temporary name and rename it before running it.

Not fixed in the task where it was seen (Shell 28, #820).

Seen on the shell branch at commit 4a7f4a1c (origin/shell d48106dc plus the reviewed branches of Shell 3, 18 and 25), during `FLUXER_SCREENSHOT_TESTS=1 cargo xtask ci`, step `test`, while another worktree ran its own gate on the same machine. Seven tests of `xtask/tests/package.rs` failed at line 65: `cargo xtask package --target linux` failed with ```text xtask package: spawn APPIMAGE_EXTRACT_AND_RUN="1" ".../tmp/package-linux/dist/Flaxative-2026.1111.0-linux-x86_64.AppImage" "--check-noise-suppression": Text file busy (os error 26) ``` (`appimage_bundles_ffmpeg_under_usr_lib_flaxative`, `appimage_has_flaxative_desktop_icon_and_binary`, `appimage_carries_and_starts_deep_filter`, `appimage_ships_lgpl_text_and_notice_with_source_url`, `bundled_ffmpeg_size_is_reported`, `package_writes_the_asset_fragment`, `binary_runpath_is_origin_relative_only`; they share one `OnceLock` package, so one failure fails them all). Re-running `cargo test -p xtask --test package` alone passed (15/15). ETXTBSY on exec usually means a write descriptor of the just-written AppImage is still open somewhere, e.g. inherited by a process forked by another test thread between `open` and the child`s `exec` (the classic fork/exec race), so `xtask package` may want to retry the spawn on ETXTBSY or write the file under a temporary name and rename it before running it. Not fixed in the task where it was seen (Shell 28, #820).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#903
No description provided.