Closed Bug 798170 Opened 14 years ago Closed 13 years ago

Replace all copies of _dumbwin32proc.py

Categories

(Infrastructure & Operations Graveyard :: CIDuty, task, P2)

x86
All

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: coop, Assigned: armenzg)

References

()

Details

(Whiteboard: [opsi])

Attachments

(3 files)

While doing work on the new WinXP ref platform (bug 770579), I discovered that we're still replacing the copy of _dumbwin32proc.py that lives under C:\mozilla-build\python25\Lib\site-packages\twisted\internet. Another copy of that module als o gets installed under C:\mozilla-build\buildbotve\python25\Lib\site-packages\twisted\internet. I'm uncertain whether this other copy is ever called, but we should probably be replacing both version to be safe. https://hg.mozilla.org/build/opsi-package-sources/file/e55c081cb8cf/twisted_dumbwin32proc/CLIENT_DATA/twisted_dumbwin32proc.ins
Probably safe to compare the .bak file with the other one you want to replace: C:\mozilla-build\python25\Lib\site-packages\twisted\internet\_dumbwin32proc.py.bak C:\mozilla-build\buildbotve\python25\Lib\site-packages\twisted\internet\_dumbwin32proc.py Great to see that you caught this!
Attachment #688766 - Flags: review?(armenzg) → review+
Comment on attachment 688766 [details] [diff] [review] Replace the version of _dumbwin32proc.py under buildbotve also https://hg.mozilla.org/build/opsi-package-sources/rev/ac29b3f0987c
Attachment #688766 - Flags: checked-in+
I've marked all the XP slaves to re-install this package on next boot. I'll check on them tomorrow to make sure I didn't inadvertently tank the whole pool.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
We need to work on this again: C:\Documents and Settings\cltbld>dir C:\mozilla-build\buildbotve\python25\Lib\site-packages\twisted\internet\_dumbwin32proc.py* The system cannot find the path specified. We got the path wrong: C:\mozilla-build\buildbotve\Lib\site-packages\twisted\internet versus C:\mozilla-build\buildbotve\python25\Lib\site-packages\twisted\internet This is what I did on a w7 and an xp slave: cd C:\mozilla-build\buildbotve\Lib\site-packages\twisted\internet del _dumbwin32proc.pyc move _dumbwin32proc.py _dumbwin32proc.py.bak wget -q --no-check-certificate https://hg.mozilla.org/build/opsi-package-sources/raw-file/e55c081cb8cf/twisted_dumbwin32proc/CLIENT_DATA/_dumbwin32proc.py I assume we need to do the same on win64 and win8 slaves. ######################################### diff -pU 8 _dumbwin32proc.py _dumbwin32proc.py.bak --- _dumbwin32proc.py Wed Mar 13 10:41:13 2013 +++ _dumbwin32proc.py.bak Thu Sep 01 08:31:04 2011 @@ -233,17 +233,18 @@ class Process(_pollingfile._PollingTimer self._addPollableResource(_Reaper(self)) def signalProcess(self, signalID): if self.pid is None: raise error.ProcessExitedAlready() if signalID in ("INT", "TERM", "KILL"): - os.popen('taskkill /T /F /PID %s' % self.pid) + win32process.TerminateProcess(self.hProcess, 1) + def _getReason(self, status): if status == 0: return error.ProcessDone(status) return error.ProcessTerminated(status) def write(self, data):
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee: coop → armenzg
OS: Windows XP → All
Attachment #724494 - Flags: review?(coop)
Comment on attachment 724494 [details] [diff] [review] _dumbwin32proc.py Review of attachment 724494 [details] [diff] [review]: ----------------------------------------------------------------- Did you check to make sure there's only one copy of _dumbwin32proc.py on each slave? We should replace it everywhere it exists to be safe.
Attachment #724494 - Flags: review?(coop) → review+
(In reply to Chris Cooper [:coop] from comment #7) > Comment on attachment 724494 [details] [diff] [review] > _dumbwin32proc.py > > Review of attachment 724494 [details] [diff] [review]: > ----------------------------------------------------------------- > > Did you check to make sure there's only one copy of _dumbwin32proc.py on > each slave? We should replace it everywhere it exists to be safe. For both win7 and winxp we only have it in here: C:\mozilla-build\python25\Lib\site-packages\twisted\internet C:\mozilla-build\buildbotve\Lib\site-packages\twisted\internet On win64: C:\mozilla-build\python\Lib\site-packages\twisted\internet Not under C:\mozilla-build\python27 C:\mozilla-build\buildbotve\Lib\site-packages\twisted\internet On win8: Not under C:\mozilla-build\python27 C:\mozilla-build\buildbotve\Lib\site-packages\twisted\internet AFAIU, we only want to replace the _dumbwin32proc.py that is used by buildbot.
Comment on attachment 724494 [details] [diff] [review] _dumbwin32proc.py Deployed. I have marked machines xp-0[01-10] to receive this package.
Attachment #724494 - Flags: checked-in+
Attachment #725099 - Flags: review?(coop)
This can be deployed like this: C:\mozilla-build\wget\wget.exe -Odeploy_dumbwin32proc.bat https://bugzilla.mozilla.org/attachment.cgi?id=725099 deploy_dumbwin32proc.bat I have deployed this change to: * talos-r3-w7-012 * t-w864-ix-012 * w64-ix-slave12 I will review it tomorrow.
Attachment #725099 - Flags: review?(coop) → review+
I marked all XP slaves to get this change. I have deployed this change to all win7 slaves as well besides: * talos-r3-w7-006 * talos-r3-w7-011 I will wait for win64 slaves on Monday and for win8 machines for when they have ssh.
Blocks: 851505
All remaining Windows 7 machines have already got done. For win64 machines as Administrator (all done): C:\mozilla-build\wget\wget.exe -q -Odeploy_dumbwin32proc.bat https://bugzilla.mozilla.org/attachment.cgi?id=725099 deploy_dumbwin32proc.bat Win8 is left. I will see if I can ask Q to deploy it through GPO.
Depends on: 853609
No longer depends on: talos-r3-w7-006
Both Win64 TS and Win8 GPO got done by Q. I adjusted the "deploy new _dumbwin32proc" section: https://wiki.mozilla.org/ReferencePlatforms/Win64#Deploy_dumbwin32proc.py
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
For the record, I would have liked to see this done with either a monkeypatch in the Buildbot source or as part of the Buildbot install process, rather than a later patch. But I'm glad it's fixed at any rate. Another Windows user at the PyCon sprints was talking about this problem. Yet nobody can come up with a general solution :(
No longer depends on: talos-r3-w7-011
Product: mozilla.org → Release Engineering
Component: Platform Support → Buildduty
Product: Release Engineering → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: