Skip to content
Novus Examples
yaml1.8 KB

Argo Workflow DAG Template

An Argo Workflows DAG template carrying the same six-task ETL topology as the Airflow, Graphviz and Mermaid fixtures in this category, so a converter or visualiser can be scored against one known answer across four formats.

Preview — first 50 linesyaml
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: orders-etl-
  namespace: example-apps
spec:
  entrypoint: etl
  serviceAccountName: example-workflow
  ttlStrategy:
    secondsAfterCompletion: 3600
  arguments:
    parameters:
      - name: window
        value: 24h

  templates:
    - name: etl
      dag:
        tasks:
          - name: ingest
            template: step
            arguments:
              parameters:
                - name: label
                  value: ingest
          - name: validate
            template: step
            dependencies: [ingest]
            arguments:
              parameters:
                - name: label
                  value: validate
          - name: transform
            template: step
            dependencies: [validate]
            arguments:
              parameters:
                - name: label
                  value: transform
          - name: load
            template: step
            dependencies: [transform]
            arguments:
              parameters:
                - name: label
                  value: load
          - name: refresh
            template: step
            dependencies: [transform]
            arguments:
71 lines total — download for the full file.

Specifications

System
Argo Workflows
Kind
Workflow
Template Type
dag
Tasks
6
Edges
6
Max Parallel Width
2
Topology
ingest > validate > transform > (load, refresh) > notify

Testing contract

Expected to pass
Scenario
Extract a task graph from an Argo DAG template and compare it with the same topology in another format
Expected result
Six tasks and six dependency edges resolve, transform fans out to load and refresh, and notify depends on both

What is a .yaml file?

YAML (YAML Ain't Markup Language) is a human-readable data-serialization format using indentation, key-value pairs, and lists, and is a superset of JSON. It supports comments, anchors, and multiple documents per file, favoring readability for configuration. Its indentation sensitivity makes it error-prone to hand-edit.

How to use this file

Use an example YAML file to test config parsers, indentation and anchor handling, multi-document streams, and safe-loading to avoid arbitrary object construction.

How to use this file for testing

“Argo Workflow DAG Template” is a deterministic Novus Examples fixture for Graph data, Data engineering, Conversion testing. Node/edge datasets in GraphML and GEXF (directed and undirected, with attributes and weights) — for testing network importers, layout tools, and graph converters.

Documented properties for this file: 6 edges. 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.

Code examples

import yaml  # pip install pyyaml

with open("argo-workflow-dag.yaml") as f:
    data = yaml.safe_load(f)
print(data)

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