Skip to content

test(apply): run the simulated client from a script, not a renamed sleep - #4049

Merged
afonsojramos merged 2 commits into
v3-betafrom
test/apply-client-script
Nov 4, 2026
Merged

afonsojramos merged 2 commits into
v3-betafrom
test/apply-client-script

Conversation

@afonsojramos

@afonsojramos afonsojramos commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

The Rust workflow's ubuntu-latest job now fails on every run that triggers it. ubuntu-latest moved from Ubuntu 24.04 to 26.04, which ships uutils coreutils.

unwritable_installation_does_not_stop_spotify_or_change_its_archive simulates the Spotify client by copying /bin/sleep to spa<pid>. On 26.04, /bin/sleep resolves to the uutils multicall binary, which picks the utility from its own name. The renamed copy exits at once with coreutils: unknown program 'spa10624', and the test fails on "process lookup must observe the simulated client before Apply". The last green v3-beta run, on a8d7f56, ran on ubuntu-24.04. #4048, which only changes the loader's JavaScript, fails here for this reason.

The fixture is now a small #!/bin/sh script named spa<pid>. Linux names a script's process after the script, so the pgrep -x lookup the test relies on still finds it. Apply first probes the client with --version, which the copied sleep answered with its own version line. The script answers it by exiting with no output, so the version stays undetected as before. Otherwise detect_version waits on a script that never exits.

Testing

The test binaries were built in the rust image and run in ubuntu:26.04 as uid 1000, which has the uutils /bin/sleep. Every workspace test binary passes there: cli 1, completions 1, daemon 34, spicetify 156 (including this test), tui 5. cargo fmt --check passes.

@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@afonsojramos
afonsojramos merged commit 4afe7d8 into v3-beta Nov 4, 2026
8 checks passed
@afonsojramos
afonsojramos deleted the test/apply-client-script branch November 4, 2026 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant