Closed Bug 1568789 Opened 5 years ago Closed 2 years ago

TEST-UNEXPECTED-FAIL | [snip]/folder-display/test-selection.js | test-selection.js::test_enter_scroll_to_new

Categories

(Thunderbird :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: jorgk-bmo, Unassigned)

References

Details

(Keywords: intermittent-failure, leave-open, Whiteboard: [Thunderbird-testfailure: Z Linux,Mac])

Attachments

(1 file)

TEST-UNEXPECTED-FAIL | /builds/worker/workspace/build/tests/mozmill/folder-display/test-selection.js | test-selection.js::test_enter_scroll_to_new has started to pop up first on my try here:

https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=011167f1ac2a0d861f9514df9ef437347f0815f7

I did that try run since I had nothing to push to cover the M-C merge of
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=5585edba8fdb83267722e62241952272c8e24a8f&tochange=6598e37c88d2816deed4fdaedbddf9c9dade7987

As one can see, I reran some tests, and the Z2's turned green. Also this push
https://treeherder.mozilla.org/#/jobs?repo=comm-central&revision=e2dad5423b3ba2aa4742d4f0e74e0a06ebe92291
only has one of them.

They are back here now:
https://treeherder.mozilla.org/#/jobs?repo=comm-central&selectedJob=258265997&revision=33aa95186ee7d2c81dc6d17c44160b10db97ecbd
but not consistently.

Log says:
https://taskcluster-artifacts.net/DmIFlCsSQ5-ku7prwqu1IQ/0/public/logs/live_backing.log
[task 2019-07-25T10:07:20.574Z] 10:07:20 INFO - EXCEPTION: View index 19 is not visible! (0-12 are visible)

They pass locally for me:
mozmake SOLO_TEST=folder-display/test-selection.js mozmill-one

Maybe the front-end cracks want to take a look.

Flags: needinfo?(mkmelin+mozilla)
Flags: needinfo?(geoff)
Flags: needinfo?(alessandro)

I'm randomly stumbling upon 4 failures locally on Linux, as they happen if I trigger the entire folder instead of individual tests.

This is the first:

EXCEPTION: messages box height (659.6666870117188) not equal to the sum of
displayDeck height (0) and message pane box wrapper height (631.3333740234375)
and message notification box height (28.333328247070312):
'659.6666870117188' != '659.6667022705078'.

And these are the other 3:
EXCEPTION: Thought we would find row 1 at 40,27 but we found -1

I'll see if I can fix them.

Flags: needinfo?(alessandro)

I'm getting old :-( - This was already reported in bug 1528482. So it's not new at all.

Summary: TEST-UNEXPECTED-FAIL | /builds/worker/workspace/build/tests/mozmill/folder-display/test-selection.js | test-selection.js::test_enter_scroll_to_new → TEST-UNEXPECTED-FAIL | [snip]/folder-display/test-selection.js | test-selection.js::test_enter_scroll_to_new
Summary: TEST-UNEXPECTED-FAIL | [snip]/folder-display/test-selection.js | test-selection.js::test_enter_scroll_to_new → TEST-UNEXPECTED-FAIL | /builds/worker/workspace/build/tests/mozmill/folder-display/test-selection.js | test-selection.js::test_enter_scroll_to_new
Whiteboard: [Thunderbird-testfailure: Z all] → [Thunderbird-testfailure: Z Linux,Mac]
Summary: TEST-UNEXPECTED-FAIL | /builds/worker/workspace/build/tests/mozmill/folder-display/test-selection.js | test-selection.js::test_enter_scroll_to_new → TEST-UNEXPECTED-FAIL | [snip]/folder-display/test-selection.js | test-selection.js::test_enter_scroll_to_new
Flags: needinfo?(mkmelin+mozilla)

This is almost perma-red now. Can we get some tracking on this?

Flags: needinfo?(mkmelin+mozilla)
Flags: needinfo?(alessandro)
Flags: needinfo?(acelists)

I've been trying to fix this when I have a few spare moments, but Mac OS is defying me at the moment. My fix which seems to be good for the other platforms makes Mac fail every time.

Flags: needinfo?(geoff)

And in fact there's another failure now. test_selection_last_message_deleted is also failing sometimes.

On Linux, I can recreate the failures only if I run the entire folder:
make -C obj-x86_64-pc-linux-gnu mozmill-one SOLO_TEST=folder-display/

Running the single tests don't cause the failures.
This is gonna be interesting to debug.

Flags: needinfo?(alessandro)

That does happen. In mozmill all the tests in the folder are run in the same TB session so whatever is left after one test the next one will see. Also, tests aren't always run in the same order. So tests have to be neutral enough to not leave garbage after them.

So if you can't reproduce the failure with single test, see in what state your test actually starts after the others in the folder are run.
Also you can get screenshots on the server showing in what state the test has failed. Then you can see if there are some leftover folders or messages from previous tests.

Flags: needinfo?(acelists)

I found I could make it fail every time (even if only test_enter_scroll_to_new is run) by inserting mc.sleep(1000) before the assert_visible. There's something wrong with the timing, which does go away by waiting after the first enter_folder and after make_new_sets_in_folder, but not on Mac for some reason.

See this Try run for my most recent attempt and a screenshot at the point of failure. (No idea why the folder tree is transparent!)

Keywords: leave-open
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/f07021063440
Temporarily disable two subtests of MozMill test folder-display/test-selection.js on Linux and Mac. rs=bustage-fix

I bet if you move these two to be last, it will fix this.

test_selection_select_column()
test_selection_select_column_deselection()

(Only test_selection_last_message_deleted fail, the other predates).

Looking good so far. So why do these tests upset the rest?

Assignee: nobody → jorgk

https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=bd1324f20336d8a0962999adbb5bd79a3fb051d2&selectedJob=263309149
TEST-UNEXPECTED-FAIL | /builds/worker/workspace/build/tests/mozmill/folder-display/test-selection.js | test-selection.js::test_enter_scroll_to_new

You lose. What was the bet? Do I get a beer now? ;-)

Assignee: jorgk → nobody

Nope, the bet is that test_selection_last_message_deleted (comment 7) no longer fails (comment 13). The second of the column tests deleted a row and maybe moved the scroll view, that broke the very fragile _row_click_helper(). The scroll test failed before. So pay up. ;)

Well, comment #13 was a little vague and you edited it to add that clause. But I'm happy to pay. What did we agree on? ;-)

Where to go from here?
No intermittent reports since 2020.

Flags: needinfo?(mkmelin+mozilla)

All intermittent that didn't happen in a log time can be closed. If they re-emerge, something regressed and cause would be different.
The tests are re-enabled these days.

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(mkmelin+mozilla)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: