Skip to content

format_checking test can fail spuriously because rev no longer ships by default on some systems #307

Description

@adamnovak

The format-checking test runs this CWL file, which assumes that a rev binary is available on the system, and does not provide one via container.

$namespaces:
edam: "http://edamontology.org/"
cwlVersion: v1.2
class: CommandLineTool
doc: "Reverse each line using the `rev` command"
inputs:
input:
type: File
inputBinding: {}
format: edam:format_2330
outputs:
output:
type: File
outputBinding:
glob: output.txt
format: edam:format_2330
baseCommand: rev
stdout: output.txt

In Debian and Ubuntu (between 25.10 and 26.04), the rev binary which used to be in util-linux, an extremely essential package, is now in bsdextrautils, a less essential package. In particular, that package is not installed in the Docker container ubuntu:26.04. If you docker run -ti --rm ubuntu:26.04 dpkg --list you will see that it ships bsdutils, coreutils, and util-linux, but not bsdextrautils.

The test should probably be rewritten to not assume that all CWL host platforms ship a rev binary.

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