Closed Bug 767968 Opened 10 years ago Closed 9 years ago

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'

Categories

(Toolkit :: Application Update, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21
Tracking Status
firefox19 --- fixed
firefox20 --- fixed
firefox21 --- fixed
firefox-esr17 --- fixed

People

(Reporter: emorley, Assigned: robert.strong.bugs)

References

Details

(Keywords: intermittent-failure)

Attachments

(2 files)

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
}
Robert, seems like we need to increase the helper timeout even more.  Does that sound fine to you?
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.
(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...
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Attachment #640864 - Flags: review?(robert.bugzilla)
Attachment #640864 - Flags: review?(robert.bugzilla) → review+
https://hg.mozilla.org/mozilla-central/rev/092c73924711
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
https://tbpl.mozilla.org/php/getParsedLog.php?id=13637947&tree=Mozilla-Inbound
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Depends on: 793855
Depends on: 799532
Depends on: 809071
Whiteboard: [orange]
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
Assignee: ehsan → robert.bugzilla
Status: REOPENED → ASSIGNED
Attachment #709427 - Flags: review?(netzen)
Depends on: 762032
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+
Pushed to mozilla-inbound
https://hg.mozilla.org/integration/mozilla-inbound/rev/687a4154ebaf
Target Milestone: mozilla16 → mozilla21
https://hg.mozilla.org/mozilla-central/rev/687a4154ebaf
Status: ASSIGNED → RESOLVED
Closed: 10 years ago9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.