Closed Bug 1245888 Opened 8 years ago Closed 8 years ago

When the gecko decision fails, it is hard to read because we don't wrap it properly

Categories

(Taskcluster :: UI, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: armenzg, Assigned: dustin)

References

Details

(Whiteboard: [frontend])

I'm happy to fix it if I can get pointed out to the code for this.

Is there also a way to try to reproduce the issue locally? so I can debug it?
It seems I would need to actually try to submit the graph to know that something is wrong with it.

Decision task:
https://tools.taskcluster.net/task-inspector/#BYgHLVADTFmy9qQgD-VFSQ/

Output:
https://public-artifacts.taskcluster.net/BYgHLVADTFmy9qQgD-VFSQ/3/public/logs/live_backing.log
Whiteboard: [frontend]
Component: General → Tools
I've been dealing with some decision task failures in the new task-graph generation stuff, and they look much better.
Depends on: 1258497
Assignee: nobody → dustin
I just deliberately introduced an error into a task, and got:

https://public-artifacts.taskcluster.net/JaeFfiA9RDCeHC3QPICAGw/0/public/logs/live_backing.log
Creating task with taskId XmDtPtJ0T3qZ0ih2zEzlQQ for TaskLabel==GV-1EfcETm6xnt8kHqNeGw
You do not have sufficient scopes. This request requires you
to have one of the following sets of scopes:
[
  [
    "docker-worker:cache:level-1-try-tc-vcs",
    "you-will-not-have-this",
    "secrets:get:project/releng/gecko/build/level-1/*",
    "docker-worker:cache:tooltool-cache",
    "docker-worker:relengapi-proxy:tooltool.download.public",
    "docker-worker:cache:level-1-try-build-linux64-workspace",
    "queue:route:index.gecko.v1.try.revision.linux.55a5327e996925ebd74dfa6c16b3a41e26906e14.linux64.dbg",
    "queue:route:index.gecko.v1.try.latest.linux.linux64.dbg",
    "queue:route:index.buildbot.branches.try.linux64",
    "queue:route:index.buildbot.revisions.55a5327e996925ebd74dfa6c16b3a41e26906e14.try.linux64",
    "queue:route:tc-treeherder.try.2ac32b1e4f75b9f9e3e9fd68b91d59ce0a92f4de",
    "queue:route:tc-treeherder-stage.try.2ac32b1e4f75b9f9e3e9fd68b91d59ce0a92f4de",
    "queue:route:index.gecko.v2.try.revision.55a5327e996925ebd74dfa6c16b3a41e26906e14.firefox.linux64-dbg",
    "queue:route:index.gecko.v2.try.pushdate.2016.05.17.20160517161608.firefox.linux64-dbg",
    "queue:route:index.gecko.v2.try.latest.firefox.linux64-dbg"
  ]
]

You only have the scopes:
[
  "assume:moz-tree:level:1",
  "assume:project:taskcluster:level-1-sccache-buckets",
  "assume:repo:hg.mozilla.org/try:*",

...

  "secrets:get:project/taskcluster/gecko/hgfingerprint",
  "secrets:set:garbage/*"
]

In other words you are missing scopes from one of the options:
 * Option 0:
    - "you-will-not-have-this"
----
errorCode:  InsufficientScopes
statusCode: 403
requestInfo:
  method:   createTask
  params:   {"taskId":"XmDtPtJ0T3qZ0ih2zEzlQQ"}
  payload:  {
  "workerType": "dbg-linux64",
  "scopes": [
    "docker-worker:cache:level-1-try-tc-vcs",
    "you-will-not-have-this",

...

Traceback (most recent call last):
  File "/workspace/gecko/taskcluster/mach_commands.py", line 140, in taskgraph_decision
    return taskgraph.decision.taskgraph_decision(self.log, options)
  File "/workspace/gecko/taskcluster/taskgraph/decision.py", line 64, in taskgraph_decision
    create_tasks(tgg.optimized_task_graph)
  File "/workspace/gecko/taskcluster/taskgraph/create.py", line 31, in create_tasks
    _create_task(session, label_to_taskid[label], label, task_def)
  File "/workspace/gecko/taskcluster/taskgraph/create.py", line 43, in _create_task
    res.raise_for_status()
  File "/workspace/gecko/python/requests/requests/models.py", line 840, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
HTTPError: 403 Client Error: Forbidden for url: http://taskcluster/queue/v1/task/XmDtPtJ0T3qZ0ih2zEzlQQ
[taskcluster 2016-05-17 16:26:05.272Z] === Task Finished ===
[taskcluster 2016-05-17 16:26:09.395Z] Unsuccessful task run with exit code: 1 completed in 556.75 seconds
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Component: Tools → UI and Tools
You need to log in before you can comment on or make changes to this bug.