Skip to content

Wait for Elsewhen's first save before the smoke test edits shell.json - #16859

Merged
emirb merged 1 commit into
quattrofrom
fix/runtime-smoke-elsewhen-race
Oct 28, 2026
Merged

emirb merged 1 commit into
quattrofrom
fix/runtime-smoke-elsewhen-race

Conversation

@emirb

@emirb emirb commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

The transparent bar check added in #8307 sets the bar's background with omarchy-bar background none, 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, so the check fails.

On a desktop the probe usually returns before the test gets there. In a VM booted from the stable release image it returned later: 30 s after omarchy-bar had printed Bar background set to none, shell.json read "background": "opaque" with Elsewhen's cities saved, and the shell's own config over IPC said the same. Run alone, one fresh VM per run, the file failed 10 of 10 times on quattro at 83f0400, always at this check, and passed 10 of 10 times with this change, all 24 checks.

The unreadable shell.json checks further down already waited for that save before editing the file. The wait is now one helper, called before both edits. It returns as soon as the cities are saved and allows 30 s, since a slower machine returns the probe later.

The shell overwriting edits made from outside it is #10885; this only keeps the test clear of it.

Refs #8307, #10885

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.
@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

The smoke test now waits for Elsewhen’s first save before changing the bar background.

  • Smoke tests wait for Elsewhen's first city save before editing shell.json.

Reviews (1) · Last reviewed commit: "Wait for Elsewhen's first save before th..." · Reviewed by Greptile

@emirb
emirb merged commit 63b6e5b into quattro Oct 28, 2026
2 checks passed
@emirb
emirb deleted the fix/runtime-smoke-elsewhen-race branch October 28, 2026 01:39
katrushenkov pushed a commit to katrushenkov/omarchy that referenced this pull request Oct 28, 2026
…omacom#16859)

The transparent bar check from omacom#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.
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>
@emirb emirb added this to the 4.5 milestone Nov 5, 2026
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