-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Labels
P3Low priorityLow priorityarea/archive-logsArchive Logs featureArchive Logs featurearea/templatingTemplating with `{{...}}`Templating with `{{...}}`type/regressionRegression from previous behavior (a specific type of bug)Regression from previous behavior (a specific type of bug)
Milestone
Description
Pre-requisites
- I have double-checked my configuration
- I can confirm the issues exists when I tested with
:latest - I'd like to contribute the fix myself (see contributing guide)
What happened/what you expected to happen?
We have workflow templates that reference as argument artifact inputs the .main-logs output artifact from the a previous step. This arrangement has been working well until a recent upgrade from v3.4.11 to v3.4.12 (same also occurs when upgrading to v3.5.x)
The HTTP400 error response content looks like this
{
"code":3,
"message":"templates.entrypoint-handler.steps failed to resolve {{ steps.foobar.outputs.artifacts.main-logs }}"
}The supplied sample workflow will work fine in v3.4.11 and prior but fail in v3.4.12 (and v3.5.x)
Version
v3.4.12
Paste a small workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: bugreport-20231023a
spec:
workflowMetadata: {}
entrypoint: entrypoint-handler
templates:
- name: entrypoint-handler
steps:
- - name: foobar
template: foobar
arguments:
parameters:
- { name: target, value: "hello world" }
- - name: workflow-processor
templateRef:
name: bugreport-20231023a-templates
template: workflow-processor
arguments:
artifacts:
- { name: artifact_engine_log, from: "{{ steps.foobar.outputs.artifacts.main-logs }}" }
- name: foobar
inputs:
parameters:
- { name: target }
container:
image: docker/whalesay
command: [ "cowsay" ]
args: [ "{{ inputs.parameters.target }}" ]
---
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: bugreport-20231023a-templates
spec:
templates:
- name: workflow-processor
inputs:
artifacts:
- { name: artifact_engine_log, path: "/data/artifact_engine_log", optional: true }
container:
image: alpine:latest
command: ["cat"]
args: [ "/data/artifact_engine_log" ]Logs from the workflow controller
time="2023-10-24T22:56:42.450Z" level=info duration=1.173461ms method=GET path=index.html size=473 status=0
time="2023-10-24T22:56:47.672Z" level=info msg="finished unary call with code InvalidArgument" error="rpc error: code = InvalidArgument desc = templates.entrypoint-handler.steps failed to resolve {{ steps.foobar.outputs.artifacts.main-logs }}" grpc.code=InvalidArgument grpc.method=SubmitWorkflow grpc.service=workflow.WorkflowService grpc.start_time="2023-10-24T22:56:47Z" grpc.time_ms=72.616 span.kind=server system=grpc
time="2023-10-24T22:56:47.676Z" level=info duration=84.197433ms method=POST path=/api/v1/workflows/redacted-workflows/submit size=122 status=400
Logs from in your workflow's wait container
NA
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3Low priorityLow priorityarea/archive-logsArchive Logs featureArchive Logs featurearea/templatingTemplating with `{{...}}`Templating with `{{...}}`type/regressionRegression from previous behavior (a specific type of bug)Regression from previous behavior (a specific type of bug)