Closed Bug 715488 Opened 13 years ago Closed 12 years ago

Mostly-Permanent orange: TEST-UNEXPECTED-FAIL | test-attachment.js | test-attachment.js::test_attachments_compose_menu

Categories

(Thunderbird :: Testing Infrastructure, defect)

12 Branch
x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 12.0

People

(Reporter: mconley, Assigned: mconley)

References

Details

(Keywords: intermittent-failure)

Attachments

(1 file, 6 obsolete files)

So I re-enabled the attachment tests in the Mozmill test suite (bug 711085), and now we're seeing a permanent orange on Linux.

The error message for the test is:

Test Failure: attachmentBucket is not focused!: 'Remove Attachment' != 'Delete'.
TEST-UNEXPECTED-FAIL | /buildbot/comm-central-linux-opt-unittest-mozmill/build/mozmill/attachment/test-attachment.js | test-attachment.js::test_attachments_compose_menu
Assignee: nobody → mconley
Whiteboard: [tb-orange]
Blocks: 711085
I've seen cases on both Linux 32 and 64 bit where the tests all pass.  They're rare, but they exist.
Summary: Permanent orange: TEST-UNEXPECTED-FAIL | test-attachment.js | test-attachment.js::test_attachments_compose_menu → Mostly-Permanent orange: TEST-UNEXPECTED-FAIL | test-attachment.js | test-attachment.js::test_attachments_compose_menu
Attached patch Patch v1 (obsolete) — Splinter Review
I *think* the test is failing because we're not giving the event loop enough time to update the label of the cmd_delete element.

Try builds coming in here:  http://build.mozillamessaging.com/tinderboxpushlog/?tree=ThunderbirdTry&rev=84e3e2c94122
Attached patch Second shot (obsolete) — Splinter Review
First patch didn't fix it.  Here's another shot.

http://build.mozillamessaging.com/tinderboxpushlog/?tree=ThunderbirdTry&rev=9cea77f68d48
Attachment #586075 - Attachment is obsolete: true
Attached patch Third go at it. (obsolete) — Splinter Review
Hrm, this is starting to get a little frustrating.  Trying a third time, and falling back to default error messages for assert_equals for diagnostics.

http://build.mozillamessaging.com/tinderboxpushlog/?tree=ThunderbirdTry&rev=fb656152eb97
Attachment #586145 - Attachment is obsolete: true
I've reduced this to a focus issue that seems to be unique to Linux.  It seems that focus events are not sent to elements when the parent window is not focused.  I can reliably reproduce this on my machine.

I think I've found a workaround.  Patch forthcoming.
Attached patch Patch v8 (obsolete) — Splinter Review
Attachment #586998 - Attachment is obsolete: true
Attached patch Patch v9Splinter Review
Attachment #587302 - Attachment is obsolete: true
Attachment #587310 - Attachment is patch: true
Comment on attachment 587310 [details] [diff] [review]
Patch v9

Hey Jim,

I know you're swamped, but my patch is here is relatively small.  Let me know if I should redirect the review request.

Tested locally on OSX, Windows and Linux - all passing, even when the parent window is not focused.

-Mike
Attachment #587310 - Flags: review?(squibblyflabbetydoo)
Attachment #587310 - Flags: review?(squibblyflabbetydoo) → review?(mbanner)
Attachment #587310 - Flags: review?(mbanner) → review+
Committed to comm-central as http://hg.mozilla.org/comm-central/rev/7c894b95efe4
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 12.0
Whiteboard: [tb-orange]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: