Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nextflow issues #663

Merged
merged 4 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ private List<Tuple2<String, Map<String, Object>>> _paramsToParamSets(Map params,
// Process ID
def id = tup[0] ?: globalID

if (workflow.stubRun) {
if (workflow.stubRun && !id) {
// if stub run, explicitly add an id if missing
id = id ? id : "stub${index}"
id = "stub${index}"
}
assert id != null: "Each parameter set should have at least an 'id'"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,15 @@ class NextflowScriptTest extends AnyFunSuite with BeforeAndAfterAll {
)

assert(exitCode == 0, s"\nexit code was $exitCode\nStd output:\n$stdOut\nStd error:\n$stdErr")
assert(stdOut.contains("base:step1_alias:proc"))
assert(stdOut.contains("base:step1:proc"))
// Note: Nextflow 23.04 changed the way processes are printed in the log
// original:
// [info] [30/b6eaaf] process > alias:base:step1:processWf:... [100%] 1 of 1 ✔
// [info] [bf/166913] process > alias:base:step1_alias:proc... [100%] 1 of 1 ✔
// since nextflow 23.04:
// [info] [31/1c0834] ali…cessWf:step1_process (one) | 1 of 1 ✔
// [info] [f1/e92549] ali…:step1_alias_process (one) | 1 of 1 ✔
assert(stdOut.contains(":step1_alias:proc") || stdOut.contains(":step1_alias_process"))
assert(stdOut.contains(":step1:proc") || stdOut.contains(":step1_process"))
assert(!stdOut.contains("Key for module 'step1' is duplicated"))
}

Expand Down
Loading