Answer stability round 2: 0 🔴, 2 🟡 (0 misread); a window is handed an XDG variable its starter lacks as empty, and a test pins the plan check under XDG_CONFIG_HOME
CI / tests (pull_request) Successful in 5m30s

This commit is contained in:
2026-12-03 22:00:44 +01:00
parent 9b8f9e05e7
commit 9ae3e85cba
6 changed files with 14 additions and 9 deletions
+2 -2
View File
@@ -167,8 +167,8 @@ class StartChunks(unittest.TestCase):
self.assertEqual(self.starts(fake), [("new-session", "item-1", [str(self.LAUNCHER), "--chunk", "item-1", "ship it"]), ("new-window", "item-3", [str(self.LAUNCHER), "--chunk", "item-3", "ship it"])])
first = next(call for call in fake.tmux_calls if call[0] == "new-session")
self.assertEqual((first[first.index("-s") + 1], first[first.index("-c") + 1]), (self.session, str(self.root)))
# Only build-release's own variables are handed on, since a window gets the tmux server's environment.
self.assertEqual([word for word in first if "=" in word], ["BUILD_RELEASE_WORKER_MODEL=m"])
# Only build-release's own variables and the two XDG ones are handed on, since a window gets the tmux server's environment.
self.assertEqual([word for word in first if "=" in word], ["BUILD_RELEASE_WORKER_MODEL=m", "XDG_CONFIG_HOME=", "XDG_STATE_HOME="])
self.assertEqual(fake.tmux_calls[0], ["list-windows", "-t", f"={self.session}", "-F", "#{window_name}\t#{pane_dead}\t#{window_id}"])
# The session names the checkout whose chunks it runs.
self.assertIn(["set-option", "-t", f"={self.session}:", "@loop-root", str(self.root)], fake.tmux_calls)