Intermittent test_0201_app_launch_apply_update.js, test_0203_app_launch_apply_update.js | WindowsError: [Error 13] The process cannot access the file because it is being used by another process: '...\\maintenanceservice_installer.exe'

RESOLVED FIXED in Firefox 19

Status

()

RESOLVED FIXED
7 years ago
6 years ago

People

(Reporter: emorley, Assigned: rstrong)

Tracking

({intermittent-failure})

Trunk
mozilla21
x86
Windows 7
intermittent-failure
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox19 fixed, firefox20 fixed, firefox21 fixed, firefox-esr17 fixed)

Details

Attachments

(2 attachments)

(Reporter)

Description

7 years ago
Rev3 WINNT 6.1 mozilla-inbound pgo test xpcshell on 2012-06-23 23:31:51 PDT for push 030728d0d1d7

slave: talos-r3-w7-029

https://tbpl.mozilla.org/php/getParsedLog.php?id=12947115&tree=Mozilla-Inbound

{
TEST-INFO | c:\talos-slave\test\build\xpcshell\tests\toolkit\mozapps\update\test\unit\test_0202_app_launch_apply_update_dirlocked.js | running test ...
TEST-PASS | c:\talos-slave\test\build\xpcshell\tests\toolkit\mozapps\update\test\unit\test_0202_app_launch_apply_update_dirlocked.js | test passed (time: 1417.000ms)
TEST-INFO | c:\talos-slave\test\build\xpcshell\tests\toolkit\mozapps\update\test\unit\test_0203_app_launch_apply_update.js | running test ...
TEST-PASS | c:\talos-slave\test\build\xpcshell\tests\toolkit\mozapps\update\test\unit\test_0203_app_launch_apply_update.js | test passed (time: 8303.000ms)
Traceback (most recent call last):
  File "xpcshell/runxpcshelltests.py", line 915, in <module>
    main()
  File "xpcshell/runxpcshelltests.py", line 911, in main
    if not xpcsh.runTests(args[0], testdirs=args[1:], **options.__dict__):
  File "xpcshell/runxpcshelltests.py", line 795, in runTests
    self.removeDir(self.profileDir)
  File "xpcshell/runxpcshelltests.py", line 321, in removeDir
    shutil.rmtree(dirname)
  File "c:\mozilla-build\python25\Lib\shutil.py", line 169, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "c:\mozilla-build\python25\Lib\shutil.py", line 169, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "c:\mozilla-build\python25\Lib\shutil.py", line 174, in rmtree
    onerror(os.remove, fullname, sys.exc_info())
  File "c:\mozilla-build\python25\Lib\shutil.py", line 172, in rmtree
    os.remove(fullname)
WindowsError: [Error 13] The process cannot access the file because it is being used by another process: 'c:\\users\\cltbld\\appdata\\local\\temp\\tmpgc8wyz\\ExecutableDir.tmp\\bin\\maintenanceservice_installer.exe'
program finished with exit code 1
elapsedTime=2678.976000
TinderboxPrint: xpcshell<br/><em class="testfail">T-FAIL</em>
Unknown Error: command finished with exit code: 1
}

Comment 1

7 years ago
Robert, seems like we need to increase the helper timeout even more.  Does that sound fine to you?
(Reporter)

Comment 2

