Commit 12d171e
committed
Address flaky execute_kill test
The primary loop in `spawn_cargo_task` works by getting messages from
the worker and then handing them off to the stdout / stderr / status
channels. If one channel is full, then everything will queue behind
it, resulting in all work stopping.
The test was waiting on the stdout channel and had dropped the status
channel, but nothing was processing the stderr channel. This means
that if enough[^1] stderr packets had been delivered before any
stdout, the test would fail.
To reproduce this, you can hack the loop in `spawn_cargo_task` so that
it delivers every `stderr` packet multiple times, forcing the channel
to be filled immediately.
[^1]: Over eight with the current setup.1 parent 9c067cd commit 12d171e
1 file changed
+37
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
764 | 764 | | |
765 | 765 | | |
766 | 766 | | |
767 | | - | |
768 | | - | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
769 | 785 | | |
770 | 786 | | |
771 | 787 | | |
| |||
815 | 831 | | |
816 | 832 | | |
817 | 833 | | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
818 | 843 | | |
819 | 844 | | |
820 | 845 | | |
| |||
3188 | 3213 | | |
3189 | 3214 | | |
3190 | 3215 | | |
3191 | | - | |
| 3216 | + | |
3192 | 3217 | | |
3193 | 3218 | | |
3194 | 3219 | | |
3195 | 3220 | | |
3196 | 3221 | | |
3197 | 3222 | | |
3198 | 3223 | | |
3199 | | - | |
3200 | | - | |
| 3224 | + | |
| 3225 | + | |
3201 | 3226 | | |
3202 | | - | |
| 3227 | + | |
| 3228 | + | |
| 3229 | + | |
| 3230 | + | |
3203 | 3231 | | |
3204 | 3232 | | |
3205 | 3233 | | |
3206 | 3234 | | |
3207 | 3235 | | |
3208 | | - | |
| 3236 | + | |
3209 | 3237 | | |
3210 | 3238 | | |
3211 | 3239 | | |
3212 | 3240 | | |
3213 | 3241 | | |
3214 | 3242 | | |
3215 | 3243 | | |
3216 | | - | |
3217 | | - | |
| 3244 | + | |
3218 | 3245 | | |
3219 | 3246 | | |
3220 | 3247 | | |
| |||
0 commit comments