Closed Bug 1305048 Opened 8 years ago Closed 8 years ago

Add node/npm to the generic "win2012r2" worker

Categories

(Taskcluster :: Workers, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: standard8, Assigned: standard8)

References

Details

(Whiteboard: [good first bug])

Attachments

(1 file)

Currently I'm working on an example github repository for add-ons that Mozilla develops for test pilot & system add-ons. I'm also working towards better testing facilities for Activity Stream.

As part of that, having Windows workers for testing would be very useful, as that is where most of our users are and gives us reasonable coverage alongside Linux.

As part of this, we need node/npm installed on the windows workers so we can use the install and build facilities within the github repos.
I think this should do it...
Assignee: pmoore → standard8
Attachment #8794225 - Flags: review?(pmoore)
Comment on attachment 8794225 [details] [review]
Link to Github pull-request: https://github.com/taskcluster/generic-worker/pull/23

Looks great, many thanks! :-)
Attachment #8794225 - Flags: review?(pmoore) → review+
The new AMIs are currently being created...

us-east-1: ami-1be69d0c
us-west-1: ami-d3327cb3
us-west-2: ami-93419df3

The win2012r2 worker type should automatically get updated when the AMI creation is completed, so should be available shortly for testing (assuming no win2012r2 are still lurking around with an older AMI).
Keep your eye on https://tools.taskcluster.net/task-inspector/#JLKoTBOOQoeeurFD2aUaJw/0 - it is the original task Mark created that requires npm/node. I've recreated it, and currently a new worker is spinning up in response...
OK, it looks like that PATH wasn't updated as hoped, new task fixed that:

https://tools.taskcluster.net/task-inspector/#SCAnreSdRSulsHqG1NHQ4g/0

I'll update the worker type to set the PATH correctly so it isn't needed as an extra task step.
OK that fixed that.

However, looks like npm expects to be run from a bash context, rather than from a command prompt:

https://tools.taskcluster.net/task-inspector/#c-5SqdpwTaSUg8yWzoN04w/0

Mark - please see the adjusted task definition, with multiple commands. It is effectively the same as the command1 && comand2 && command3 && .... commandN construction you previously had (any command failure will cause the task to terminate) but is a little easier to read at a glance.

https://queue.taskcluster.net/v1/task/c-5SqdpwTaSUg8yWzoN04w

I'm going to mark this is as resolved, as we now have npm/node on the workers. Please reopen if you disagree.

Note, you can run commands under msys bash using e.g. C:\mozilla-build\msys\bin\bash.exe - however, I'm not sure the windows version of npm will play nicely with msys - you might need an msys version of npm for that. Alternatively maybe code can be adapted to work under a native windows node installation?
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Component: Generic-Worker → Workers
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: