Closed Bug 974731 Opened 11 years ago Closed 11 years ago

Failing calendar marionette test create_event_test.js

Categories

(Firefox OS Graveyard :: Gaia::Calendar, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.0 S3 (6june)

People

(Reporter: kgrandon, Assigned: mmedeiros)

References

Details

Attachments

(2 files)

This was disabled in bug 919066, then un-disabled but never fully tested-ran. Please run a minimum of 50 times before landing again. 1) creating an event "before each" hook: Error: timeout exceeded! at Object.Client.waitForSync (/home/travis/build/mozilla-b2g/gaia/node_modules/marionette-client/lib/marionette/client.js:679:16) at Object.Client.waitFor (/home/travis/build/mozilla-b2g/gaia/node_modules/marionette-client/lib/marionette/client.js:648:60) at Object.Calendar.waitForMonthView (/home/travis/build/mozilla-b2g/gaia/apps/calendar/test/marionette/calendar.js:125:17) at Context.<anonymous> (/home/travis/build/mozilla-b2g/gaia/apps/calendar/test/marionette/create_event_test.js:36:9) at Hook.Runnable.run (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runnable.js:211:32) at next (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:257:10) at /home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:269:7 at done (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runnable.js:185:5) at /home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runnable.js:197:9 at Object.executeHook (/home/travis/build/mozilla-b2g/gaia/node_modules/marionette-client/lib/marionette/client.js:370:18) at process._tickCallback (node.js:415:13)
Blocks: 952611
Assignee: nobody → gaye
Amazing.
talked with Gareth on IRC. I did not test it, but based on the code I would investigate the `app.createEvent()` method. The code that checks if view is active looks for the `body[data-path]` and if the view element contains the class `.active`; the only way I can see that happening is if the `this.waitForElement('editEventSaveButton').click()` did not actually click the proper element or somehow the click got "lost" (maybe thread was blocked?) suggestion to help debug it is to add some `console.log` to `calendar._isElementActive` and `calendar._isPath` to see what are the returned values. `body[data-path]` is supposed to always be in sync with the current view.
I've ran the setup block that timed out 750 times and it has only failed once, so I'm going to go ahead and re-enable. I think this is permissibly flaky, but let's keep an eye on it if these pop up again.
(750 times on travis that is)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
I'm not sure if it's this bug, or the refactor, but I've seen this fail ~twice over the last two days. If it fails again we should disable it. 1) creating an event opening event in read view should display the created event in read view: + expected - actual +03/25/2014 -03/26/2014 expected '03/26/2014' to equal '03/25/2014'
Thanks for pointing this out I'll take a look tomorrow
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
More failures, so disabling this test for now. 1) creating an event opening event in read view should display the created event in read view: expected '' to equal 'Puppy Bowl dogefortlongtextfotestloremipsumdolorsitamet' Disabled in master: https://github.com/mozilla-b2g/gaia/commit/6f196637a5090a5c5e517a48e2a20bf5871b451d
Attached file Pull request
Blocks: 996413
since I'm already working on other marionette tests I'll go ahead and fix this one as well. That way Evan can write the new tests for Bug 963394 as soon as possible and we can hopefully land it till Friday.
Assignee: gaye → mmedeiros
Target Milestone: --- → 2.0 S3 (6june)
this should be pretty stable, executed 80+ times on Travis before doing the PR. see: https://travis-ci.org/millermedeiros/gaia/builds/26799663 (each TRY == 20 runs)
Attachment #8434512 - Flags: review?(gaye)
Attachment #8434512 - Flags: review?(gaye) → review+
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
Rudy, it's a different problem. Julien reported it today as well: https://bugzilla.mozilla.org/show_bug.cgi?id=1033232
Flags: needinfo?(mmedeiros)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: