Closed
Bug 1036847
Opened 10 years ago
Closed 10 years ago
Add a Install/Cancel/Download test to the dom:app test suite
Categories
(Core Graveyard :: DOM: Apps, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla34
People
(Reporter: amac, Assigned: amac)
References
Details
Attachments
(1 file, 6 obsolete files)
(deleted),
patch
|
fabrice
:
review+
|
Details | Diff | Splinter Review |
Bug 1036143 detected a hole on the test suite for DOM:Apps. Currently we don't have tests for cancelling/retrying the download. This bug is just to add that test.
Assignee | ||
Comment 1•10 years ago
|
||
Initial version. The test is completed, not asking for review because I want to add a downloadapplied test also.
Attachment #8453643 -
Flags: feedback?(fabrice)
Assignee | ||
Comment 2•10 years ago
|
||
Try run (including the patch from bug 903291, and the patch I proposed to that bug also!) on https://tbpl.mozilla.org/?tree=Try&rev=5c29dc8da9d6
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8453643 -
Attachment is obsolete: true
Attachment #8453643 -
Flags: feedback?(fabrice)
Attachment #8453749 -
Flags: review?(fabrice)
Assignee | ||
Comment 4•10 years ago
|
||
Sorry for the spam. It's failing on TBPL and I think it might be because of the timer. I've removed the timer on the test_packaged*html, but can't remove it on the .sjs (and in any case it doesn't really matter if it's slower). I have one problem, though, and is that if I set a timer higher than 3 seconds it never fires.
Attachment #8453749 -
Attachment is obsolete: true
Attachment #8453749 -
Flags: review?(fabrice)
Attachment #8453776 -
Flags: review?(fabrice)
Assignee | ||
Comment 5•10 years ago
|
||
Comment on attachment 8453776 [details] [diff] [review]
V3. Without settimeout on the "client" part
And again... /facepalm. I don't know how I did it but I lost the changes of a file on the patch. Removing the review request till this *$·"! thing passes consistently on the TBPL.
Attachment #8453776 -
Flags: review?(fabrice)
Assignee | ||
Comment 6•10 years ago
|
||
Try run for this is at https://tbpl.mozilla.org/?tree=Try&rev=30da92be1a30
Attachment #8453776 -
Attachment is obsolete: true
Assignee | ||
Comment 7•10 years ago
|
||
Comment on attachment 8453880 [details] [diff] [review]
V4. Use a trick so the 'server' timeout doesn't matter as much
Try run is green finally, requesting review.
Attachment #8453880 -
Flags: review?(fabrice)
Comment 8•10 years ago
|
||
Comment on attachment 8453880 [details] [diff] [review]
V4. Use a trick so the 'server' timeout doesn't matter as much
Review of attachment 8453880 [details] [diff] [review]:
-----------------------------------------------------------------
lgtm, but explain me your choice for alreadyDeferred.
::: dom/apps/tests/file_packaged_app.sjs
@@ +26,5 @@
> var devUrl = ("devUrl" in query) ? query.devUrl : gDevUrl;
> + // allowCancel just means deliver the file slowly so we have time to cancel it
> + var allowCancel = "allowCancel" in query;
> + var getPackage = "getPackage" in query;
> + var alreadyDeferred = +getState("alreadyDeferred");
why not use a boolean for alreadyDeferred?
@@ +32,5 @@
> + if (allowCancel && getPackage && !alreadyDeferred) {
> + // Only do this for the actual package delivery.
> + response.processAsync();
> + // And to avoid timer problems, only do this once.
> + setState("alreadyDeferred", "1");
s/"1"/true ?
Attachment #8453880 -
Flags: review?(fabrice) → review+
Assignee | ||
Comment 9•10 years ago
|
||
r=fabrice
Attachment #8453880 -
Attachment is obsolete: true
Attachment #8454702 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 10•10 years ago
|
||
Keywords: checkin-needed
Comment 11•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
Comment 12•10 years ago
|
||
Backed out for frequent test_packaged_app_install.html timeouts after this landed.
https://hg.mozilla.org/integration/mozilla-inbound/rev/66651fb7bca3
https://tbpl.mozilla.org/php/getParsedLog.php?id=43727836&tree=Mozilla-Inbound
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: mozilla33 → ---
Comment 13•10 years ago
|
||
Merge of backout:
https://hg.mozilla.org/mozilla-central/rev/66651fb7bca3
Assignee | ||
Comment 14•10 years ago
|
||
This is basically the same patch that was r+ed before. I don't know why it was failing randomly on try, and I don't really think it's a problem of the test. In any case, I've modified a little the delayed download, to send some data before waiting (in case there's something closing the connection if no data has been seen) and reduced the delay.
The tries I've send are all green... but they were before also :)
Attachment #8454702 -
Attachment is obsolete: true
Attachment #8456851 -
Flags: review?(fabrice)
Comment 15•10 years ago
|
||
(In reply to Antonio Manuel Amaya Calvo (:amac) from comment #14)
> Created attachment 8456851 [details] [diff] [review]
> Refactored the delay and wrote some data before waiting
>
> This is basically the same patch that was r+ed before. I don't know why it
> was failing randomly on try, and I don't really think it's a problem of the
> test. In any case, I've modified a little the delayed download, to send some
> data before waiting (in case there's something closing the connection if no
> data has been seen) and reduced the delay.
>
> The tries I've send are all green... but they were before also :)
Please post the try links, and retrigger the test_packaged_app_install.html test 20 times to make sure it's solid.
Updated•10 years ago
|
Attachment #8456851 -
Flags: review?(fabrice)
Assignee | ||
Comment 16•10 years ago
|
||
Relaunched the tests a bunch of times on several platforms:
https://tbpl.mozilla.org/?tree=Try&rev=ef444b87bdba
Attachment #8456851 -
Attachment is obsolete: true
Attachment #8460273 -
Flags: review?(fabrice)
Updated•10 years ago
|
Attachment #8460273 -
Attachment is patch: true
Updated•10 years ago
|
Attachment #8460273 -
Flags: review?(fabrice) → review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 17•10 years ago
|
||
Keywords: checkin-needed
Comment 18•10 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
QA Whiteboard: [qa-]
Updated•7 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•