This issue is part of #2157455: [Meta] Make Drupal 8 work with PostgreSQL or remove support from core before release.
Problem/Motivation
Some CommentRestExport tests fail for PostgreSQL, because the view (view.views.rest_comment_rest.yml) used in test requests created comments with no order.
Proposed resolution
Add order clause to view to make PostgreSQL pass.
User interface changes
None
API changes
None
Original report by @bzrudi71
Currently there is one or more fail or exception in the comment test group identified by the new docker based testbot that need to be fixed to make PostgreSQL finally passing all tests. Command in use:
sudo DCI_DBTYPE='pgsql' \
DCI_DBVER='9.1' \
DCI_PHPVERSION='5.5' \
DCI_CONCURRENCY='4' \
DCI_TESTGROUPS='comment' \
DCI_DRUPALBRANCH='8.0.x' \
DCI_VERBOSE='true' \
DCI_UPDATEREPO='true' \
./containers/web/run.sh
Beta phase evaluation
Comments
Comment #1
bzrudi71 commentedHere are the results attached. We have one failing test (exception) in CommentBookTest, but that one is annoying, because I thought this one to was fixed already ;-)
Comment #2
bzrudi71 commentedUpdated test results now that #2403485: Complete conversion of comment form validation to entity validation is in. No more exceptions, just two fails in new CommentRestExportTest.
Comment #3
bzrudi71 commentedSeems that view.views.rest_comment_rest.yml view is missing any order by logic for the retrieval of comments and thus fails for PostgreSQL. Patch applied ads order by cid and passes PostgreSQL bot now.
Let's see if MySQL likes the patch also...
Comment #4
bzrudi71 commentedAdded issue summary update and beta evaluation...
Comment #5
andypostGreat! Manually tested, it works!
Also this makes this test return predictable order of results on other storage engines
Comment #6
alexpottCommitted 6eb18e4 and pushed to 8.0.x. Thanks!
Thanks for adding the beta evaluation.