See here: our tests are currently failing on Postgres and SQLite. We should figure out what causes this and try to fix it.
Estimated Value and Story Points
This issue was identified as a Beta Blocker for Drupal 8. We sat down and figured out the value proposition and amount of work (story points) for this issue.
Value and Story points are in the scale of fibonacci. Our minimum is 1, our maximum is 21. The higher, the more value or work a certain issue has.
Value : 13
Story Points: 8
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | fix_test_fails_on-2552453-16.patch | 3.87 KB | borisson_ |
| #16 | interdiff.txt | 802 bytes | borisson_ |
Comments
Comment #2
drunken monkeyWe're also broken with PHP 7.
Comment #3
nick_vhComment #4
mollux commentedComment #5
mollux commentedThe PHP 7 tests should be fixed with this patch, now going for SQLite
Comment #6
mollux commentedFound the issue with SQLite tests, it's a core bug :(
In SQLite, indexes and tables must be unique, witch isn't the case (e.g. search_api_db_default_index_search_api_language is a table name, and search_api_db_default_index_1_search_api_language is also the name of the index of the search_api_language field in the search_api_db_default_index table.
In #1008128: Do not use a single underscore as table and index separator on PostgreSQL and SQLite there is a solution for this, but that issue was wrongly closed, as only the Postgres issues were fixed in another issue.
I'm creating a patch for that issue, but for the moment I added a temporary fix so we can test SQLite.
Comment #7
mollux commentedHurray, all green (if you combine the 2 patches).
Maybe we should add a separate issue for SQLite, as that needs some work once the core patch in #1008128: Do not use a single underscore as table and index separator on PostgreSQL and SQLite lands?
Comment #8
mollux commentedComment #9
mollux commentedComment #10
mollux commentedI created a separate core issue #2625664: Name of tables and indexes conflicts for SQLite, as the patches in #1008128: Do not use a single underscore as table and index separator on PostgreSQL and SQLite are to far behind, and both for SQLite and PostgresSQL (which was fixed in #998898: Make sure that the identifiers are not more the 63 characters on PostgreSQL.
Comment #11
nick_vhI'd remove the tl;tr since it is actually tl;dr! :). Just make it a proper sentence.
The core issue wasn't "wrongly" closed, it didn't fully solve the initial problem. No need to blame anything or anyone in code forever.
Comment #12
mollux commentedOw, had no intention to blame anyone, changed the comment.
Also added better explanation what the problem is.
Comment #13
borisson_Should we postpone this issue on #2625664: Name of tables and indexes conflicts for SQLite? I think I'd prefer getting it in like this and adding a followup to remove the changes to the database backend again that we can commit when the core issue lands? That way we can enable tests again on the currently broken builds.
Comment #14
mollux commentedIn favor of getting it in like this + follow up, as we really should re-enable the tests.
Comment #15
nick_vhMaybe as a last comment, add a @todo tag so we can easily find it again.
eg. @todo remove this when #2625664 gets fixed in Drupal core.
Otherwise, looks good to go. I'm RTBC'ing this but with the condition of the @todo tag.
Comment #16
borisson_Fixed #15, also added a new issue #2625722: Remove sqlite fixing code in search api..
Comment #17
nick_vhWe do reference the same issue 4 times. Maybe overkill but better safe than sorry?
Comment #19
drunken monkeyAwesome, thanks for the great work, Mattias!
And of course also thanks to Joris and Nick!
Committed.
Thanks again!
Comment #20
nick_vhI enabled all the environments on issue and commit now. Looking forward to having more sqlite issues! Thanks for the commit