Closed Bug 1027144 Opened 10 years ago Closed 10 years ago

Re-enable test_homescreen_move_app.py, test_homescreen_delete_app.py

Categories

(Firefox OS Graveyard :: Gaia::UI Tests, defect)

Other
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v2.0 fixed, b2g-v2.1 fixed)

RESOLVED FIXED
2.0 S5 (4july)
Tracking Status
b2g-v2.0 --- fixed
b2g-v2.1 --- fixed

People

(Reporter: zcampbell, Assigned: kgrandon)

References

Details

(Keywords: qablocker, regression, Whiteboard: [systemsfe][xfail], NPOTB)

Attachments

(4 files, 1 obsolete file)

Over the last weekend changes were made to the Homescreen that regressed the testability. Instead of this being resolved, tests were disabled. The devs have described the problem as "In gaia_dragdrop, in the contextmenu event handler we don't handle it if the transition is still ending - this will then bubble up to the app and it will treat it as a long-press on the wallpaper." It needs to be resolved because it is blocking P1 QA Smoketest coverage. Rough regression range: Passing: Gaia revision 90777363ed0a Gecko build 20140612160203 Gecko revision aab3362f97e9 Gecko version 33.0a1 Failing: Gaia dfc4703bb81d1fa4f2087a1a6124b47a80a5d1de Gecko https://hg.mozilla.org/mozilla-central/rev/80431d4fd0da BuildID 20140616040202 Version 33.0a1
I think we should wait until transitionend before starting a new drag operation. The gaia fix will likely be to prevent the contextmenu while a transitionend is in progress - though a user will probably never run into this. Also FWIW we do already have test coverage for this in the app. It's a unit test currently, and we're also working on JS marionette tests for this.
QA blocker - needs to block the release.
blocking-b2g: --- → 2.0?
QA Whiteboard: [VH-FL-blocking+][VH-FC-blocking+]
Whiteboard: [systemsfe]
This impacts 2.0 coverage right? Not just 2.1?
Flags: needinfo?(zcampbell)
I haven't checked yet. We're enabling vertical hs tests on v2.0 tomorrow so we'll know then. Keeping ni? until then.
(In reply to Kevin Grandon :kgrandon from comment #1) > I think we should wait until transitionend before starting a new drag > operation. The gaia fix will likely be to prevent the contextmenu while a > transitionend is in progress - though a user will probably never run into > this. I did try to put some generous waits into the test to wait for edit mode to settle and stabilise but it did not resolve it. but I agree it's a Marionette only problem, I could not replicate it manually.
Flags: needinfo?(zcampbell)
Will wait on a 2.0 nom until I get confirmation that this happens on 2.0.
blocking-b2g: 2.0? → 2.1?
QA Whiteboard: [VH-FL-blocking+][VH-FC-blocking+] → [VH-FL-blocking?][VH-FC-blocking?]
Whiteboard: [systemsfe] → [systemsfe][xfail]
Blocks: 1015336
No longer blocks: vertical-homescreen
Confirmed this test got shut off on 2.0 as well.
blocking-b2g: 2.1? → 2.0?
QA Whiteboard: [VH-FL-blocking?][VH-FC-blocking?] → [VH-FL-blocking+][VH-FC-blocking+]
I understand the desire to have these tests and we really want them as well, but how does this constitute a FL blocker? I understand the value in tests and they are really nice, but to me it doesn't seem like they should necessarily block the feature from landing. We have coverage for this functionality, and we will work on getting this working again for device coverage. Can we remove FL blocking and keep FC blocking?
Flags: needinfo?(jsmith)
Flags: needinfo?(cserran)
(In reply to Kevin Grandon :kgrandon from comment #8) > I understand the desire to have these tests and we really want them as well, > but how does this constitute a FL blocker? I understand the value in tests > and they are really nice, but to me it doesn't seem like they should > necessarily block the feature from landing. We have coverage for this > functionality, and we will work on getting this working again for device > coverage. > > Can we remove FL blocking and keep FC blocking? I don't think so. This is caused QA to lose smoketest coverage, so we need this test turned on asap.
Flags: needinfo?(jsmith)
We will turn this on asap, but I think you are abusing the feature landing flag for this. Feature landing === feature work.
(In reply to Kevin Grandon :kgrandon from comment #10) > We will turn this on asap, but I think you are abusing the feature landing > flag for this. Feature landing === feature work. No, that's wrong. Feature landing means: * No smoketest blockers * No automation coverage lost due to landing of a feature (this is what is causing this to block) * No missing use cases
Renaming this because we can't change anything about gaia to support this, we need to fix the waits in the test. I'm looking into it now.
Component: Gaia::Homescreen → Gaia::UI Tests
Summary: [Vertical homescreen] Homescreen testability has been regressed → Re-enable test_homescreen_move_app.py
Attached file Github pull request
Hey guys - anyone have time for a review?
Assignee: nobody → kgrandon
Status: NEW → ASSIGNED
Attachment #8443076 - Flags: review?(zcampbell)
Attachment #8443076 - Flags: review?(florin.strugariu)
Target Milestone: --- → 2.0 S4 (20june)
Flags: needinfo?(cserran)
I'll pull blocking flag since now I understand this doesn't require a gaia change. Still need to block FL though for the reasons mentioned above.
blocking-b2g: 2.0? → ---
Comment on attachment 8443076 [details] [review] Github pull request Bebe is off today. r+, It works very well. Thanks a lot Kevin, you're a true gentleman!
Attachment #8443076 - Flags: review?(zcampbell)
Attachment #8443076 - Flags: review?(florin.strugariu)
Attachment #8443076 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
I'll trial this on v2.0
Status: RESOLVED → REOPENED
Flags: needinfo?(zcampbell)
Resolution: FIXED → ---
This doesn't go straight onto v2.0, there must be some vertical hs commits waiting to be uplifted to v2.0. (or at least on the build I was using)
Flags: needinfo?(zcampbell)
Thanks Zac. I uplifted a lot of commits last night and I'm generally doing everything in resolution order. It's best if we mark this as resolved so it goes in landing order, and it should be fine to uplift now - I'll follow through on it. Let me know if you have any objections to that.
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → FIXED
Comment on attachment 8443076 [details] [review] Github pull request This is a test and is needed to ensure we don't regress the vertical homescreen in 2.0. Not part of the build.
Attachment #8443076 - Flags: approval-gaia-v2.0?(bbajaj)
Whiteboard: [systemsfe][xfail] → [systemsfe][xfail], NPOTB
Attachment #8443076 - Flags: approval-gaia-v2.0?(bbajaj) → approval-gaia-v2.0+
Reckon this is actually a functional regression introduced recently.
Ed - Are you sure you backed out the right patch here? I would expect a Gaia patch to be backed out here that caused the functional regression, not the test.
Flags: needinfo?(emorley)
(In reply to Jason Smith [:jsmith] from comment #24) > Ed - Are you sure you backed out the right patch here? I would expect a Gaia > patch to be backed out here that caused the functional regression, not the > test. Yes I'm sure. The test was flaky, was supposed to be fixed, and is still flaky, hence the fixing and re-enablement of the test being reverted. Note comment 22 said /intermittent/ rather than permanently failing & also bear in mind this landed late on friday, and not as many jobs run (or are starred) over the weekend, so this test wasn't necessarily "fine" and then regressed later by something else.
Flags: needinfo?(emorley)
The uplift also turned gaia-ui-tests perma-orange on Aurora: https://tbpl.mozilla.org/?tree=Mozilla-Aurora&jobname=gaia-ui Please can you back it out there?
We were tracking the perma-orange in bug 1028640, which was due to waiting on bug 962645 to be uplifted. I would like the tests to maintain the same state across the branch, so going to perform a backout on 2.0 while we investigate. https://github.com/mozilla-b2g/gaia/commit/112b26d38f9ef91ca00d435055f5d28267423e53
Target Milestone: 2.0 S4 (20june) → 2.0 S5 (4july)
Add a wait before "first_app_before_move = self.homescreen.visible_apps[0].name" can fix the "IndexError: list index out of range" issue https://github.com/mozilla-b2g/gaia/pull/20920 (In reply to Ed Morley [:edmorley UTC+0] from comment #27) > Another on trunk: > https://tbpl.mozilla.org/php/getParsedLog.php?id=42276928&tree=Mozilla- > Inbound
feature-b2g: --- → 2.0
Attached file github pr (obsolete) —
On behalf of Askeing. Triggered it a few times to validate its stability: https://tbpl.mozilla.org/?tree=Gaia-Try&rev=a431b50a07c2a30a4ea5c815cd3c27fb4b811399
Attachment #8445884 - Flags: review?(zcampbell)
Attachment #8445884 - Flags: review?(kgrandon)
Attachment #8445884 - Flags: review?(kgrandon) → review?(florin.strugariu)
(In reply to Zac C (:zac) from comment #30) > Triggered it a few times to validate its stability: > https://tbpl.mozilla.org/?tree=Gaia- > Try&rev=a431b50a07c2a30a4ea5c815cd3c27fb4b811399 Thanks for pushing to try :-) We'll need to run it something like 100 times to know for sure; have requested some additional retriggers.
Clearing the feature-b2g flag - this isn't feature work, but rather automation coverage lost against the FL criteria QA has set.
feature-b2g: 2.0 → ---
Depends on: 1027708
I've disabled and fixed the disabled messages for the two failing tests. Also gave this bug the dependency upon the homescreen fix. master https://github.com/mozilla-b2g/gaia/commit/5ab7b1ce3144eb399575a76b58d2600b34d02411 v2.0 https://github.com/mozilla-b2g/gaia/commit/d815bfbb70d0f4a3757bb9eb93956a59a103d181
Summary: Re-enable test_homescreen_move_app.py → Re-enable test_homescreen_move_app.py, test_homescreen_delete_app.py
(In reply to Ed Morley [:edmorley UTC+0] from comment #31) > (In reply to Zac C (:zac) from comment #30) > > Triggered it a few times to validate its stability: > > https://tbpl.mozilla.org/?tree=Gaia- > > Try&rev=a431b50a07c2a30a4ea5c815cd3c27fb4b811399 > > Thanks for pushing to try :-) We'll need to run it something like 100 times > to know for sure; have requested some additional retriggers. This found a failure: https://tbpl.mozilla.org/php/getParsedLog.php?id=42455542&tree=Gaia-Try TEST-UNEXPECTED-FAIL | test_homescreen_move_app.py test_homescreen_move_app.TestMoveApp.test_move_app_position | AssertionError: u'Phone' != u'FM Radio'
Comment on attachment 8445884 [details] [review] github pr This is not ready for review as the bug is blocked.
Attachment #8445884 - Flags: review?(zcampbell)
Attachment #8445884 - Flags: review?(florin.strugariu)
Attached file Github revert
Pull request with just the revert, try results starting to come in and look promising: https://tbpl.mozilla.org/?tree=Gaia-Try&rev=791b9aeda2d8071b638a8eb4f80211b38b6e9b77 Assuming we get a slew of greens, it should be fine to land this now that the dependent bug has landed.
Attachment #8445884 - Attachment is obsolete: true
A few failures for clock, but the intermittent here seems to have gone away, landing..
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → FIXED
(In reply to Kevin Grandon :kgrandon from comment #37) > A few failures for clock, but the intermittent here seems to have gone away, > landing.. Damn, thought I resolved those last week :( Thanks for re-enabling this test!
Kevin, does something need to be done on v2.0 here still?
Flags: needinfo?(kgrandon)
The test was turned off in 2.0, so I applied this patch to re-enable it now that the dependent bug has landed. A=test only.
Flags: needinfo?(kgrandon)
Let's re-enable test_homescreen_delete_app.py too
Attachment #8448040 - Flags: review?(zcampbell)
Attachment #8448040 - Flags: review?(zcampbell) → review+
Attached file Pull request v2.0
test_delete_app need to be re-enabled on v2.0
Attachment #8449392 - Flags: review?(zcampbell)
Attachment #8449392 - Flags: review?(florin.strugariu)
Attachment #8449392 - Flags: review?(florin.strugariu) → review+
Attachment #8449392 - Flags: review?(zcampbell)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: