Commit eff75cc
committed
gh-47798: run_pipeline: reject session/group kwargs and pipeline-level stderr=STDOUT
start_new_session and process_group: each command is spawned as a
sibling child of the calling process, so applying these per command
yields N separate sessions/groups rather than a single group spanning
the pipeline.
stderr=STDOUT at the pipeline level: would merge each non-final
command's stderr into the next command's stdin. Per-command
PipelineCommand(stderr=STDOUT) covers the legitimate use.
Leave a note at Popen.__init__ reminding future kwarg additions to
consider run_pipeline forwarding.1 parent 84c9ec9 commit eff75cc
3 files changed
Lines changed: 64 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
319 | 327 | | |
320 | 328 | | |
321 | 329 | | |
| |||
338 | 346 | | |
339 | 347 | | |
340 | 348 | | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
| 349 | + | |
| 350 | + | |
346 | 351 | | |
347 | 352 | | |
348 | 353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1108 | 1108 | | |
1109 | 1109 | | |
1110 | 1110 | | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
1111 | 1131 | | |
1112 | 1132 | | |
1113 | 1133 | | |
| |||
1581 | 1601 | | |
1582 | 1602 | | |
1583 | 1603 | | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
1584 | 1607 | | |
1585 | 1608 | | |
1586 | 1609 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2208 | 2208 | | |
2209 | 2209 | | |
2210 | 2210 | | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
2211 | 2228 | | |
2212 | 2229 | | |
2213 | 2230 | | |
| |||
2538 | 2555 | | |
2539 | 2556 | | |
2540 | 2557 | | |
2541 | | - | |
2542 | | - | |
2543 | | - | |
2544 | | - | |
2545 | | - | |
2546 | | - | |
2547 | | - | |
2548 | | - | |
2549 | | - | |
2550 | | - | |
2551 | | - | |
2552 | | - | |
2553 | | - | |
| 2558 | + | |
| 2559 | + | |
| 2560 | + | |
| 2561 | + | |
| 2562 | + | |
| 2563 | + | |
| 2564 | + | |
| 2565 | + | |
| 2566 | + | |
| 2567 | + | |
| 2568 | + | |
| 2569 | + | |
| 2570 | + | |
| 2571 | + | |
2554 | 2572 | | |
2555 | 2573 | | |
2556 | 2574 | | |
| |||
0 commit comments