Skip to content
Novus Examples
cwl598 B

CWL Workflow, Intentionally Invalid

An intentionally invalid CWL document: a nonexistent cwlVersion, an unknown class, a step consuming an output no step produces, and outputs given as a bare string. Four documented faults for a CWL validator to report.

Preview — first 21 linescwl
# INTENTIONALLY INVALID. Well-formed YAML, invalid CWL in four documented ways:
#   1. `cwlVersion` names a version that does not exist
#   2. `class` is not one of Workflow, CommandLineTool, ExpressionTool or Operation
#   3. the `publish` step consumes an output (`missing_step/result`) that no step produces
#   4. `outputs` is a string where a map or list of output parameters is required
cwlVersion: v9.9
class: Pipeline

inputs:
  source:
    type: File

outputs: notice

steps:
  publish:
    run: cwl-command-line-tool.cwl
    in:
      extract: missing_step/result
    out: [record_count]

Specifications

Variant
intentionally invalid
Yaml Well Formed
true
Violations
4
Bad Version
v9.9

Testing contract

Expected to fail
Scenario
Validate a well-formed YAML document against the CWL v1.2 schema
Expected result
Validation fails with at least 4 errors, including the dangling missing_step/result reference that no step in the workflow produces

What is a .cwl file?

CWL (Common Workflow Language) is an open standard for describing command-line analysis workflows portably. A .cwl document is YAML (or JSON) declaring a cwlVersion and a class of CommandLineTool, Workflow, or ExpressionTool, with typed inputs and outputs, input bindings that map values onto command-line arguments, and — for workflows — steps wired together by source references. Requirements and hints declare the container image and resources a step needs.

How to use this file

Use an example .cwl file to test workflow parsers, validators, and execution engines, verifying that step dependencies form the expected graph, that input bindings produce the documented command line, and that an unsupported cwlVersion is rejected.

How to use this file for testing

“CWL Workflow, Intentionally Invalid” is a deterministic Novus Examples fixture for Error handling, Config parsing, Schema validation. Deliberately corrupt and invalid files, clearly labelled, for testing how your tool fails.

Documented properties for this file: CWL · 598 bytes. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Pipeline and infrastructure fixtures are inert configuration: steps reference fictional images and scripts, and nothing here executes. Run your linter, schema validator, migrator, or policy engine against them, and expect the deprecated-syntax and intentionally invalid variants to be rejected.

Generated by generation/pipelines.py. Free for any use, no attribution required — license.