Repository navigation
fix: robustness leftovers of the release audit - #135
Conversation
A setup cleared SavedAccountNames first and only then wrote the copy to the local config, so a crash in between or a failed config write lost the list. The copy is now saved first, and a setup whose copy cannot be saved aborts before touching the launcher's list. When emptying the list fails, the names it still holds are settled again.
- egui: a signal handler on another thread could load the pipe fd just before teardown closed it and then write into a reused fd. Handlers now count themselves in flight around the write, and teardown hides the fd, then waits for that count to reach zero before closing it. - egui tests: commands held at the mock are released by a guard on drop, so a failed assertion fails the test instead of leaving a worker parked at the hold for Jobs::drop to join forever. - cli: the switch label takes the account whose id matches exactly before one that only matches once folded, and folds ids only the way the platform's own switch does, so two ids that differ by case never swap labels.
… abort - cli: the switch label uses the id the descriptor engine normalises the input to, and the dry-run label uses the plan's account id. Descriptor ids only match exactly, so ` ABC ` on a case-sensitive descriptor no longer takes the label of `abc`. - battle-net: a setup that gives up after quitting the launcher starts it again if it was running, and still reports the setup's own error.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 2 minutes. View limit details
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. |
|
This pull request makes the app quit in an orderly way when Linux and macOS send a stop signal, and keeps Battle.net saved names owed to a later switch across a restart. It also hides raw account ids in readable command output, keeps the mock backend out of release builds, and replaces timing-sensitive tests with deterministic checks. No comments posted: the reviewers raised no finding. Review details
Files skipped (1)
Commands run (11)Explored repo layout and gates (fmt, clippy, cargo test --workspace, worker tsc/vitest, bundle, streamdeck); confirmed no Rust toolchain, C compiler, or pkg-config in sandbox (node/npm/curl present, network OK). Downloaded rustup-init and zig 0.14.1 tarball (~49MB, valid XZ). Ran no Rust tests/build; could not reproduce or verify any PR behavior before budget expired. passed · exit 0 · 0 s ls -R | head -n 200; echo "---"; cat README.md 2>/dev/null | head -n 200; echo "==="; cat package.json 2>/dev/null | head -n 100; echo "==="; cat scripts/gates.mjs 2>/dev/null | head -n 200passed · exit 0 · 0 s cargo --version; rustc --version; ls crates/; cat crates/accshift-egui/Cargo.toml | head -n 80; cat crates/accshift-app/Cargo.toml | head -n 80passed · exit 0 · 0 s ls -la /usr/local/cargo/bin/ 2>&1 | head; ls -la ~/.cargo/bin/ 2>&1 | head; which rustup 2>&1; ls /opt/ 2>&1 | head -n 50; cat /etc/os-release | head; node --version 2>&1 | head; python3 --version 2>&1 | head
echo "---PATH---"; echo $PATHpassed · exit 0 · 0 s ls / 2>&1; uname -a 2>&1; ls /usr/local/bin/ 2>&1 | head -n 100; ls /usr/local/lib/ 2>&1 | head -n 100; echo ---; env 2>&1 | head -n 50failed · exit 127 · 0 s ls /bin /usr/bin 2>&1 | head -n 100; echo ---; ls /etc/ 2>&1 | head -n 50; echo ---; curl --version 2>&1 | head; wget --version 2>&1 | head; tar --version 2>&1 | head; gcc --version 2>&1 | head; cc --version 2>&1 | head; ld --version 2>&1 | headpassed · exit 0 · 0 s id; echo ---; apt-get --version 2>&1 | head; ls /var/cache/apt/ 2>&1 | head; df -h 2>&1 | head -n 20; free -m 2>&1 | headpassed · exit 0 · 0 s sudo -n true 2>&1; echo "sudo:$?"; su -c true 2>&1 | head; echo ---; ls -la /tmp/ 2>&1 | head -n 20; touch /tmp/wtest 2>&1 && echo tmp-writable; touch /usr/wtest 2>&1; echo "usr-touch:$?"; mkdir -p ~/tools 2>&1 && echo home-writable; echo ---; find / -maxdepth 4 -name "cargo" -o -name "rustc" 2>/dev/null | head; ls -la ~/ 2>&1 | head -n 30passed · exit 0 · 0 s ls /bin/ 2>&1; echo "===/usr/bin==="; ls /usr/bin/ 2>&1; echo "===apt==="; cat /etc/apt/sources.list 2>&1 | head -n 30; ls /etc/apt/sources.list.d/ 2>&1 | head; cat /etc/debian_version 2>&1; dpkg --version 2>&1 | headpassed · exit 0 · 0 s ls /etc/apt/ 2>&1; echo "===apt-config==="; apt-config dump 2>&1 | head -n 40; echo "===lsb==="; lsb_release -a 2>&1 | head; cat /etc/lsb-release 2>&1 | head; echo "===df==="; df -h 2>&1; echo "===arch/libc==="; uname -m; ldd --version 2>&1 | head; ls /lib/x86_64-linux-gnu/libc* 2>&1 | head; echo "===net==="; curl -sI --max-time 10 https://static.rust-lang.org/ 2>&1 | head -n 10; echo "curl:$?"failed · exit 2 · 0 s cat /work/Cargo.toml 2>&1 | head -n 60; echo "===gates==="; head -n 80 /work/scripts/gates.mjs 2>&1; echo "===crates==="; ls /work/crates/ 2>&1; echo "===libs==="; ls /usr/lib/x86_64-linux-gnu/ 2>&1 | grep -iE "libX11\.|libwayland|libxcb\.|libfontconfig|libfreetype|libGL\.|libEGL|libxkbcommon|libasound|libgtk|libssl\.|libsqlite" | head -n 30; echo "===pkgconfig==="; ls /usr/bin/pkg* /usr/bin/*config* 2>&1 | head; ls /usr/lib/x86_64-linux-gnu/pkgconfig/ 2>&1 | head -n 20passed · exit 0 · 7 s mkdir -p ~/.patrol-dl ~/tools && cd ~/.patrol-dl && curl -sSL -o rustup-init.sh https://sh.rustup.rs && echo RUSTUP_OK && curl -sSL -o zig.tar.xz https://ziglang.org/download/0.14.1/zig-x86_64-linux-0.14.1.tar.xz && echo ZIG_OK; ls -la ~/.patrol-dl/; file ~/.patrol-dl/zig.tar.xz 2>&1 || head -c 300 ~/.patrol-dl/zig.tar.xz | od -c | head -n 5 |
Note
Clanker Claude Opus 5.5 is responding on behalf of meetsu
Summary
Closes the robustness leftovers of the release audit.
What changes
owed_saved_accounts, skipped when empty, stripped from the portable config). A config without the field loads as before.accshift_app::mocksits behindcfg(test)or themockfeature, which theharnessfeature turns on.rust/cleartext-logging).The CLI change covers the human-readable switch and dry-run headers. The JSON schema and the dry-run plan details are preserved.
Related issue
None.
Testing
build-safe node scripts/gates.mjs: exit 0 (fmt, clippy, 2046 Rust tests, worker, bundle, Stream Deck).cargo check --releaseofaccshift-app,accshift-egui(default andharness) andaccshift-cli: exit 0.Tested on
Checklist
verified
build-safe node scripts/gates.mjs(shortTEMP): exit 0 on576b0ae.576b0ae: 3 passed, 0 failed.