You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ui): dashboard refresh races panel mounting and fails the worker #519
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/cliCore CLI framework, Typer subcommands, options, and tablestype/bugType bug: the code does not do what it must
tests/test_ui_dashboard.py::test_textual_dashboard_app_lifecycle fails intermittently under the full parallel suite (uv run devops ci --force) and passes in isolation (4 of 4):
textual.worker.WorkerFailed: Worker raised exception: NoMatches("No nodes match 'Static' on DomainPanel(id='panel-telemetry')")
Root cause
DashboardApp._refresh_worker (src/devops_cli/ui/dashboard.py:225, a thread worker) refreshes a domain panel, whose update calls self.query_one(Static).update(...) (src/devops_cli/ui/widgets.py:99, 178, 249). When the refresh lands before the panel has composed and mounted its Static child (the test switches tabs immediately, and a loaded machine delays composition), the query raises NoMatches and the worker fails. The same race can fail the dashboard itself on a slow machine; it is not only a test problem.
Acceptance criteria
A panel update before the panel is mounted is deferred or dropped, never an exception.
A test drives a refresh before mount and asserts no worker failure.
Moved from v0.2.25 to the backlog. v0.2.25 is capped at 12 items (#740), and only the next two planned releases keep a milestone (#739), so P2 items wait in the backlog until reprioritization pulls them in.
This race recurred on 2026-10-02 and failed a pre-push devops ci gate (#588's branch): WorkerFailed: Worker raised exception: NoMatches("No nodes match '#k8s-namespace' on K8sPanel(id='panel-k8s')") in tests/test_ui_dashboard.py::test_textual_dashboard_app_lifecycle, 1 failed / 6891 passed. The branch touches no UI code, and the test then passed 3 of 3 alone. It ran while another branch's gate was running, so the machine was loaded. That is the trigger described above, now on the K8s panel's #k8s-namespace query as well as Static.
A flaky gate test costs a whole gate rerun, so this is raised to P1 and placed in v0.2.28, the pre-v0.3.0 release for gate and safety work. It displaces #885, the lowest-ranked item there (P1, Value Medium, Effort Medium; #408 is a person's placement and stays). The fix must cover every panel query that a refresh can reach before mount, not only Static.
Defend dashboard domain panels against mounting race conditions by deferring snapshot rendering when unmounted or during child query races, preventing NoMatches worker failures.
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/cliCore CLI framework, Typer subcommands, options, and tablestype/bugType bug: the code does not do what it must
Activity
test(review): regression harness keeps real defects reported and fals…
dan-petty commentedon Sep 30, 2026
Moved from v0.2.25 to the backlog. v0.2.25 is capped at 12 items (#740), and only the next two planned releases keep a milestone (#739), so P2 items wait in the backlog until reprioritization pulls them in.
dan-petty commentedon Oct 2, 2026
This race recurred on 2026-10-02 and failed a pre-push
devops cigate (#588's branch):WorkerFailed: Worker raised exception: NoMatches("No nodes match '#k8s-namespace' on K8sPanel(id='panel-k8s')")intests/test_ui_dashboard.py::test_textual_dashboard_app_lifecycle, 1 failed / 6891 passed. The branch touches no UI code, and the test then passed 3 of 3 alone. It ran while another branch's gate was running, so the machine was loaded. That is the trigger described above, now on the K8s panel's#k8s-namespacequery as well asStatic.A flaky gate test costs a whole gate rerun, so this is raised to P1 and placed in v0.2.28, the pre-v0.3.0 release for gate and safety work. It displaces #885, the lowest-ranked item there (P1, Value Medium, Effort Medium; #408 is a person's placement and stays). The fix must cover every panel query that a refresh can reach before mount, not only
Static.fix(ui): defer dashboard refresh when unmounted to prevent NoMatches …
dan-petty-bot commentedon Oct 6, 2026
What changed
#1263, merged into
release/v0.2.28as 347b3e9.7 file(s) changed.
How it was verified
Check runs at 9e62ca5:
Acceptance Criteria of
docs/agent/tasks/task-519-dashboard-refresh-races-panel-mounting.md:No Acceptance Criteria section.
feat(release): v0.2.28 (#1283)