7 years ago
https://tbpl.mozilla.org/php/getParsedLog.php?id=12907737&tree=Firefox
Summary: Intermittent test_0203_app_launch_apply_update.js | WindowsError: [Error 13] The process cannot access the file because it is being used by another process: '...\\ExecutableDir.tmp\\bin\\maintenanceservice_installer.exe' → Intermittent test_0203_app_launch_apply_update.js test_0203_app_launch_apply_update | WindowsError: [Error 13] The process cannot access the file because it is being used by another process: '...\\ExecutableDir.tmp\\bin\\maintenanceservice_installer.exe'
(In reply to Ehsan Akhgari [:ehsan] from comment #1)
> Robert, seems like we need to increase the helper timeout even more.  Does
> that sound fine to you?
I'm ok with this though I wonder what else can be done to make this more deterministic.

Comment 11

7 years ago
(In reply to comment #10)
> (In reply to Ehsan Akhgari [:ehsan] from comment #1)
> > Robert, seems like we need to increase the helper timeout even more.  Does
> > that sound fine to you?
> I'm ok with this though I wonder what else can be done to make this more
> deterministic.

I don't have any other ideas right now...

Comment 12

7 years ago
Created attachment 640864 [details] [diff] [review]
Increase the value by twice
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Attachment #640864 - Flags: review?(robert.bugzilla)
Attachment #640864 - Flags: review?(robert.bugzilla) → review+
(Reporter)

Comment 16

7 years ago
https://hg.mozilla.org/mozilla-central/rev/092c73924711
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
(Reporter)

Comment 17

7 years ago
https://tbpl.mozilla.org/php/getParsedLog.php?id=13637947&tree=Mozilla-Inbound
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
(Reporter)

Updated

7 years ago
Depends on: 793855
Comment hidden (Treeherder Robot)
Depends on: 799532
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Depends on: 809071
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Keywords: intermittent-failure
Comment hidden (Treeherder Robot)
Whiteboard: [orange]
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
(Reporter)

Updated

6 years ago
Blocks: 823996
Mistakenly posted to bug 762032
ehsan
https://tbpl.mozilla.org/php/getParsedLog.php?id=18519656&tree=Firefox
Rev3 WINNT 6.1 mozilla-central pgo test xpcshell on 2013-01-06 09:33:03
slave: talos-r3-w7-098

TEST-UNEXPECTED-FAIL | C:\talos-slave\test\build\xpcshell\tests\toolkit\mozapps\update\test_svc\unit\test_0201_app_launch_apply_update_svc.js | Failed to clean up the test profile directory: [Error 13] The process cannot access the file because it is being used by another process: 'c:\\users\\cltbld\\appdata\\local\\temp\\tmpkol5pf\\ExecutableDir.tmp\\bin\\maintenanceservice_installer.exe'
Summary: Intermittent test_0203_app_launch_apply_update.js test_0203_app_launch_apply_update | WindowsError: [Error 13] The process cannot access the file because it is being used by another process: '...\\ExecutableDir.tmp\\bin\\maintenanceservice_installer.exe' → Intermittent test_0201_app_launch_apply_update, test_0203_app_launch_apply_update | WindowsError: [Error 13] The process cannot access the file because it is being used by another process: '...\\ExecutableDir.tmp\\bin\\maintenanceservice_installer.exe'
Summary: Intermittent test_0201_app_launch_apply_update, test_0203_app_launch_apply_update | WindowsError: [Error 13] The process cannot access the file because it is being used by another process: '...\\ExecutableDir.tmp\\bin\\maintenanceservice_installer.exe' → Intermittent test_0201_app_launch_apply_update.js, test_0203_app_launch_apply_update.js | WindowsError: [Error 13] The process cannot access the file because it is being used by another process: '...\\maintenanceservice_installer.exe'
Also note that there is bug 823996 for  test_0201_app_launch_apply_update_svc.js and test_0203_app_launch_apply_update_svc.js
Created attachment 709427 [details] [diff] [review]
patch rev1 - use waitForFilesInUse implemented in bug 762032
Assignee: ehsan → robert.bugzilla
Status: REOPENED → ASSIGNED
Attachment #709427 - Flags: review?(netzen)
Comment on attachment 709427 [details] [diff] [review]
patch rev1 - use waitForFilesInUse implemented in bug 762032

Review of attachment 709427 [details] [diff] [review]:
-----------------------------------------------------------------

It's somewhat surprising that we have this given: 
http://dxr.mozilla.org/mozilla-central/toolkit/mozapps/update/test/unit/head_update.js.in.html#l804
Attachment #709427 - Flags: review?(netzen) → review+
https://hg.mozilla.org/mozilla-central/rev/687a4154ebaf
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago6 years ago
Resolution: --- → FIXED
Pushed to mozilla-aurora
https://hg.mozilla.org/releases/mozilla-aurora/rev/3eeb9c28f829

Pushed to mozilla-beta
https://hg.mozilla.org/releases/mozilla-beta/rev/096747eee2ee

Pushed to mozilla-esr17
https://hg.mozilla.org/releases/mozilla-esr17/rev/893e305a2b2a
status-firefox19: --- → fixed
status-firefox20: --- → fixed
status-firefox21: --- → fixed
status-firefox-esr17: --- → fixed
You need to log in before you can comment on or make changes to this bug.