We're getting random fails in update tests - often starting with something like
fail: [Browser] Line 248 of core/modules/system/src/Tests/Update/UpdatePathTestBase.php:
GET http://localhost/checkout/update.php/start?id=2&op=do_nojs returned 0 (0 bytes).
And then a load of schema checking fails.
See fails on June 15th in https://www.drupal.org/pift-ci-job/328113 and https://www.drupal.org/pift-ci-job/328465
- Drupal\system\Tests\Update\UpdatePathTestBaseFilledTest fails on 8.2.x - seems to be caused be #2761403: Move runtime theme registry into bootstrap cache
- Drupal\field\Tests\Update\FieldUpdateTest fails on 8.1.x - this seems to be related to #2762549: Drupal\field\Tests\Update\FieldUpdateTest, Drupal\views\Tests\Update\EntityViewsDataUpdateTest and Drupal\comment\Tests\CommentFieldsTest fail on 8.1.x
- Drupal\views\Tests\Update\EntityViewsDataUpdateTest fails on 8.1.x - this seems to be related to #2762549: Drupal\field\Tests\Update\FieldUpdateTest, Drupal\views\Tests\Update\EntityViewsDataUpdateTest and Drupal\comment\Tests\CommentFieldsTest fail on 8.1.x
| Comment | File | Size | Author |
|---|---|---|---|
| #118 | 2762549-apcu-118.patch | 677 bytes | alexpott |
| #117 | 2762549-apcu-117.patch | 1.06 KB | alexpott |
| #116 | 2749955.116.patch | 815 bytes | alexpott |
| #113 | 2749955-bbfb417.patch | 3.77 MB | alexpott |
| #113 | 2749955-bbfb417.patch | 3.77 MB | alexpott |
Comments
Comment #2
alexpottLet's get a few test runs in a see how often it is occurring - interestingly seems to only be 8.1.x so far (and not 8.2.x)
Comment #3
alexpottComment #5
alexpottHappened again... https://www.drupal.org/pift-ci-job/331429
Comment #6
mikeryanAnd again: https://www.drupal.org/pift-ci-job/343255
Comment #7
xjmDiscussed with @catch, @alexpott, @effulgentsia, and @Cottser. This is critical per https://www.drupal.org/core/issue-priority#critical-bug:
Comment #8
peacog commentedHere's another https://www.drupal.org/pift-ci-job/353503
Comment #9
alexpottComment #10
toomanypets commentedAnd another https://www.drupal.org/pift-ci-job/356121
Comment #11
chx commentedEdit: deleted.
Comment #12
claudiu.cristeaHere's a new one #2767269-19: LocalReadOnlyStream must declare itself not writeable. CI https://www.drupal.org/pift-ci-job/374677
Comment #13
claudiu.cristeaAlso this https://www.drupal.org/pift-ci-job/373249
Comment #14
claudiu.cristea@alexpott, see https://www.drupal.org/node/2767269#comment-11408801. The same patch but one for 8.1.x and the other 8.2.x. Only 8.1.x is failing.
Comment #15
alexpottCan we make it fail for sure...
Comment #16
alexpottLet's include more of the failing tests.
Comment #18
alexpottSo we have more info and we can cause the fails!
Comment #21
alexpottSo concentrating on 8.1.x
Comment #23
alexpottLet's try bisecting...
Comment #25
alexpottComment #26
alexpottComment #27
alexpottComment #28
alexpottComment #30
alexpottComment #31
alexpottComment #33
alexpottComment #35
alexpottComment #36
alexpottOpps this was 5c01c88
Comment #38
claudiu.cristeaComment #39
alexpott@claudiu.cristea you need to apply this patch to the hash so it runs the test a few times.
Comment #41
alexpottComment #45
alexpottLet's see if it fixes both things ... although this oddness is given me deja-vu - #2762549: Drupal\field\Tests\Update\FieldUpdateTest, Drupal\views\Tests\Update\EntityViewsDataUpdateTest and Drupal\comment\Tests\CommentFieldsTest fail on 8.1.x
Comment #46
alexpottComment #49
alexpottOk so the issue with 8.1.x is the same as #2762549: Drupal\field\Tests\Update\FieldUpdateTest, Drupal\views\Tests\Update\EntityViewsDataUpdateTest and Drupal\comment\Tests\CommentFieldsTest fail on 8.1.x - even if we committed a revert it is still going to fail :( now to bisect the 8.2.x fail.
Comment #50
alexpottComment #51
alexpottComment #53
alexpottComment #54
alexpottAssuming when we opened 8.2.x is good.... here's the test commit to test.
Comment #56
alexpottComment #57
alexpottComment #58
alexpottComment #60
alexpottComment #61
alexpottComment #62
alexpottComment #63
alexpottComment #64
alexpottComment #65
alexpottComment #67
alexpott4a95e65086a40187989144a9630b12ab3bb71c62 is the first bad commit
commit 4a95e65086a40187989144a9630b12ab3bb71c62
Author: Nathaniel Catchpole
Date: Tue Jul 19 13:37:02 2016 +0100
Issue #2761403 by Berdir: Move runtime theme registry into bootstrap cache
:040000 040000 c290a369260a1764712a18e8fb79d605715a1f33 8934e4a61a161ee7326227289773cf914b9a14af M core
Comment #68
alexpottLet's revert it
Comment #69
alexpottLet's makde sure that changing the file doesn't fix....
Comment #71
alexpottSo the issue that introduced the 8.2.x fail looks like it is #2761403: Move runtime theme registry into bootstrap cache
Comment #73
berdirWeird. Feel free to revert that, it's not that important.
Comment #74
catchReverted the cache_bootstrap issue for now.
Comment #75
alexpottI fixed the issue summary of #2762549: Drupal\field\Tests\Update\FieldUpdateTest, Drupal\views\Tests\Update\EntityViewsDataUpdateTest and Drupal\comment\Tests\CommentFieldsTest fail on 8.1.x to include the
Drupal\field\Tests\Update\FieldUpdateTesttest as #46 is conclusive evidence this is the same bug.Now that #2761403: Move runtime theme registry into bootstrap cache has been reverted I think we can mark this issue as fixed.
Comment #76
alexpottAh looking in all my old fail emails we should also look at Drupal\views\Tests\Update\EntityViewsDataUpdateTest - seems to fail on PHP 5.5 / 8.1.x only so might be the same as #2762549: Drupal\field\Tests\Update\FieldUpdateTest, Drupal\views\Tests\Update\EntityViewsDataUpdateTest and Drupal\comment\Tests\CommentFieldsTest fail on 8.1.x
Comment #77
alexpottComment #79
alexpottOkay as suspected Drupal\views\Tests\Update\EntityViewsDataUpdateTest is also #2762549: Drupal\field\Tests\Update\FieldUpdateTest, Drupal\views\Tests\Update\EntityViewsDataUpdateTest and Drupal\comment\Tests\CommentFieldsTest fail on 8.1.x
So marking this issue as fixed again.
Comment #80
MixologicComment #81
MixologicAdded the related issue : TLDR: we worked on this back in jan-mar, and found it to be php-errors.
Comment #82
alexpottHmm so the revert didn't fix it... :( https://www.drupal.org/pift-ci-job/388205
Maybe we've found the 8.2.x equivalent of core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php - a file that any change results in a pass... but I tested that in #69 :(
What is going on... #68 was passing all the time.
Comment #83
alexpottTesting again...
Comment #84
alexpottReverting the revert...
Comment #90
alexpottSo did I get the wrong commit :( both 83 and 84 have now failed... I did the bisect with 30 - but maybe that is not enough - since it is possible to be green with 50... see #83
Comment #91
alexpottComment #93
alexpottComment #95
alexpottComment #96
alexpottComment #97
alexpottComment #99
alexpottThis actually failed on second re-test :(
Comment #102
alexpottComment #103
alexpottComment #105
alexpottComment #106
alexpottComment #107
alexpottComment #108
alexpottLet's see if 4a95e65 still fails...
Comment #109
alexpottAssuming 4a95e65 is still failing - trying out a hunch.
Comment #110
alexpottContinuing with the bisect
Comment #113
alexpottI don't believe this bisect... :(
Comment #115
alexpottSo according to the bisect...
But I'm not sure if this means anything...
Comment #116
alexpottLet's see what happens to test run times with unique APCu prefixes.
Comment #117
alexpottLet's see if just adding a comment to webtestbase fixes things (for whatever reason)
Comment #118
alexpottHere's a proper patch to remove non-unique APCu prefixes just in case we decide to try this as a solution.
Comment #122
catchSummarizing discussion in irc - I've committed #118 to 8.1.x and 8.2.x as an interim step.
Ensuring a unique APCu prefix helps a lot, but https://www.drupal.org/pift-ci-job/390169 is a fail on PHP7, which on DrupalCI does not have APCu enabled.
So this can't just be an APCu bug, but it could potentially be a PHP bug which is exacerbated by an APCu bug.
Also Mixologic confirmed in irc that all PHP versions have 4.0.7 APCu.
Comment #126
alexpottIn my mind this is fixed - looking at node/3060/qa these have gone away since the commit.
Comment #127
alexpottComment #129
penyaskitoSorry for updating a closed issue, but this is still happening on d.o for me very consistently.
The error usually is
file_put_contents(/var/www/html/sites/simpletest/.htaccess): failed to open stream: Permission denied
Examples:
https://www.drupal.org/pift-ci-job/724766
https://www.drupal.org/pift-ci-job/709153
https://www.drupal.org/pift-ci-job/703693
Does it happen for any other contrib modules out there?