Skip to content

pipeline: data_input / data_output are validated but silently ignored; stages get no inputs and their outputs are lost #911

Closed

Description

@scttfrdmn

Found while fixing #906 (see #910).

A pipeline stage's data_input and data_output are accepted and validated (pkg/pipeline/pipeline.go, Stage.Validate), and every file under examples/pipelines/ uses them, but nothing acts on them. The stage instances' user data, written by lambda/pipeline-orchestrator/main.go generatePipelineUserData, has only placeholders:

# TODO: Implement S3 input download based on data_input config
...
# TODO: Implement S3 output upload based on data_output config

No other code on the live path reads DataInput or DataOutput. The only code that implements the handoff, pkg/pipeline/data_handoff.go, is reached only through spored run-pipeline-stage, which nothing runs (#910).

Effect: in a pipeline like examples/pipelines/ml-training.json, train declares data_input: {source_stage: preprocess, dest_path: /data/input}. It starts with an empty /data/input, and every stage's declared outputs are thrown away when its instance terminates. Nothing warns the user. The pipeline can still report COMPLETED.

Found by reading the code; not reproduced against AWS.

Suggested: implement the handoff (#910 option 2), or reject data_input/data_output at spawn pipeline validate/launch until it exists, so the gap is visible.

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