@ayufan so it seems the problems were solved by restarting gitlab-pages daemons across the workers. Could it be that for some strange reason the pages daemons are not re-indexing?
Maybe this helps: I have to disable and subsequently re-enable the shared runners for any build to pass. Otherwise they get stuck in pending state with the message This build is stuck, because you don't have any active runners that can run this build.
I think we have a Rails scoping bug. I'm not sure why this isn't showing up in Sentry:
irb(main):018:0> update = Projects::UpdatePagesConfigurationService.new(proj); nil=> nilirb(main):019:0> update.pages_update_fileNoMethodError: undefined method `pages' for Projects::Settings:Module from /opt/gitlab/embedded/service/gitlab-rails/app/services/projects/update_pages_configuration_service.rb:50:in `pages_update_file' from /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/instrumentation.rb:157:in `pages_update_file' from (irb):19 from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.7.1/lib/rails/commands/console.rb:110:in `start' from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.7.1/lib/rails/commands/console.rb:9:in `start' from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.7.1/lib/rails/commands/commands_tasks.rb:68:in `console' from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.7.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!' from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.7.1/lib/rails/commands.rb:17:in `<top (required)>' from bin/rails:9:in `require' from bin/rails:9:in `<main>'