Closed Bug 797936 Opened 12 years ago Closed 12 years ago

create_talos_zip.py creates a broken talos.cset.zip on Windows (and without any errors)

Categories

(Testing :: Talos, defect)

All
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

References

Details

(Whiteboard: [good first bug][mentor=jhammel][lang=py])

Attachments

(1 file)

At least I know why my patches in bug 794799 failed on Android on Try.

$ python create_talos_zip.py
d:\srcdirs\build\talos\talos.41ab9bef35d7.zip

Diffing against a zip that jmaher produced, the following files were missing:
{
talos/mozdevice/__init__.py
talos/mozdevice/b2gemulator.py
talos/mozdevice/devicemanager.py
talos/mozdevice/devicemanagerADB.py
talos/mozdevice/devicemanagerSUT.py
talos/mozdevice/droid.py
talos/mozdevice/emulator.py
talos/mozdevice/emulator_battery.py
talos/mozdevice/mozprocess/__init__.py
talos/mozdevice/mozprocess/pid.py
talos/mozdevice/mozprocess/processhandler.py
talos/mozdevice/mozprocess/qijo.py
talos/mozdevice/mozprocess/winprocess.py
talos/mozdevice/mozprocess/wpk.py
talos/page_load_test/graphics/canvas.html
talos/page_load_test/graphics/path.html
talos/robocop.ini
talos/robotium.config
}

I'm presuming the last four are irrelevant (/due to working directory items getting caught up), and that the root problem here is that mozdevice isn't getting included on Windows.
I annotated download and got:
{
url: https://raw.github.com/mozilla/mozbase/master/mozprocess/mozprocess/qijo.py
filename: mozdevice/mozprocess/qijo.py
dirname: d:\srcdirs\build\talos\talos\mozdevice/mozprocess
}

vs

{
url: http://pyyaml.org/export/360/pyyaml/trunk/lib/yaml/composer.py
filename: yaml/composer.py
dirname: d:\srcdirs\build\talos\talos\yaml
}

-> because the mozbase manifest contains paths whereas the others don't.
No longer blocks: 794799
This should be reversible by adding 

destination = destination.replace('/', os.path.sep)

at http://hg.mozilla.org/build/talos/file/6f0fb4ab3a0c/create_talos_zip.py#l114

However, I don't have time to test at the moment
Whiteboard: [good first bug][mentor=jhammel][lang=py]
Attached patch Patch v1Splinter Review
Turns out there were two places that needed the correct separator - the line you mentioned and:
newfiles = [filename.replace('/', os.path.sep) for _,filename in manifest]

So this patch just fixes the manifest up itself, rather than playing bandage afterwards.
Assignee: nobody → bmo
Status: NEW → ASSIGNED
Attachment #668247 - Flags: review?(jhammel)
Comment on attachment 668247 [details] [diff] [review]
Patch v1

lgtm, thanks!
Attachment #668247 - Flags: review?(jhammel) → review+
Thank you :-)

https://hg.mozilla.org/build/talos/rev/8a1c99c48de1
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Depends on: 801633
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: