Closed Bug 1353066 Opened 8 years ago Closed 8 years ago

"Add new jobs" complains "Error: jsyaml not defined"

Categories

(Tree Management :: Treeherder, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gbrown, Assigned: bstack)

References

Details

Attachments

(1 file)

Just noticed this starting today. When I "Add new jobs" in taskcluster, it seems to fail and briefly displays an error, "Taskcluster: jsyaml not defined".
(In reply to Geoff Brown [:gbrown] from comment #0) > When I "Add new jobs" in taskcluster, it s/taskcluster/treeherder/ ...but I assume the issue is in taskcluster, from the error message.
It sounds like it's in the TH UI, actually.
Flags: needinfo?(bstack)
Assignee: nobody → bstack
Flags: needinfo?(bstack)
Status: NEW → ASSIGNED
Blocks: 1336556
Component: General → Treeherder
Priority: -- → P1
Product: Taskcluster → Tree Management
Summary: Treeherder "Add new jobs" complains "Taskcluster: jsyaml not defined" → "Add new jobs" complains "Error: jsyaml not defined"
Version: unspecified → ---
Attachment #8854145 - Flags: review?(emorley)
Comment on attachment 8854145 [details] [review] [treeherder] imbstack:move-jsyaml-to-new-way > mozilla:master Chatted with Cameron about this earlier and he agreed to take the review.
Attachment #8854145 - Flags: review?(emorley) → review?(cdawson)
I'm not able to reproduce this locally at this point. Bstack: can you try again?
Flags: needinfo?(bstack)
I can still repro. STR are missing from comment 0, but the ones I tried were: 1) Open a single push on stage (for a push that has a decision task) 2) Use the "add new job" link on the push dropdown thing 3) Wait for the runnable jobs to appear in yellow 4) Select one of those new "fake" jobs 5) Open web console 6) Click the "trigger new jobs" button that appears on the push banner (Note: not in the job details panel below. Not being very familiar with this feature, I first tried pressing retrigger there but it does nothing.) 7) Wait a few seconds until a status message appears in the main UI 8) Look at web console Expected: Success status message and no exceptions in the web console Actual: Main UI error message says "Taskcluster: jsyaml not defined", and web console has a "Error: jsyaml is not defined" exception.
Flags: needinfo?(bstack)
Ahh! OK, yeah, I can repro this now. I thought it was at the "Add new jobs" point.
I proposed an alternative solution in the PR. Bstack says he'll take a look at it today
Attachment #8854145 - Flags: review?(cdawson) → review+
Commit pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/b22616a461b99e773dc514d55abc9b28c9894f36 Bug 1353066 - Make jsyaml available as a service (#2314) This fixes exceptions when using the "add new jobs" feature.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: