Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Lendude created an issue. See original summary.

Lendude’s picture

Status: Active » Needs review
FileSize
596 bytes

Lets see if we can establish a baseline failure rate in HEAD for this.

Status: Needs review » Needs work

The last submitted patch, 2: 2870146-2-200-times-baseline.patch, failed testing.

Lendude’s picture

@michielnugter++

lets try that again....

Status: Needs review » Needs work

The last submitted patch, 4: 2870146-4-200-times-baseline.patch, failed testing.

Lendude’s picture

Status: Needs work » Needs review
FileSize
594 bytes

Try with 100

Status: Needs review » Needs work

The last submitted patch, 6: 2870146-6-100-times-baseline.patch, failed testing.

droplet’s picture

Status: Needs work » Needs review
FileSize
1.64 KB

there's a bug taking the test such long execution time. I will split it to a new thread if it needed (but we also need a random test. So I do it here together first to save some testbots resource)

mpdonadio’s picture

Priority: Major » Critical

This may not be limited to just outside_in and more frequent that it appears:

https://www.drupal.org/pift-ci-job/650067 (outside_in)

https://www.drupal.org/pift-ci-job/650091 (views)

Raising this to Critical as it appears to be causing testing disruption. We'll see if other RTBC get punted back b/c of this.

Status: Needs review » Needs work

The last submitted patch, 8: 2870146-8-100-times-baseline-with-performance-fix.patch, failed testing.

Lendude’s picture

@mpdonadio I'd already opened #2868880: Random fails in ContextualFilterTest::testAddContextualFilterUI for the Views issue. Added your failure to the list there.

@droplet nice fix! took it down from 5 minutes per test to about 1.5 minutes. So we probably need to take it down to 50 tests per run (75 could just work, but better to have some buffer I think)

droplet’s picture

It seems it missed click on edit area.

  protected function openBlockForm($block_selector) {
    $this->click($block_selector);
    $this->waitForOffCanvasToOpen();

the edit mode has anime on page reload.

hoping this patch will catch a new failure point

droplet’s picture

#12 failed as expected. the Setting Tray didn't open correctly.

Trying to see if it's Toolbar flicker problem affected.
Same patch as #12 and adding #2542050: Toolbar implementation creates super annoying re-rendering. patch.

droplet’s picture

As a new module, Setting Tray needs more work to make it more decoupled I think

michielnugter’s picture

Status: Needs review » Needs work

I created #2871219: Add checks to make sure animation is done in a JavascriptTestBase test because I really dislike using assertWaitOnAjax() to wait for animation. Not suggesting to postpone a critical on this but we might want to add a follow-up to change it after we decided and committed a better version of the animation wait.

    Nice work @droplet!

    Review:

  1. +++ b/core/modules/outside_in/tests/src/FunctionalJavascript/OutsideInBlockFormTest.php
    @@ -182,6 +182,7 @@ public function providerTestBlocks() {
         $this->pressToolbarEditButton();
    +    $this->assertToolbarIsLoaded();
    
    @@ -190,6 +191,7 @@ protected function enableEditMode() {
         $this->pressToolbarEditButton();
    +    $this->assertToolbarIsLoaded();
    
    @@ -363,18 +376,15 @@ protected function assertEditModeDisabled() {
    -    // Waiting for Toolbar animation.
    -    $this->assertSession()->assertWaitOnAjaxRequest();
    

    Should the assertToolbarIsLoaded() be added to the pressToolbarEditButton() function as a replacement for the old waiting for... WaitOnAjaxRequest call instead of calling manually? This would improve the test code-flow

  2. +++ b/core/modules/outside_in/tests/src/FunctionalJavascript/OutsideInBlockFormTest.php
    @@ -207,12 +209,25 @@ protected function assertOffCanvasBlockFormIsValid() {
    +  protected function assertToolbarIsLoaded() {
    

    The method should either add an assertion to make sure it's loaded (don't see how yet) or be renamed to waitForToolbar()

  3. +++ b/core/modules/outside_in/tests/src/FunctionalJavascript/OutsideInJavascriptTestBase.php
    @@ -42,7 +42,7 @@ public function enableTheme($theme) {
       protected function waitForOffCanvasToOpen() {
    ...
    +    $this->assertNotEmpty($web_assert->waitForElementVisible('css', '#drupal-offcanvas')) ;
    

    We could say that this method should now contain assert in the name as it now asserts the canvas is visible :)

    However: Do we really need to add the assertion here?

droplet’s picture

Should the assertToolbarIsLoaded() be added to the pressToolbarEditButton() function as a replacement for the old waiting for... WaitOnAjaxRequest call instead of calling manually? This would improve the test code-flow

Some cases, you won't press the edit button

droplet’s picture

We could say that this method should now contain assert in the name as it now asserts the canvas is visible :)

However: Do we really need to add the assertion here?

A better deal is throw exception from waitForElementVisible / waitForElement directly. Let code guard our code has no mistakes.

droplet’s picture

Status: Needs work » Needs review
FileSize
3.61 KB
michielnugter’s picture

Status: Needs review » Reviewed & tested by the community

Changes look good, thanks @droplet! I created a follow-up to resolve the @todo: #2872104: Resolve @todo in \Drupal\Tests\outside_in\FunctionalJavascript\OutsideInBlockFormTest.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 18: 2870146-18.patch, failed testing.

michielnugter’s picture

Status: Needs work » Reviewed & tested by the community

Unrelated fail, back to rtbc. Anyone know if the migrate fail is known?

mpdonadio’s picture

#21, that was a fail from a patch that just landed, #2665196: Migration for email fields is missing. And since HEAD is broken with the same fail, I'm sure this will get attention.

  • catch committed 13e8aca on 8.4.x
    Issue #2870146 by droplet, Lendude, michielnugter: Even more random...

  • catch committed 2473df2 on 8.3.x
    Issue #2870146 by droplet, Lendude, michielnugter: Even more random...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.4.x and cherry-picked to 8.3.x, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

xjm’s picture

Un-parenting close issues, thanks everyone!

tedbow’s picture

Component: outside_in.module » settings_tray.module

Changing to new settings_tray.module component. @drpal thanks for script help! :)