Jenkins failed to merge https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/588076/ because of a WikiPage query which is failing only on PostgreSQL.
Seems it was once fixed in T23196, but the query has since been rewritten because of actor table migration.