nylas-mail icon indicating copy to clipboard operation
nylas-mail copied to clipboard

Spec Suite failures for nylas N1

Open bashok001 opened this issue 10 years ago • 8 comments

I ran N1 spec about 5 times and these two tests failed every single time. There are few that are transient failures but these are consistent. What information would you need to diagnose it?

image

bashok001 avatar Jan 25 '16 02:01 bashok001

These are uncommon errors, but expected on a desktop platform.

One error is about window size of the spec testing window. Do you run a window manager that forces the sizing of windows?

The other error is not as likely to appear, but it is failing on a XHR request to nylas://account-sidebar/package.json. I have seen this error appear in spec tests run from my laptop, so I do not find them surprising when running in the GUI spec test mode.

mbilker avatar Jan 25 '16 03:01 mbilker

@mbilker, Please feel free to close the issue if you think that both of them are expected.

bashok001 avatar Jan 25 '16 14:01 bashok001

This error is important. It does not appear in CI test runs, but it does appear even when running the tests on my personal computer.

2016-01-25-09-56-25_431x242

mbilker avatar Jan 25 '16 14:01 mbilker

Hey folks—In that first error, it looks like your window manager is causing the test to fail by making the spec window fullscreen rather than 400px high.

That second error is definitely interesting. We should look at how that test is structured and see if anything could be conflicting. Maybe it doesn't work if you have another copy of N1 running? Or it could be based on relative file paths (to a package) being correct, and they're different when you run it this way?

bengotow avatar Jan 25 '16 18:01 bengotow

@bengotow The spec is failing with Gnome window manager. It is not full screen per se. Anyway, it passed when I switched window manager to i3.

bashok001 avatar Jan 25 '16 19:01 bashok001

Huh. My run failed running under i3 with the error above.

mbilker avatar Jan 25 '16 20:01 mbilker

Sorry for the confusion, @mbilker. I was only referring to Resizing spec. Other one fails either way.

bashok001 avatar Jan 25 '16 20:01 bashok001

Hey folks—hmm, interesting. Sounds like these are definitely platform-related. I'm going to go ahead and close this and we'll see if we can make our specs more resilient in the future!

bengotow avatar Jan 26 '16 19:01 bengotow