-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
test failed, not sure why #94
Comments
How about sorting the file and directory objects in the I guess the conformance test 107 implicitly expects that they are sorted but such a behavior is not documented in the spec. However, IMO, the above output object should be accepted by - Clarify that unspecified details related to execution are left open to the platform. It is the same in v1.0 because v1.1 has no breaking changes from v1.0, I guess. What do you think, @mr-c? Maybe related: common-workflow-language/cwl-v1.2#233 |
CWL is built upon the POSIX standards. In https://www.commonwl.org/v1.0/CommandLineTool.html#CommandOutputBinding is
POSIX glob(3) states that the result mist be sorted according to the current locale. I don't know of any locale that sorts the letters "a", "b", "c", "d", "e" in a different order. |
@mr-c Thanks for the information and sorry for the misleading comment about related issue. common-workflow-language/cwl-v1.2#233 is related but not the same issue. As you mentioned, the result of |
I figured the problem seems to be the cwltool!? Searching for the place in my code where the sort order gets messes up I noticed that it happens when my implementation invokes the cwltool to execute my CommandLineTool. Note that my implementation parses the original CommandLineTool and later, upon execution of a step, writes the CommandLineTool to disk. This CommandLineTool can be different from than the original compliance test, but should be equivalent. Below are the tool, input and result of running cwltool. While the input is correctly sorted, the output is not. Of course, I could work around this by sorting the results again in my implementation, but it seems to me this should not have happened anyway. Any ideas? cwl_tool.yaml
cwl_job_input.yaml
cwltool cwl_tool.yaml cwl_job_input.yaml
|
I don't think it is an order issue, cwltest already does an order-independent comparison for listings: https://github.com/common-workflow-language/cwltest/blob/master/cwltest/utils.py#L120 The comparison function is failing to find |
I think I found the problem in the https://github.com/common-workflow-language/cwltest/blob/master/cwltest/utils.py#L79
It seems that if they are identical it is expected that no The other problem is the missing error message. While an exception is thrown in |
Hi,
I am having problems passing test 107 with my implementation and do not understand what is wrong. The File object for file
a
should be what is expected, still cwltest complains. Any ideas?thx
The text was updated successfully, but these errors were encountered: