Closed Bug 1437270 Opened 7 years ago Closed 7 years ago

Port |bug 1152332 - Let connection proxy filters return the result asynchronously| to Mailnews - TEST-UNEXPECTED-TIMEOUT | comm/mailnews/compose/test/unit/test_smtpProxy.js

Categories

(MailNews Core :: Networking, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 60.0

People

(Reporter: jorgk-bmo, Assigned: mayhemer)

References

Details

(Whiteboard: [Thunderbird-testfailure: X all][Thunderbird-temporary-fix])

Attachments

(1 file, 2 obsolete files)

This makes our four proxy tests fail: TEST-UNEXPECTED-TIMEOUT | comm/mailnews/compose/test/unit/test_smtpProxy.js | Test timed out TEST-UNEXPECTED-TIMEOUT | comm/mailnews/imap/test/unit/test_imapProxy.js | Test timed out TEST-UNEXPECTED-TIMEOUT | comm/mailnews/local/test/unit/test_pop3Proxy.js | Test timed out TEST-UNEXPECTED-TIMEOUT | comm/mailnews/news/test/unit/test_nntpProxy.js | Test timed out
Honza, I'm looking at the tests, for example: https://dxr.mozilla.org/comm-central/source/mailnews/compose/test/unit/test_smtpProxy.js and it's rather short. I'm a little familiar with proxy resolution in mailnews, since I worked on bug 791645. As far as I know, we don't use proxy filters, so it's unclear to my why bug 1152332 affects our tests. Any hint would be welcome.
Flags: needinfo?(honzab.moz)
Keywords: leave-open
Whiteboard: [Thunderbird-testfailure: X all] → [Thunderbird-testfailure: X all][Thunderbird-temporary-fix]
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/9b23f29d39df temporarily disable proxy tests. rs=bustage-fix
Jorg, I knew I wanted to do one more thing before landing that patch - file a bug for mailnews! Sorry about that. I can help fixing this. Apparently, the code at [1] needs an update, very simple, similarly to [2]: [1] https://dxr.mozilla.org/comm-central/rev/fdbbb8fee22945c32eeaaa83526b9ad4f360e99a/mailnews/test/resources/NetworkTestUtils.jsm#248 [2] https://hg.mozilla.org/mozilla-central/rev/ce34d962b0df#l5.1
Assignee: nobody → honzab.moz
Flags: needinfo?(honzab.moz)
Oh, I've just written a patch, and I'm checking whether the tests pass now.
Hmm, I ported the two lines from https://hg.mozilla.org/mozilla-central/rev/ce34d962b0df#l5.12 and the SMTP test, the only one I tried, still hangs. So I must be missing something. Maybe I should leave it to the assignee ;-) (sorry, I didn't see the Assignee: nobody@mozilla.orghonzab.moz@firemni.cz)
There are two |return| statements in that function ;) you need to update both.
Attached patch v1Splinter Review
Attachment #8950204 - Attachment is obsolete: true
Comment on attachment 8950211 [details] [diff] [review] v1 Jorg, from some reason I'm getting "ERROR: Cannot find project mail" when building tbird, so I can't test locally.
Attachment #8950211 - Flags: feedback?(jorgk)
Comment on attachment 8950211 [details] [diff] [review] v1 All four tests pass with this. Thanks! I'll get this landed, I hope you're satisfied with my r+. Seems like a straight port of https://hg.mozilla.org/mozilla-central/rev/ce34d962b0df#l5.12 ... if one doesn't overlook half the work like I did ;-(
Attachment #8950211 - Flags: feedback?(jorgk) → review+
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/782575b2232e Backed out changeset 9b23f29d39df: re-enable temporarily disabled test. a=jorgk https://hg.mozilla.org/comm-central/rev/41a8e252b0c2 Port bug 1152332 to mailnews: proxy filters return the result asynchronously. r=jorgk
Status: NEW → RESOLVED
Closed: 7 years ago
Keywords: leave-open
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 60.0
Attachment #8950012 - Attachment is obsolete: true
Thanks for quickly testing and landing this! Could not build my tb locally...
Attachment #8950211 - Attachment description: wip - untested → v1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: