Actions
Bug #7600
open[Crunch] Unhelpful translation of script parameter outside script_parameters
Story points:
1.0
Release:
Release relationship:
Auto
Description
Problem¶
A user wrote a pipeline template that used run-command's task.env directive. They accidentally defined task.env outside script_parameters, in the top-level component definition.
The resulting job failed because of the missing environment. Weirder, task.env did appear as a script_parameter in that job, but as a string like "{ \"KEY\": \"value\" }"
. It's hard to imagine how this behavior helps, and it made the issue more confusing to debug because task.env at least appeared to be in the script_parameters.
Crunch should either add the parameter without stringifying it, or not add the parameter at all.
Fix¶
We believe this is backward compatibility code for older Arvados pipelines.
- Take out this translation code.
- Before creating any jobs, a-r-p-i should check the entire pipeline for unrecognized component fields like this, and report them all as fatal errors to the user, then abort.
- Add test(s) to the CLI test suite for a-r-p-i.
Updated by Brett Smith about 9 years ago
- Description updated (diff)
- Story points set to 1.0
Updated by Brett Smith about 9 years ago
- Target version set to Arvados Future Sprints
Updated by Ward Vandewege over 3 years ago
- Target version deleted (
Arvados Future Sprints)
Actions