forked from broadinstitute/cromwell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better import failure messages and importLocalFilesystem resolver set (…
- Loading branch information
1 parent
af6747d
commit 139b568
Showing
16 changed files
with
110 additions
and
54 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
centaur/src/main/resources/standardTestCases/import_passwd.test
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,13 @@ | ||
name: import_passwd | ||
testFormat: workflowfailure | ||
|
||
files { | ||
workflow: import_passwd/import_passwd.wdl | ||
} | ||
|
||
metadata { | ||
status: Failed | ||
"failures.0.message": "Workflow input processing failed" | ||
"failures.0.causedBy.0.message": "Failed to import workflow /etc/passwd.:\nBad import /etc/passwd: Failed to resolve '/etc/passwd' using resolver: 'http importer (no 'relative-to' origin)' (reason 1 of 1): Relative path" | ||
} | ||
|
5 changes: 5 additions & 0 deletions
5
centaur/src/main/resources/standardTestCases/import_passwd/import_passwd.wdl
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,5 @@ | ||
import "/etc/passwd" as whoa_there_buddy | ||
|
||
workflow foo { | ||
call whoa_there_buddy.dont_do_that | ||
} |
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
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
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
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
7 changes: 7 additions & 0 deletions
7
womtool/src/test/resources/validate/wdl_draft3/invalid/bad_import/bad_import.wdl
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,7 @@ | ||
version 1.0 | ||
|
||
import "sub_dir/bad_import.wdl" as found_but_invalid | ||
|
||
workflow foo { | ||
call found_but_invalid.call_a_bad_thing | ||
} |
4 changes: 4 additions & 0 deletions
4
womtool/src/test/resources/validate/wdl_draft3/invalid/bad_import/error.txt
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,4 @@ | ||
Failed to import 'sub_dir/bad_import.wdl' (reason 1 of 4): Failed to import 'not/a/file.wdl' (reason 1 of 4): Failed to resolve 'not/a/file.wdl' using resolver: 'relative to directory [...]/cromwell (escaping allowed)' (reason 1 of 1): File not found: not/a/file.wdl | ||
Failed to import 'sub_dir/bad_import.wdl' (reason 2 of 4): Failed to import 'not/a/file.wdl' (reason 2 of 4): Failed to resolve 'not/a/file.wdl' using resolver: 'entire local filesystem (relative to '/')' (reason 1 of 1): File not found: not/a/file.wdl | ||
Failed to import 'sub_dir/bad_import.wdl' (reason 3 of 4): Failed to import 'not/a/file.wdl' (reason 3 of 4): Failed to resolve 'not/a/file.wdl' using resolver: 'relative to directory [...]/sub_dir (escaping allowed)' (reason 1 of 1): File not found: not/a/file.wdl | ||
Failed to import 'sub_dir/bad_import.wdl' (reason 4 of 4): Failed to import 'not/a/file.wdl' (reason 4 of 4): Failed to resolve 'not/a/file.wdl' using resolver: 'http importer (no 'relative-to' origin)' (reason 1 of 1): Relative path |
7 changes: 7 additions & 0 deletions
7
womtool/src/test/resources/validate/wdl_draft3/invalid/bad_import/sub_dir/bad_import.wdl
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,7 @@ | ||
version 1.0 | ||
|
||
import "not/a/file.wdl" as not_a_file | ||
|
||
workflow call_a_bad_thing { | ||
call not_a_file.not_a_task | ||
} |