Retriggering build signing tasks fails with jsonschema.exceptions.ValidationError: [] is too short

NEW
Unassigned

Status

Release Engineering
Release Automation
a month ago
a month ago

People

(Reporter: aryx, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

See the Windows build signing exceptions e.g. in https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=fe49764e750b4fe5e133a4075bea613ad5008b6e&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-resultStatus=retry&filter-resultStatus=usercancel&filter-resultStatus=runnable

Build log: https://treeherder.mozilla.org/logviewer.html#?job_id=149831048&repo=autoland

2017-12-05 12:32:54,230 - asyncio - DEBUG - Using selector: EpollSelector
2017-12-05 12:32:54,232 - signingscript.script - INFO - validating task
2017-12-05 12:32:54,232 - signingscript.task - DEBUG - {'properties': {'scopes': {'items': {'type': 'string'}, 'uniqueItems': True, 'type': 'array', 'minItems': 1}, 'payload': {'properties': {'upstreamArtifacts': {'uniqueItems': True, 'items': {'properties': {'paths': {'items': {'type': 'string'}, 'uniqueItems': True, 'type': 'array', 'minItems': 1}, 'taskId': {'type': 'string'}, 'taskType': {'type': 'string'}, 'formats': {'items': {'type': 'string'}, 'uniqueItems': True, 'type': 'array'}}, 'required': ['taskId', 'taskType', 'paths', 'formats'], 'type': 'object'}, 'type': 'array', 'minItems': 1}}, 'required': ['upstreamArtifacts'], 'type': 'object'}, 'dependencies': {'items': {'type': 'string'}, 'uniqueItems': True, 'type': 'array', 'minItems': 1}}, 'title': 'Taskcluster signing task minimal schema', 'required': ['scopes', 'payload'], 'type': 'object'}
Traceback (most recent call last):
  File "/builds/scriptworker/lib/python3.5/site-packages/scriptworker/client.py", line 52, in validate_json_schema
    jsonschema.validate(data, schema)
  File "/builds/scriptworker/lib/python3.5/site-packages/jsonschema/validators.py", line 541, in validate
    cls(schema, *args, **kwargs).validate(instance)
  File "/builds/scriptworker/lib/python3.5/site-packages/jsonschema/validators.py", line 130, in validate
    raise error
jsonschema.exceptions.ValidationError: [] is too short

Failed validating 'minItems' in schema['properties']['dependencies']:
    {'items': {'type': 'string'},
     'minItems': 1,
     'type': 'array',
     'uniqueItems': True}

On instance['dependencies']:
    []

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builds/scriptworker/lib/python3.5/site-packages/signingscript/script.py", line 140, in main
    loop.run_until_complete(async_main(context, conn=conn))
  File "/tools/python35/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
    return future.result()
  File "/tools/python35/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/tools/python35/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/builds/scriptworker/lib/python3.5/site-packages/signingscript/script.py", line 51, in async_main
    validate_task_schema(context)
  File "/builds/scriptworker/lib/python3.5/site-packages/signingscript/task.py", line 71, in validate_task_schema
    scriptworker.client.validate_json_schema(context.task, task_schema)
  File "/builds/scriptworker/lib/python3.5/site-packages/scriptworker/client.py", line 56, in validate_json_schema
    exit_code=STATUSES['malformed-payload']
scriptworker.exceptions.ScriptWorkerTaskException: Can't validate task schema!
[] is too short

Failed validating 'minItems' in schema['properties']['dependencies']:
    {'items': {'type': 'string'},
     'minItems': 1,
     'type': 'array',
     'uniqueItems': True}

On instance['dependencies']:
    []
exit code: 3
Component: Hooks → Release Automation
Product: Taskcluster → Release Engineering
QA Contact: catlee

Comment 1

a month ago
8 failures in 889 pushes (0.009 failures/push) were associated with this bug in the last 7 days.    

Repository breakdown:
* autoland: 8

Platform breakdown:
* windows2012-32: 5
* windows2012-64: 3

For more details, see:
https://brasstacks.mozilla.com/orangefactor/?display=Bug&bugid=1423182&startday=2017-12-04&endday=2017-12-10&tree=all
You need to log in before you can comment on or make changes to this bug.