Closed
Bug 1507488
Opened 6 years ago
Closed 5 years ago
Add python3.6 and hg to $PATH on OSX generic-worker
Categories
(Infrastructure & Operations :: RelOps: Puppet, task)
Infrastructure & Operations
RelOps: Puppet
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ahal, Assigned: dragrom)
References
Details
Attachments
(1 file, 1 obsolete file)
55 bytes,
text/x-github-pull-request
|
dragrom
:
checked-in+
|
Details | Review |
In bug 1466535 we installed python 3 at /tools/python36/bin/python3.6. It also created a symlink to /usr/bin for the Linux generic-worker hosts (but not OSX). Then bug 1505057 added python3 to the $PATH for Windows generic-worker hosts. Now OSX is the last platform without python3 on the $PATH. Getting it added will allow us to call `python3` in our tasks without needing to hardcode the full path to it.
Updated•6 years ago
|
Assignee: relops → dcrisan
Assignee | ||
Comment 1•5 years ago
|
||
Add python3.6 to PATH on OSX workers
Assignee | ||
Updated•5 years ago
|
Status: NEW → ASSIGNED
Reporter | ||
Updated•5 years ago
|
Blocks: 1436037, buildpython3
Assignee | ||
Updated•5 years ago
|
Attachment #9029436 -
Flags: checked-in+
Assignee | ||
Updated•5 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 2•5 years ago
|
||
Has this change been deployed? In my testing, both `which python3` [0] and `which python3.6` [1] seem to return non-zero. [0] https://taskcluster-artifacts.net/eR-phY51QlyhpdFvMrLBIw/0/public/logs/live_backing.log [1] https://taskcluster-artifacts.net/ZsgHoJNsTj-jVvmtstVniA/0/public/logs/live_backing.log Or was this bug fixing some other worker type?
Assignee | ||
Comment 3•5 years ago
|
||
(In reply to Andrew Halberstadt [:ahal] from comment #2) > Has this change been deployed? In my testing, both `which python3` [0] and > `which python3.6` [1] seem to return non-zero. > > [0] > https://taskcluster-artifacts.net/eR-phY51QlyhpdFvMrLBIw/0/public/logs/ > live_backing.log > [1] > https://taskcluster-artifacts.net/ZsgHoJNsTj-jVvmtstVniA/0/public/logs/ > live_backing.log > > Or was this bug fixing some other worker type? The patch was landed: [root@t-yosemite-r7-238.test.releng.mdc1.mozilla.com ~]# echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/tools/python36/bin/python3.6 Maybe not all workers make changes until now.
Comment 4•5 years ago
|
||
Still failed... https://taskcluster-artifacts.net/eR-phY51QlyhpdFvMrLBIw/1/public/logs/live_backing.log (I'm running a test to try and see what the $PATH actually is when running a task on the worker) https://tools.taskcluster.net/groups/AybU237lSE2TKB5JOyztTg/tasks/AybU237lSE2TKB5JOyztTg/runs/0 -- still pending though :(
Reporter | ||
Comment 5•5 years ago
|
||
Oh, looks like maybe the binary itself got added to the $PATH rather than the dir containing the binary?
Reporter | ||
Comment 6•5 years ago
|
||
Also, could we make sure that "python3" is also on the $PATH (not just python3.6?). I assume putting the dir there will solve that at the same time though.
Flags: needinfo?(dcrisan)
Comment 7•5 years ago
|
||
(In reply to Andrew Halberstadt [:ahal] from comment #5) > Oh, looks like maybe the binary itself got added to the $PATH rather than > the dir containing the binary? I'm not sure that is the issue -- from the log on my "whats our path": [taskcluster 2018-12-20T18:22:59.233Z] [mounts] Copying /Users/cltbld/downloads/KygM4sJRQRGrw1jUt92ulw to /Users/cltbld/tasks/task_1545330175/run-task [taskcluster 2018-12-20T18:22:59.233Z] Executing command 0: bash -cx 'cd / && echo $PATH' + cd / + echo /usr/bin:/bin:/usr/sbin:/sbin /usr/bin:/bin:/usr/sbin:/sbin
Assignee | ||
Comment 8•5 years ago
|
||
(In reply to Justin Wood (:Callek) from comment #7) > (In reply to Andrew Halberstadt [:ahal] from comment #5) > > Oh, looks like maybe the binary itself got added to the $PATH rather than > > the dir containing the binary? > > I'm not sure that is the issue -- from the log on my "whats our path": > > > [taskcluster 2018-12-20T18:22:59.233Z] [mounts] Copying > /Users/cltbld/downloads/KygM4sJRQRGrw1jUt92ulw to > /Users/cltbld/tasks/task_1545330175/run-task > [taskcluster 2018-12-20T18:22:59.233Z] Executing command 0: bash -cx 'cd / > && echo $PATH' > + cd / > + echo /usr/bin:/bin:/usr/sbin:/sbin > /usr/bin:/bin:/usr/sbin:/sbin generic-worker could not access the PTATH environment variable from the wokrer. Need to follow another aporach.
Status: RESOLVED → REOPENED
Flags: needinfo?(dcrisan)
Resolution: FIXED → ---
Assignee | ||
Comment 9•5 years ago
|
||
Attachment #9029436 -
Attachment is obsolete: true
Assignee | ||
Comment 10•5 years ago
|
||
Created another patch and tested over staging environment: This is the task: https://tools.taskcluster.net/groups/TVm9HJWEQ8-ile2bokAA6A/tasks/TVm9HJWEQ8-ile2bokAA6A/runs/0/logs/public%2Flogs%2Flive_backing.log :ahal You can use our staging environment to test your changes against hg and python3. All steps are described in this documentation: https://wiki.mozilla.org/ReleaseEngineering#Run_the_tasks_to_staging_pools_.28OSX.2FLinux.29 The workertype is:gecko-t-osx-1010-beta I'll resolve booth hg and python3 issue with this patch, so maybe you can rename this bug to reflect these changes and close the bug for hg.
Assignee | ||
Updated•5 years ago
|
Summary: Add /tools/python36/bin/python3.6 to $PATH on OSX generic-worker → Add python3.6 and hg to $PATH on OSX generic-worker
Assignee | ||
Comment 12•5 years ago
|
||
Run tests to linux workers:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=f2bbdcc079288403bd7f708507b88aae3711d498
Assignee | ||
Comment 13•5 years ago
|
||
everything looks OK on Linux jobs
Assignee | ||
Comment 15•5 years ago
|
||
(In reply to Dustin J. Mitchell [:dustin] pronoun: he from comment #14)
Is bug 1519849 the right bug
Need to test changes against OSX and linux. But staging pool disappeared due to issue described in bug 1519849 :)
Flags: needinfo?(dcrisan)
Assignee | ||
Comment 16•5 years ago
|
||
Starting tests on OSX staging workers:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=3c1bffd541147f57b96259725167782f13f08682
Comment 17•5 years ago
|
||
If that's the case, then it's because everything in the staging pool was quarantined :)
Assignee | ||
Updated•5 years ago
|
Attachment #9032931 -
Flags: checked-in+
Assignee | ||
Updated•5 years ago
|
Status: REOPENED → RESOLVED
Closed: 5 years ago → 5 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•