Project

General

Profile

Actions

Bug #3185

closed

Job validation fails with no error message if runtime_constraints is nil.

Added by Tom Clegg over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
Start date:
07/07/2014
Due date:
% Done:

100%

Estimated time:
(Total: 1.00 h)
Story points:
0.5

Subtasks 1 (0 open1 closed)

Task #3186: Review 3185-job-invalid-without-errorsResolvedPeter Amstutz07/07/2014

Actions
Actions #1

Updated by Tom Clegg over 10 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Peter Amstutz over 10 years ago

I tried to submit the following job:

arv job create --job "{\"script\":\"hash\",\"script_parameters\":{\"input\":\"c1bad4b39ca5a924e481008009d94e32+210\"},\"script_version\":\"master\",\"repository\":\"arvados\",\"nondeterministic\":null,\"output_is_persistent\":false,\"runtime_constraints\":null,\"owner_uuid\":\"4xphq-j7d0g-lfabuhbixq4e9lq\"}" 

On API server logging, it reports multiple errors:

#<ActiveRecord::RecordInvalid: Validation failed: Runtime constraints must be a Hash, not a NilClass, Owner uuid '4xphq-j7d0g-lfabuhbixq4e9lq' not found, Script version master does not resolve to a commit>

However, the 'arv' command line only presents the first error:

Error: Runtime constraints must be a Hash, not a NilClass

I haven't looked to see if this is a bug in 'arv' or a bug in API server error reporting.

Actions #3

Updated by Peter Amstutz over 10 years ago

I think this is a bug in "arv" because looking at validation errors in another spot, multiple errors are being returned properly.

Actions #4

Updated by Brett Smith over 10 years ago

Tom, can this bug be closed? I see the first associated branch is merged. Are there sub-bugs still lurking about?

Actions #5

Updated by Ward Vandewege over 10 years ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF