Commit fed3593
authored
Fix parallel worker crash on syntax error (#21202)
Fixes #21195
Fix is straightforward, and also makes tag reading convention similar to
regular cache (i.e. caller reads the tag).
Note that a cmdline (i.e. full) test is required for this, since this is
not a crash from the point of view of the test harness, the workers
simply dump tracebacks to stderr when they crash, while coordinator
exits normally.
Btw, as I mentioned in original PR
#20280, at some point I am going to
redirect workers' stdout/stderr to a log file, similar to how we do it
with the daemon. This would also fix this issue, but I prefer that
workers always exit normally when possible, i.e. only genuinely
unexpected conditions should crash the workers.1 parent be51e9c commit fed3593
File tree
3 files changed
+50
-14
lines changed- mypy
- build_worker
- test-data/unit
3 files changed
+50
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1222 | 1222 | | |
1223 | 1223 | | |
1224 | 1224 | | |
1225 | | - | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
1226 | 1228 | | |
1227 | 1229 | | |
1228 | 1230 | | |
| |||
4165 | 4167 | | |
4166 | 4168 | | |
4167 | 4169 | | |
4168 | | - | |
| 4170 | + | |
| 4171 | + | |
4169 | 4172 | | |
4170 | 4173 | | |
4171 | 4174 | | |
| |||
4185 | 4188 | | |
4186 | 4189 | | |
4187 | 4190 | | |
4188 | | - | |
| 4191 | + | |
| 4192 | + | |
4189 | 4193 | | |
4190 | 4194 | | |
4191 | | - | |
| 4195 | + | |
| 4196 | + | |
4192 | 4197 | | |
4193 | 4198 | | |
4194 | 4199 | | |
| |||
4620 | 4625 | | |
4621 | 4626 | | |
4622 | 4627 | | |
4623 | | - | |
4624 | 4628 | | |
4625 | 4629 | | |
4626 | 4630 | | |
| |||
4647 | 4651 | | |
4648 | 4652 | | |
4649 | 4653 | | |
4650 | | - | |
4651 | 4654 | | |
4652 | 4655 | | |
4653 | 4656 | | |
| |||
4708 | 4711 | | |
4709 | 4712 | | |
4710 | 4713 | | |
4711 | | - | |
4712 | 4714 | | |
4713 | 4715 | | |
4714 | 4716 | | |
| |||
4753 | 4755 | | |
4754 | 4756 | | |
4755 | 4757 | | |
4756 | | - | |
4757 | 4758 | | |
4758 | 4759 | | |
4759 | 4760 | | |
| |||
4785 | 4786 | | |
4786 | 4787 | | |
4787 | 4788 | | |
4788 | | - | |
4789 | 4789 | | |
4790 | 4790 | | |
4791 | 4791 | | |
| |||
4813 | 4813 | | |
4814 | 4814 | | |
4815 | 4815 | | |
4816 | | - | |
4817 | 4816 | | |
4818 | 4817 | | |
4819 | 4818 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
| |||
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
113 | 119 | | |
114 | 120 | | |
115 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
116 | 132 | | |
117 | 133 | | |
118 | 134 | | |
119 | 135 | | |
120 | 136 | | |
121 | 137 | | |
122 | 138 | | |
123 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
124 | 143 | | |
125 | 144 | | |
126 | 145 | | |
127 | 146 | | |
128 | 147 | | |
129 | 148 | | |
130 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
131 | 153 | | |
132 | 154 | | |
133 | 155 | | |
| |||
138 | 160 | | |
139 | 161 | | |
140 | 162 | | |
141 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
142 | 167 | | |
143 | 168 | | |
144 | 169 | | |
145 | 170 | | |
146 | 171 | | |
147 | 172 | | |
148 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
149 | 176 | | |
150 | 177 | | |
151 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1247 | 1247 | | |
1248 | 1248 | | |
1249 | 1249 | | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
0 commit comments