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)

x86_64
Windows 7
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: markco, Assigned: markco)

References

Details

Attachments

(1 file, 1 obsolete file)

No description provided.
Assignee: relops → mcornmesser
Depends on: 1132114
Blocks: 1132114
No longer depends on: 1132114
Summary: Add gnu tools to the 2008 path → Add gnu tools package and support for Windows
Summary: Add gnu tools package and support for Windows → Update Windows Environment Path to include directories under C:\mozilla-build
Attached patch BUG1132107.patch (obsolete) — — Splinter Review
This patch includes a module from Puppet Forge. https://forge.puppetlabs.com/basti1302/windows_path
Attachment #8564245 - Flags: review?(dustin)
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-
> > + 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 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!
Attached patch BUG1132107.patch — — Splinter Review
Attachment #8564245 - Attachment is obsolete: true
Attachment #8565534 - Flags: review?(dustin)
Attachment #8565534 - Flags: review?(dustin)
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+
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+
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.

Attachment

General

Created:
Updated:
Size: