Master broken: /spec/lib/gitlab/sql/cte_spec.rb
From: https://gitlab.com/gitlab-org/gitlab/-/jobs/1125713457
Failures:
1) Gitlab::SQL::CTE#to_arel generates an Arel relation for the CTE body
Failure/Error: expect(sql).to eq("#{name} AS (#{sql1})")
expected: "\"cte_name\" AS (SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = 1)"
got: "\"cte_name\" AS MATERIALIZED (SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = 1)"
(compared using ==)
# ./spec/lib/gitlab/sql/cte_spec.rb:17:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:365:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:356:in `block (2 levels) in <top (required)>'
Finished in 16 minutes 29 seconds (files took 1 minute 11.22 seconds to load)
4527 examples, 1 failure, 15 pending
Failed examples:
rspec ./spec/lib/gitlab/sql/cte_spec.rb:7
Edited by Mayra Cabrera