All users were logged out of Bugzilla on October 13th, 2018

Windows Error: File already exists in install-tp5n mozharness step

RESOLVED WONTFIX

Status

RESOLVED WONTFIX
6 years ago
9 months ago

People

(Reporter: ahal, Assigned: ahal)

Tracking

Details

Attachments

(1 attachment)

(Assignee)

Description

6 years ago
I believe this is due to the fact that on Windows doing "copy('foo', '/bar/')" will try to rename 'foo' to 'bar' rather than place 'foo' inside 'bar' (which is what happens on Unix).

Traceback (most recent call last):
  File "scripts/scripts/peptest.py", line 297, in <module>
    peptest.run()
  File "C:\talos-slave\test\scripts\mozharness\base\script.py", line 620, in run
    self._possibly_run_method(method_name, error_if_missing=True)
  File "C:\talos-slave\test\scripts\mozharness\base\script.py", line 591, in _possibly_run_method
    return getattr(self, method_name)()
  File "scripts/scripts/peptest.py", line 183, in install_tp5n
    log_level=DEBUG)
  File "C:\talos-slave\test\scripts\mozharness\base\script.py", line 166, in move
    shutil.move(src, dest)
  File "c:\mozilla-build\python25\Lib\shutil.py", line 196, in move
    copytree(src, dst, symlinks=True)
  File "c:\mozilla-build\python25\Lib\shutil.py", line 110, in copytree
    os.makedirs(dst)
  File "C:\mozilla-build\python25\lib\os.py", line 166, in makedirs
    mkdir(name, mode)
WindowsError: [Error 17] Cannot create a file when that file already exists: 'C:\\talos-slave\\test\\build\\tests\\peptest\\tests/firefox/server'
(Assignee)

Comment 1

6 years ago
Created attachment 653403 [details] [diff] [review]
Patch 1.0 - Fix windows error
(Assignee)

Updated

6 years ago
Attachment #653403 - Flags: review?(mcote)

Comment 2

6 years ago
Comment on attachment 653403 [details] [diff] [review]
Patch 1.0 - Fix windows error

LGTM
Attachment #653403 - Flags: review?(mcote) → review+
(Assignee)

Comment 3

5 years ago
No longer running peptests in mozharness
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → WONTFIX
(Assignee)

Updated

5 years ago
Blocks: 767048

Updated

9 months ago
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.