Repository navigation
Replace the i18n startup test's watched files whole - #16886
Merged
Merged
Conversation
The live probe edits files the shell watches: the catalogs, the
language selection and the plugin directory. It wrote them in place,
which truncates first, and Quickshell's FileView reloads on the
change, so a reload between the truncation and the write reads an
empty file. With an empty catalog or plugin directory,
t("test.hello") returns its key and .arg("Ada") logs "QString::arg:
Argument missing", which fails the final log check. CI hit this on a
loaded runner.
Write each file beside its target and rename it over, so a reload
reads either the old file or the new one.
In a VM with every vCPU kept busy, the test failed 10 of 40 runs on
that warning before this change and 0 of 40 after. Renaming only the
catalogs was not enough (13 of 40 failed): the language and plugin
directory files are watched too.
Contributor
[Low impact] The PR appears safe to merge. SummaryThe test now writes watched files to a sibling temporary file, then replaces the target with
Reviews (1) · Last reviewed commit: "Replace the i18n startup test's watched ..." · Reviewed by Greptile |
This was referenced Nov 2, 2026
dhh
added a commit
that referenced
this pull request
Nov 2, 2026
* Wait for Elsewhen's first save before the smoke test edits shell.json (#16859) The transparent bar check from #8307 sets the bar's background with omarchy-bar, which edits shell.json from outside the shell. Elsewhen saves its first-run cities once its timezone probe returns, and that save writes the shell's whole in-memory config back to shell.json. When the probe returns after the edit, the file goes back to an opaque bar, the bar never turns transparent and nothing samples the wallpaper. On a desktop the probe returns before the test gets there. In a VM it returned later in 7 of 8 runs: the file read "background": "opaque" with Elsewhen's cities saved, 30 s after omarchy-bar had reported "Bar background set to none". The unreadable shell.json checks further down already waited for that save. The wait is now one helper, called before both edits, and allows 30 s, since it returns as soon as the cities are saved. (cherry picked from commit 63b6e5b) * Replace the i18n startup test's watched files whole (#16886) The live probe edits files the shell watches: the catalogs, the language selection and the plugin directory. It wrote them in place, which truncates first, and Quickshell's FileView reloads on the change, so a reload between the truncation and the write reads an empty file. With an empty catalog or plugin directory, t("test.hello") returns its key and .arg("Ada") logs "QString::arg: Argument missing", which fails the final log check. CI hit this on a loaded runner. Write each file beside its target and rename it over, so a reload reads either the old file or the new one. In a VM with every vCPU kept busy, the test failed 10 of 40 runs on that warning before this change and 0 of 40 after. Renaming only the catalogs was not enough (13 of 40 failed): the language and plugin directory files are watched too. (cherry picked from commit e6c6a18) * Wait for the input-indicator test's fake Fcitx to finish its exec (#16887) The test starts sleep with FCITX_CONFIG_HOME set and at once reads the profile path from that process's /proc environ. Popen returns when the child's close-on-exec pipe closes, early in the kernel's exec, but the new environment is readable only once create_elf_tables sets env_end (fs/binfmt_elf.c). Until then the read is empty (fs/proc/base.c), refused, or the parent's, so the lookup falls back to the caller's own $HOME and the assertion fails on /home/<user>/.config/fcitx5/profile, as it did in CI. On a 7.2 kernel, 842 of 2000 reads made right after Popen returned lacked the child's environment, which appeared p50 26 us and p99 44 us later. With the test's VM pinned to one host core, as vCPUs share a core on a busy runner host, the test failed that way in 12 of 150 runs before this change and 0 of 150 after. A real Fcitx owns its bus name long after its exec, so the shell's lookup is unaffected; only the test needs to wait. (cherry picked from commit 79dcccf) * Keep the agent account test off the network agent-account-exec-test pointed mise at all of etc/mise, so the agents were declared lazy tools. Current mise installs a declared lazy tool before running its wrapper, so offline the test failed fetching claude@latest before it reached the fake CLI. Give it only the wrapper declarations. mise also refuses a wrapper whose tool has no binary, so the first-run install cases now call omarchy-agent-account-exec the way mise hands off to it, with the wrapper directory off PATH. The quattro commit also fixed the dropdown test, which v4-5-0 doesn't have yet; that half goes with the backport that brings the test. (cherry picked from commit 0a54d6f) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CY6YBoMt9VUxZ6fJqSXaj1 * Stop a QML fixture's child processes along with its Quickshell The fixture cleanup killed Quickshell and removed its scratch HOME, but the processes Quickshell had started (the agent usage scanner, the plugin directory's inotifywait) outlived it. The scanner could still be writing into home/.cache while rm -rf ran, so cleanup failed with "Directory not empty", and since that rm was the trap's last command, set -e failed a test whose checks had all passed. The watchers were left running against deleted directories after every run. Stop the whole process tree, and retry the removal briefly for a child caught mid-write. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CY6YBoMt9VUxZ6fJqSXaj1 (cherry picked from commit 63fd018) * Stamp the Kimchi test's repeated reply once The pi scanner counts a reply once per id and timestamp, as a real repeated entry carries both. The test built its repeated a-1 reply with two reply() calls, each stamping fixture_now() to the millisecond, so when the clock ticked between them they were two replies and today's minimax-m3 tokens came out doubled (1850 for 925). Under the full suite that happened often enough to fail. Build the entry once and write it twice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CY6YBoMt9VUxZ6fJqSXaj1 (cherry picked from commit 93e3b0a) * Stop a crashed QML fixture's children through its process group Fixture cleanup found Quickshell's children by walking down from a live Quickshell, so once Quickshell had crashed (a compositor disconnect, say) the walk never ran and its children, such as the plugin directory's inotifywait, were left to init. Start each fixture's Quickshell in a process group of its own with setsid and signal the group, which works whether or not its leader is still alive. A second fixture in the same file stops the first the same way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CY6YBoMt9VUxZ6fJqSXaj1 --------- Co-authored-by: Emir Beganović <beganovic.emir@gmail.com> Co-authored-by: David Heinemeier Hansson <david@hey.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The live probe in
i18n-startup-test.shedits files the shell watches: the catalogs, the language selection and the plugin directory. It wrote them in place, which truncates first, and Quickshell's FileView reloads on the change. A reload that lands between the truncation and the write reads an empty file. With an empty catalog or plugin directory,t("test.hello")returns its key and.arg("Ada")logsQString::arg: Argument missing, which fails the final log check. This is the failure the VM test run in #16835 hit on a loaded runner.The test now writes each watched file beside its target and renames it over, so a reload reads either the old file or the new one. Only the test changes; the shell's own catalog directory is a fixed path.
In a VM with every vCPU kept busy, the test failed 10 of 40 runs on that warning before this change and 0 of 40 after. Renaming only the catalogs was not enough (13 of 40 still failed), because the language and plugin-directory files are watched too.
The test came with #16059.
Refs #16835