Closed Bug 858752 Opened 13 years ago Closed 13 years ago

Intermittent WindowsError: [Error 5] Access is denied: 'e:\\builds\\moz2_slave\\m-cen-w32_g-000000000000000000\\build\\obj-firefox\\dist\\include\\dbm\\cdefs.h'

Categories

(Firefox Build System :: General, defect)

x86_64
Windows 7
defect
Not set
major

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: RyanVM, Assigned: gps)

References

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

https://tbpl.mozilla.org/php/getParsedLog.php?id=21452006&tree=Mozilla-Central b2g_mozilla-central_win32_gecko build on 2013-04-04 10:58:20 PDT for push 55f9e3e3dae7 slave: w64-ix-slave98 Automatically clobbering e:\builds\moz2_slave\m-cen-w32_g-000000000000000000\build\obj-firefox e:\builds\moz2_slave\m-cen-w32_g-000000000000000000\build\client.mk:309:0: command 'python e:/builds/moz2_slave/m-cen-w32_g-000000000000000000/build/python/mozbuild/mozbuild/controller/clobber.py e:/builds/moz2_slave/m-cen-w32_g-000000000000000000/build obj-firefox' failed, return code 1 e:\builds\moz2_slave\m-cen-w32_g-000000000000000000\build\client.mk:339:0: command 'C:/mozilla-build/python27/python.exe e:/builds/moz2_slave/m-cen-w32_g-000000000000000000/build/build/pymake/pymake/../make.py -f e:/builds/moz2_slave/m-cen-w32_g-000000000000000000/build/client.mk configure' failed, return code 2 e:\builds\moz2_slave\m-cen-w32_g-000000000000000000\build\client.mk:163:0: command 'C:/mozilla-build/python27/python.exe e:/builds/moz2_slave/m-cen-w32_g-000000000000000000/build/build/pymake/pymake/../make.py -f e:/builds/moz2_slave/m-cen-w32_g-000000000000000000/build/client.mk realbuild' failed, return code 2 Traceback (most recent call last): File "e:/builds/moz2_slave/m-cen-w32_g-000000000000000000/build/python/mozbuild/mozbuild/controller/clobber.py", line 193, in <module> sys.exit(main(sys.argv[1:], os.environ, os.getcwd(), sys.stdout)) File "e:/builds/moz2_slave/m-cen-w32_g-000000000000000000/build/python/mozbuild/mozbuild/controller/clobber.py", line 183, in main required, performed, message = clobber.maybe_do_clobber(cwd, auto, fh) File "e:/builds/moz2_slave/m-cen-w32_g-000000000000000000/build/python/mozbuild/mozbuild/controller/clobber.py", line 152, in maybe_do_clobber rmtree(self.topobjdir) File "C:\mozilla-build\python27\lib\shutil.py", line 245, in rmtree rmtree(fullname, ignore_errors, onerror) File "C:\mozilla-build\python27\lib\shutil.py", line 245, in rmtree rmtree(fullname, ignore_errors, onerror) File "C:\mozilla-build\python27\lib\shutil.py", line 245, in rmtree rmtree(fullname, ignore_errors, onerror) File "C:\mozilla-build\python27\lib\shutil.py", line 250, in rmtree onerror(os.remove, fullname, sys.exc_info()) File "C:\mozilla-build\python27\lib\shutil.py", line 248, in rmtree os.remove(fullname) WindowsError: [Error 5] Access is denied: 'e:\\builds\\moz2_slave\\m-cen-w32_g-000000000000000000\\build\\obj-firefox\\dist\\include\\dbm\\cdefs.h'
Remember when this was only desktop b2g? Good times. https://tbpl.mozilla.org/php/getParsedLog.php?id=21500479&tree=Mozilla-Central
Summary: Intermittent Windows desktop B2G WindowsError: [Error 5] Access is denied: 'e:\\builds\\moz2_slave\\m-cen-w32_g-000000000000000000\\build\\obj-firefox\\dist\\include\\dbm\\cdefs.h' → Intermittent WindowsError: [Error 5] Access is denied: 'e:\\builds\\moz2_slave\\m-cen-w32_g-000000000000000000\\build\\obj-firefox\\dist\\include\\dbm\\cdefs.h'
https://tbpl.mozilla.org/php/getParsedLog.php?id=21526266&tree=Mozilla-Inbound Which makes five failures out of six jobs (and the sixth isn't finished, just running longer than you would expect if it's going to hit this) after https://hg.mozilla.org/integration/mozilla-inbound/rev/8739c3bd5734, making me wonder if auto-CLOBBER is what's not going so very well on Windows.
Severity: normal → major
(And yes, I apparently do have enough of a reading-comprehension problem that I didn't even read the first two words of the failure message.)
Blocks: 837323
https://tbpl.mozilla.org/php/getParsedLog.php?id=21527320&tree=Mozilla-Inbound https://tbpl.mozilla.org/php/getParsedLog.php?id=21527319&tree=Mozilla-Inbound And that's after I used the clobberer on it, so either the clobberer doesn't really work entirely right (wouldn't surprise me in the least), or even clobbering isn't enough to escape the automatic CLOBBERburn.
I'm looking into this. Bug 859157 for tbpl getting the time conversion wrong.
This looks like bustage from a NSS build system change. Many files in dist/include/dbm and dist/include/nss are mode 444, so python doesn't have acesss to remove them. This is effecting clobberrer too, eg the log in comment #0 has: m-in-w32-000000000000000000000:Our last clobber date: 2013-04-04 04:48:24 m-in-w32-000000000000000000000:Server clobber date: 2013-04-04 14:25:08 m-in-w32-000000000000000000000:Server is forcing a clobber, initiated by philringnalda@gmail.com m-in-w32-000000000000000000000:Clobbering... Removing build/ Couldn't clobber properly, bailing out. program finished with exit code 1
Output of |find . -type f ! -perm /u=w -ls| in the objdir for the mozilla-central win32 gecko dir (comment #0).
NSS has always installed its files this way. So this is nothing new. However, the autoclobberer is probably not smart enough to deal with it.
I think the auto clobberer needs to be more resilient in the face of msys weirdness. Falling back to native windows APIs to delete the file, and/or trying to rename the file out of the way could help.
We're using shutil.rmtree here, which apparently is not resilient enough. :-/
Unless someone gives me a very compelling reason not to in short order, I'm going to be backing out autoclobber soon. Or I can close inbound and m-c until this is fixed.
Filed bug 859426 for the clobberer failing.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: