Closed
Bug 1404581
Opened 7 years ago
Closed 7 years ago
TEST-UNEXPECTED-FAIL | tests/mozmill/composition/test-drafts.js | test-drafts.js::test_remove_space_stuffing_format_flowed
Categories
(Thunderbird :: General, defect)
Thunderbird
General
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 58.0
People
(Reporter: jorgk-bmo, Assigned: ehsan.akhgari)
References
Details
(Whiteboard: [Thunderbird-testfailure: Z all][Thunderbird-temporary-fix])
Attachments
(1 file, 1 obsolete file)
2.47 KB,
patch
|
masayuki
:
review+
jorgk-bmo
:
feedback+
|
Details | Diff | Splinter Review |
First seen: Sat Sep 30, 2017, 1:48:57
M-C last good: cd9c8c48e4b3ded47a776f757008f3dcf5
M-C first bad: 57f68296c350469d73d788eb3695a89894
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=cd9c8c48e4b3ded47a776f757008f3dcf5&tochange=57f68296c350469d73d788eb3695a89894
Could be related to bug Bug 1393140 or bug 1404106 since there are editor changes in those bugs.
On the various platforms there are different sets of failing tests.
Linux 32:
1) composition/test-drafts.js | test-drafts.js::test_remove_space_stuffing_format_flowed
Linux 64:
1) composition/test-drafts.js | test-drafts.js::test_remove_space_stuffing_format_flowed
2) composition/test-image-insertion-dialog.js | test-image-insertion-dialog.js::test_image_insertion_dialog_persist
(regular failure??) - bug 1246094
3) composition/test-send-format.js | test-send-format.js::test_msg_convertibility
4) composition/test-image-display.js | test-image-display.js::test_cid_image_compose
5) content-tabs/test-about-support.js | test-about-support.js::test_send_via_email_public
(regular failure??) - bug 1373809
6) content-tabs/test-about-support.js | test-about-support.js::test_send_via_email_private
(regular failure??) - bug 1373809
Windows:
1) composition\test-drafts.js | test-drafts.js::test_remove_space_stuffing_format_flowed
2) composition\test-forwarded-content.js | test-forwarded-content.js::test_forwarded_subj
3) composition\test-image-display.js | test-image-display.js::test_cid_image_compose
4) composition\test-image-insertion-dialog.js | test-image-insertion-dialog.js::test_image_insertion_dialog_persist
5) composition\test-multipart-related.js | test-multipart-related.js::test_basic_multipart_related
6) composition\test-send-format.js | test-send-format.js::test_msg_convertibility
I'll have to run those tests locally to see which one really fail and which failures are a consequence of earlier failing tests.
Aceman, a lot of work here.
Flags: needinfo?(acelists)
Reporter | ||
Comment 1•7 years ago
|
||
OK, trying to see how much is really broken:
1) mozmake SOLO_TEST=composition/test-drafts.js mozmill-one fails with
test_remove_space_stuffing_format_flowed
EXCEPTION: Something went wrong with space stuffing
at: test-folder-display-helpers.js line 2918
assert_true test-folder-display-helpers.js:2918 11
test_remove_space_stuffing_format_flowed test-drafts.js:268 5
I can see that instead of having three lines
NoSpace
OneSpace
TwoSpaces
I only see two lines
NoSpace OneSpace
TwoSpaces
when the draft is edited again. I guess that can be reproduced manually.
Looks like something went bust in Core::Editor.
L2)W4) composition/test-image-insertion-dialog.js passes.
L3)W6) composition/test-send-format.js passes.
L4)W3) composition/test-image-display.js passes.
L5) and L6) are normal failures.
W2) composition/test-forwarded-content.js passes.
W5) composition/test-multipart-related.js passes.
So it's really only composition/test-drafts.js that fails and drags the others down :-(
I'll disable this for now until we have time to investigate this further.
Keywords: leave-open
Summary: TEST-UNEXPECTED-FAIL | /builds/slave/test/build/tests/mozmill/composition/test-drafts.js | test-drafts.js::test_remove_space_stuffing_format_flowed and others → TEST-UNEXPECTED-FAIL | tests/mozmill/composition/test-drafts.js | test-drafts.js::test_remove_space_stuffing_format_flowed
Whiteboard: [Thunderbird-testfailure: Z all][Thunderbird-disabled-test]
Reporter | ||
Comment 2•7 years ago
|
||
Reporter | ||
Comment 3•7 years ago
|
||
Basically there is nothing we can do here in TB. When we get the content of the draft and hand it to the editor, something goes wrong.
Flags: needinfo?(acelists)
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/007e4cf39ff4
temporarily disable test-drafts.js::test_remove_space_stuffing_format_flowed. rs=bustage-fix
Reporter | ||
Comment 5•7 years ago
|
||
You can see the problem locally. Prepare a plaintext draft with
NoSpace
OneSpace
TwoSpaces
then edit the draft. There first two lines are glued together.
Assignee | ||
Comment 6•7 years ago
|
||
Jorg, do you mind testing this patch to see whether it fixes the test failures (and also whether it unbreaks Thunderbird when actually using it)? Thanks!
Attachment #8914432 -
Flags: feedback?(jorgk)
Reporter | ||
Comment 7•7 years ago
|
||
Comment on attachment 8914432 [details] [diff] [review]
Fallback to the slow path if we're in Thunderbird's plaintext editor
Thank you Ehsan, this works fine with manual testing and in the automated test.
Attachment #8914432 -
Flags: feedback?(jorgk) → feedback+
Assignee | ||
Updated•7 years ago
|
Attachment #8914432 -
Flags: review?(masayuki)
Assignee | ||
Comment 8•7 years ago
|
||
Note for the review, this just changes the conditional for the last child to check for AsHTMLEditor() and moves the two sides of the if branch, so there isn't as much code change in the patch as it may appear from a first glance. :-)
Updated•7 years ago
|
Attachment #8914432 -
Flags: review?(masayuki) → review+
Pushed by eakhgari@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/d57ba091571a
Fallback to the slow path if we're in Thunderbird's plaintext editor; r=masayuki
Reporter | ||
Updated•7 years ago
|
Keywords: leave-open
Reporter | ||
Comment 10•7 years ago
|
||
Comment 11•7 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/9c2aabee10e9
Backed out changeset 007e4cf39ff4: re-enable temporarily disabled test. a=jorgk
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•7 years ago
|
Target Milestone: --- → Thunderbird 58.0
Comment 12•7 years ago
|
||
bugherder |
Reporter | ||
Updated•7 years ago
|
Whiteboard: [Thunderbird-testfailure: Z all][Thunderbird-disabled-test] → [Thunderbird-testfailure: Z all][Thunderbird-temporary-fix]
Updated•6 years ago
|
Assignee: nobody → ehsan
Comment 13•6 years ago
|
||
Comment on attachment 8913949 [details] [diff] [review]
1404581-temp-disable.patch
Patch was backed out with #c11
Attachment #8913949 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•