Skip to content

Validation error when importing docker definition file as hint #80

Closed

Description

@samuell

How to reproduce:

  1. Create this tool definition file, echo.cwl:

    #!/usr/bin/env cwl-runner
    
    cwlVersion: "cwl:draft-3"
    
    class: CommandLineTool
    
    hints:
      - $import: echo-docker.yml
    
    inputs:
      - id: "text"
        type: [string]
        description: |
          the text to echo
        inputBinding:
          position: 1
    
    outputs: []
    
    baseCommand:
      - echo
  2. Create this docker definition file, echo-docker.yml:

    class: DockerRequirement
    dockerPull: ubuntu:16.04
    dockerFile: |
      ### Base Image
      FROM ubuntu:16.04
  3. Create this job input file:

    text: Hello, world!
  4. Execute:

    cwl-runner --no-container echo.cwl echo_testjob.yml 

Output received:

```bash
/home/samuel/.pyenv/versions/2.7.11/bin/cwl-runner 1.0.20160427142240
Tool definition failed validation:
Validating hint `DockerRequirement`: could not validate field `id` because it is not recognized and strict is True, valid fields are: class, dockerPull, dockerLoad, dockerFile, dockerImport, dockerImageId, dockerOutputDirectory
could not validate field `name` because it is not recognized and strict is True, valid fields are: class, dockerPull, dockerLoad, dockerFile, dockerImport, dockerImageId, dockerOutputDirectory
```

Expected output:

Something else.

OS: Xubuntu 16.04 64bit
CWL Tool: 1.0.20160427142240
Python: 2.7.11

Activity

  1. samuell commented on May 10, 2016

    @samuell
    ContributorAuthor

    Hmm, seems to have strong connections to #52 ...

  2. added a commit that references this issue on Jul 23, 2017
  3. manu-chroma commented on Aug 14, 2017

    @manu-chroma
    Member

    Even though we're on the path of deprecating draft-3, just testing your reproducible example and the workflow is completed successfully.

    @mr-c can we close?

  4. mr-c commented on Aug 14, 2017

    @mr-c
    Member

    @manu-chroma Sure, can you paste the results when you close this issue?

  5. manu-chroma commented on Aug 14, 2017

    @manu-chroma
    Member

    My output using latest cwltool:

    (venv) [venv] ~/github/test_cwl_runner $ cwltool --no-container echo.cwl echo_testjob.yml                     04:08:26
    /home/manu/github/cwltool/venv/bin/cwltool 1.0.20170812174804
    Resolved 'echo.cwl' to 'file:///home/manu/github/test_cwl_runner/echo.cwl'
    [job echo.cwl] /tmp/tmpw8qbEY$ echo \
        'Hello, world!'
    Hello, world!
    [job echo.cwl] completed success
    {}
    Final process status is success
  6. added a commit that references this issue on Mar 20, 2018
  7. added a commit that references this issue on Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions