Closed Bug 1463480 Opened 6 years ago Closed 6 years ago

"Add new jobs" failing with "UnboundLocalError: local variable 'task' referenced before assignment"

Categories

(Firefox Build System :: Task Configuration, task)

task
Not set
normal

Tracking

(firefox62 fixed)

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: jfkthame, Assigned: dustin)

Details

Attachments

(1 file)

From the raw log:

[task 2018-05-22T16:01:59.335Z] executing ['bash', '-cx', 'cd /builds/worker/checkouts/gecko && ln -s /builds/worker/artifacts artifacts && ./mach --log-no-times taskgraph action-callback\n']
[task 2018-05-22T16:01:59.337Z] + cd /builds/worker/checkouts/gecko
[task 2018-05-22T16:01:59.337Z] + ln -s /builds/worker/artifacts artifacts
[task 2018-05-22T16:01:59.338Z] + ./mach --log-no-times taskgraph action-callback
[task 2018-05-22T16:01:59.648Z] loading config from `taskcluster/ci/config.yml`
[task 2018-05-22T16:01:59.701Z] Traceback (most recent call last):
[task 2018-05-22T16:01:59.701Z]   File "/builds/worker/checkouts/gecko/taskcluster/mach_commands.py", line 250, in action_callback
[task 2018-05-22T16:01:59.701Z]     test=False)
[task 2018-05-22T16:01:59.701Z]   File "/builds/worker/checkouts/gecko/taskcluster/taskgraph/actions/registry.py", line 289, in trigger_action_callback
[task 2018-05-22T16:01:59.702Z]     cb(Parameters(**parameters), graph_config, input, task_group_id, task_id, task)
[task 2018-05-22T16:01:59.702Z] UnboundLocalError: local variable 'task' referenced before assignment

Changelog for that file:
https://hg.mozilla.org/mozilla-central/filelog/51f2535c797495f1f4e864072c2449b7c28669de/taskcluster/taskgraph/actions/registry.py

Also recently this landed on the Treeherder side (and is in production already):
https://github.com/mozilla/treeherder/pull/3502

Dustin, I don't suppose you have any ideas? :-)
Flags: needinfo?(dustin)
Component: Treeherder: Job Triggering & Cancellation → Task Configuration
Product: Tree Management → Firefox Build System
Version: --- → unspecified
Flags: needinfo?(dustin)
Assignee: nobody → dustin
Comment on attachment 8979670 [details]
Bug 1463480 - always set task, even for taskgraph-level actions;

https://reviewboard.mozilla.org/r/245808/#review251918
Attachment #8979670 - Flags: review?(mozilla) → review+
Pushed by dmitchell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/32f3c058a394
always set task, even for taskgraph-level actions; r=tomprince
Many thanks for the fix! :-)
https://hg.mozilla.org/mozilla-central/rev/32f3c058a394
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: