Commit e14cc5d
authored
fix(renderer): stop emitting require_live_session, rejected by bread 0.3.0 (#202)
bread 0.3.0 removed the `hardware.require_live_session` field and rejects it at
load time as an unknown key. The renderer still emitted it, the catalog still
declared it as a bread topology field, both project templates still seeded it,
and the TS contract still typed it — so every bread config workbench generated
was dead on arrival: the provider exits immediately, the runtime's hello
handshake fails on the dead stdout pipe, and the runtime aborts.
The field's intent now rides on bus_path: a real path opens a live CRUMBS
session and startup throws if the bus cannot be opened, while a mock:// path
seeds an inventory instead. Both templates already set bus_path, so behaviour is
preserved.
The checked-in golden fixture encoded the broken output as expected, so it
asserted the bug was correct; updated to match.
Verified by rendering both templates and running the released bread 0.3.0
binary's --check-config over the output: bioreactor-manual (/dev/i2c-1) and
mixed-bus-mock (mock://) both validate.
Same root cause as the failure found on real hardware during the
anolishq/anolis#138 run (anolishq/anolis-projects#31).1 parent e328804 commit e14cc5d
6 files changed
Lines changed: 4 additions & 7 deletions
File tree
- anolis_workbench
- catalog
- core
- templates
- bioreactor-manual
- mixed-bus-mock
- frontend/src/lib
- tests/fixtures/bioreactor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
224 | 228 | | |
225 | | - | |
226 | | - | |
227 | 229 | | |
228 | 230 | | |
229 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | 144 | | |
146 | 145 | | |
147 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
0 commit comments