Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
fix: merging of pipe groups when multiple rules are chained together …
…via pipes (#1173) * when handling pipes, process jobs in BFS order handle_pipes() depends on the jobs being in BFS order otherwise, it won't merge groups together properly see #975 * create test for #975 - multiple piped rules * create output for multiple pipes test * fix formatting and filter finished jobs * register test_pipes_multiple with nosetests in tests.py * perf: use mergeable CandidateGroup objects instead of topological sorting of the jobs (faster). Co-authored-by: Johannes Köster <johannes.koester@tu-dortmund.de>
- Loading branch information
1 parent
51e5afc
commit de91d2c
Showing
5 changed files
with
69 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
shell.executable("bash") | ||
|
||
rule all: | ||
input: | ||
"test.out" | ||
|
||
rule a: | ||
output: | ||
pipe("testa.{i}.txt") | ||
shell: | ||
"echo {wildcards.i} > {output}" | ||
|
||
rule b: | ||
input: | ||
rules.a.output | ||
output: | ||
pipe("testb.{i}.txt") | ||
shell: | ||
"cat {input} > {output}" | ||
|
||
rule c: | ||
input: | ||
expand(rules.b.output, i=range(2)) | ||
output: | ||
"test.out" | ||
shell: | ||
"cat {input} > {output}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
0 | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters