Today I discussed with @joanna_borun the idea of creating some automated tests that can be run every x hours to verify that all the Wiki Replica views are returning results, something like the following pseudocode:
for view in views: select * from view limit 1;
This would alert us when a schema change that is applied to the production dbs breaks a wiki replica view, e.g. if a schema change drops a column that is referenced by one or more views.
Ideally, we should detect that a schema change is going to break a view before the schema change is applied to the production dbs, but this could be a cheap fallback to implement.
Cc-ing @taavi @Marostegui to get a quick feedback on whether they think this would work and whether it would be useful.