Closed
Bug 1132107
Opened 11 years ago
Closed 11 years ago
Update Windows Environment Path to include directories under C:\mozilla-build
Categories
(Infrastructure & Operations :: RelOps: Puppet, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: markco, Assigned: markco)
References
Details
Attachments
(1 file, 1 obsolete file)
|
16.89 KB,
patch
|
dustin
:
review+
markco
:
checked-in+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Updated•11 years ago
|
Assignee: relops → mcornmesser
| Assignee | ||
Updated•11 years ago
|
| Assignee | ||
Updated•11 years ago
|
Summary: Add gnu tools to the 2008 path → Add gnu tools package and support for Windows
| Assignee | ||
Updated•11 years ago
|
Summary: Add gnu tools package and support for Windows → Update Windows Environment Path to include directories under C:\mozilla-build
| Assignee | ||
Comment 1•11 years ago
|
||
This patch includes a module from Puppet Forge.
https://forge.puppetlabs.com/basti1302/windows_path
Attachment #8564245 -
Flags: review?(dustin)
Comment 2•11 years ago
|
||
Comment on attachment 8564245 [details] [diff] [review]
BUG1132107.patch
Review of attachment 8564245 [details] [diff] [review]:
-----------------------------------------------------------------
::: modules/buildslave/manifests/install/version.pp
@@ +58,5 @@
> + # Append the virtual environment directory to the Windows path
> + windows_path {
> + "$virtualenv_path":
> + ensure => present;
> + }
Like!
::: modules/tweaks/manifests/append_windows_path.pp
@@ +16,5 @@
> + ensure => present;
> + }
> + windows_path {
> + 'C:\mozilla-build\python':
> + ensure => present;
Hm, back and forward slashes are mixed in this file -- which one is right?
@@ +36,5 @@
> + ensure => present;
> + }
> + windows_path {
> + 'C:\mozilla-build\info-zip':
> + ensure => present;
I feel like each of these clauses belongs somewhere else. Maybe in the package class? It doesn't seem right to bunch them all together here, when they refer to all sorts of things which may or may not be installed.
::: modules/windows_path/Modulefile
@@ +1,4 @@
> +name 'basti1302-windows_path'
> +version '0.1.1'
> +summary 'Manage individual entries in the Windows PATH variable as resources, that is, add and remove directories to the PATH in an idempotent manner.'
> +project_page 'https://github.com/basti1302/puppet-windows-path'
Cool module! Good find!
Attachment #8564245 -
Flags: review?(dustin) → review-
| Assignee | ||
Comment 3•11 years ago
|
||
> > + ensure => present;
> > + }
> > + windows_path {
> > + 'C:\mozilla-build\info-zip':
> > + ensure => present;
>
> I feel like each of these clauses belongs somewhere else. Maybe in the
> package class? It doesn't seem right to bunch them all together here, when
> they refer to all sorts of things which may or may not be installed.
All of those directories are a products of the Mozilla build package. Do you think it would make more sense to put them in the packages::mozilla::mozilla_build manifest?
Comment 4•11 years ago
|
||
Comment on attachment 8564245 [details] [diff] [review]
BUG1132107.patch
Review of attachment 8564245 [details] [diff] [review]:
-----------------------------------------------------------------
Ah, good point. Yes, packages::mozilla_build makes sense.
::: modules/tweaks/manifests/append_windows_path.pp
@@ +27,5 @@
> + 'C:\mozilla-build\msys\bin':
> + ensure => present;
> + }
> + windows_path {
> + 'C:\mozilla-build\C:\mozilla-build\vim\vim72':
Oh, also, broken path here!
| Assignee | ||
Comment 5•11 years ago
|
||
Attachment #8564245 -
Attachment is obsolete: true
Attachment #8565534 -
Flags: review?(dustin)
| Assignee | ||
Updated•11 years ago
|
Attachment #8565534 -
Flags: review?(dustin)
Comment 6•11 years ago
|
||
Comment on attachment 8565534 [details] [diff] [review]
BUG1132107.patch
Review of attachment 8565534 [details] [diff] [review]:
-----------------------------------------------------------------
This looks great and is good to land.
One worry I have is that when we upgrade buildbot, the old version will still be in PATH. Does windows_path support ensure => absent, too? If so, can you make a new patch to add that to the "absent:" clause at the bottom of modules/buildslave/manifests/install/version.pp?
Attachment #8565534 -
Flags: review+
| Assignee | ||
Comment 7•11 years ago
|
||
Comment on attachment 8565534 [details] [diff] [review]
BUG1132107.patch
Review of attachment 8565534 [details] [diff] [review]:
-----------------------------------------------------------------
https://hg.mozilla.org/build/puppet/rev/f3a831c1d8b5
Attachment #8565534 -
Flags: checked-in+
| Assignee | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•