Multiple failures RSpec tests ActiveRecord::RecordNotFound: Couldn't find Project with 'id'=950
Summary
Job failing
- #4660985627 failed for a2b87e91:
- https://gitlab.com/gitlab-org/gitlab/-/jobs/4661115908
- https://gitlab.com/gitlab-org/gitlab/-/jobs/4661635169
- https://gitlab.com/gitlab-org/gitlab/-/jobs/4674869148
- https://gitlab.com/gitlab-org/gitlab/-/jobs/4675264465
Steps to reproduce
Please refer to Flaky tests documentation to learn more about how to reproduce them.
Proposed Resolution
Please refer to the Resolution guidance to learn more about resolution of broken master.
Once the flaky failure has been fixed on the default branch, open merge requests to cherry-pick the fix to the active stable branches.
Logs
Failures:
1) Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as administrator behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading an LFS object that is stored on object storage when "lfs.object_store.proxy_download" is "false" when feature flag "lfs_batch_direct_downloads" is "false" does return proxied address URL
Failure/Error: project.lfs_objects << lfs_object
ActiveRecord::RecordNotFound:
Couldn't find Project with 'id'=950
Shared Example Group: "an authorized request" called from ./spec/requests/lfs_http_spec.rb:471
Shared Example Group: "can download LFS only from own projects" called from ./spec/requests/lfs_http_spec.rb:488
Shared Example Group: "LFS http requests" called from ./spec/requests/lfs_http_spec.rb:16
# ./spec/requests/lfs_http_spec.rb:202:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:442:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:433:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:429:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:66:in `with_raw_context'
# ./spec/spec_helper.rb:429:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:266:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/fast_quarantine.rb:23:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
2) Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as administrator behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading an LFS object that is stored on object storage when "lfs.object_store.proxy_download" is "false" when feature flag "lfs_batch_direct_downloads" is "false" behaves like LFS http 200 response behaves like LFS http expected response code and message
Failure/Error: project.lfs_objects << lfs_object
ActiveRecord::RecordNotFound:
Couldn't find Project with 'id'=950
Shared Example Group: "LFS http expected response code and message" called from ./spec/support/shared_examples/requests/lfs_http_shared_examples.rb:4
Shared Example Group: "LFS http 200 response" called from ./spec/requests/lfs_http_spec.rb:364
Shared Example Group: "an authorized request" called from ./spec/requests/lfs_http_spec.rb:471
Shared Example Group: "can download LFS only from own projects" called from ./spec/requests/lfs_http_spec.rb:488
Shared Example Group: "LFS http requests" called from ./spec/requests/lfs_http_spec.rb:16
# ./spec/requests/lfs_http_spec.rb:202:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:442:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:433:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:429:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:66:in `with_raw_context'
# ./spec/spec_helper.rb:429:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:266:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/fast_quarantine.rb:23:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
3) Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as administrator behaves like can download LFS only from own projects for own project behaves like an authorized request when sending objects=[] behaves like LFS http expected response code and message
Failure/Error: project.lfs_objects << lfs_object
ActiveRecord::RecordNotFound:
Couldn't find Project with 'id'=950
Shared Example Group: "LFS http expected response code and message" called from ./spec/requests/lfs_http_spec.rb:377
Shared Example Group: "an authorized request" called from ./spec/requests/lfs_http_spec.rb:471
Shared Example Group: "can download LFS only from own projects" called from ./spec/requests/lfs_http_spec.rb:488
Shared Example Group: "LFS http requests" called from ./spec/requests/lfs_http_spec.rb:16
# ./spec/requests/lfs_http_spec.rb:202:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:442:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:433:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:429:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:66:in `with_raw_context'
# ./spec/spec_helper.rb:429:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:266:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/fast_quarantine.rb:23:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
4) Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as administrator behaves like can download LFS only from own projects for other project rejects downloading code
Failure/Error: project.lfs_objects << lfs_object
ActiveRecord::RecordNotFound:
Couldn't find Project with 'id'=950
Shared Example Group: "can download LFS only from own projects" called from ./spec/requests/lfs_http_spec.rb:488
Shared Example Group: "LFS http requests" called from ./spec/requests/lfs_http_spec.rb:16
# ./spec/requests/lfs_http_spec.rb:202:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:442:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:433:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:429:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:66:in `with_raw_context'
# ./spec/spec_helper.rb:429:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:266:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/fast_quarantine.rb:23:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
5) Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading an LFS object that is assigned to our project with href to download
Failure/Error: project.lfs_objects << lfs_object
ActiveRecord::RecordNotFound:
Couldn't find Project with 'id'=950
Shared Example Group: "an authorized request" called from ./spec/requests/lfs_http_spec.rb:471
Shared Example Group: "can download LFS only from own projects" called from ./spec/requests/lfs_http_spec.rb:494
Shared Example Group: "LFS http requests" called from ./spec/requests/lfs_http_spec.rb:16
# ./spec/requests/lfs_http_spec.rb:202:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:442:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:433:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:429:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:66:in `with_raw_context'
# ./spec/spec_helper.rb:429:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:266:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/fast_quarantine.rb:23:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
6) Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading an LFS object that is assigned to our project behaves like LFS http 200 response behaves like LFS http expected response code and message
Failure/Error: project.lfs_objects << lfs_object
ActiveRecord::RecordNotFound:
Couldn't find Project with 'id'=950
Shared Example Group: "LFS http expected response code and message" called from ./spec/support/shared_examples/requests/lfs_http_shared_examples.rb:4
Shared Example Group: "LFS http 200 response" called from ./spec/requests/lfs_http_spec.rb:253
Shared Example Group: "an authorized request" called from ./spec/requests/lfs_http_spec.rb:471
Shared Example Group: "can download LFS only from own projects" called from ./spec/requests/lfs_http_spec.rb:494
Shared Example Group: "LFS http requests" called from ./spec/requests/lfs_http_spec.rb:16
# ./spec/requests/lfs_http_spec.rb:202:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:442:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:433:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:429:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:66:in `with_raw_context'
# ./spec/spec_helper.rb:429:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:266:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/fast_quarantine.rb:23:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
7) Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading an LFS object that is assigned to our project behaves like process authorization header when the authorization comes from a user returns a new valid LFS token authorization
Failure/Error: project.lfs_objects << lfs_object
ActiveRecord::RecordNotFound:
Couldn't find Project with 'id'=950
Shared Example Group: "process authorization header" called from ./spec/requests/lfs_http_spec.rb:260
Shared Example Group: "an authorized request" called from ./spec/requests/lfs_http_spec.rb:471
Shared Example Group: "can download LFS only from own projects" called from ./spec/requests/lfs_http_spec.rb:494
Shared Example Group: "LFS http requests" called from ./spec/requests/lfs_http_spec.rb:16
# ./spec/requests/lfs_http_spec.rb:202:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:442:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:433:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:429:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:66:in `with_raw_context'
# ./spec/spec_helper.rb:429:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:266:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/fast_quarantine.rb:23:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
8) Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading an LFS object that is assigned to our project behaves like process authorization header when the authorization comes from a user returns a valid token
Failure/Error: project.lfs_objects << lfs_object
ActiveRecord::RecordNotFound:
Couldn't find Project with 'id'=950
Shared Example Group: "process authorization header" called from ./spec/requests/lfs_http_spec.rb:260
Shared Example Group: "an authorized request" called from ./spec/requests/lfs_http_spec.rb:471
Shared Example Group: "can download LFS only from own projects" called from ./spec/requests/lfs_http_spec.rb:494
Shared Example Group: "LFS http requests" called from ./spec/requests/lfs_http_spec.rb:16
# ./spec/requests/lfs_http_spec.rb:202:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:442:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:433:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:429:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:66:in `with_raw_context'
# ./spec/spec_helper.rb:429:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:266:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/fast_quarantine.rb:23:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
9) Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading an LFS object that is assigned to our project behaves like process authorization header when the authorization comes from a user generates only one new token per each request
Failure/Error: project.lfs_objects << lfs_object
ActiveRecord::RecordNotFound:
Couldn't find Project with 'id'=950
Shared Example Group: "process authorization header" called from ./spec/requests/lfs_http_spec.rb:260
Shared Example Group: "an authorized request" called from ./spec/requests/lfs_http_spec.rb:471
Shared Example Group: "can download LFS only from own projects" called from ./spec/requests/lfs_http_spec.rb:494
Shared Example Group: "LFS http requests" called from ./spec/requests/lfs_http_spec.rb:16
# ./spec/requests/lfs_http_spec.rb:202:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:442:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:433:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:429:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:66:in `with_raw_context'
# ./spec/spec_helper.rb:429:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:266:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/fast_quarantine.rb:23:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
10) Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading an LFS object that is assigned to other project with an 404 for specific object
Failure/Error: project.lfs_objects << lfs_object
ActiveRecord::RecordNotFound:
Couldn't find Project with 'id'=950
Shared Example Group: "an authorized request" called from ./spec/requests/lfs_http_spec.rb:471
Shared Example Group: "can download LFS only from own projects" called from ./spec/requests/lfs_http_spec.rb:494
Shared Example Group: "LFS http requests" called from ./spec/requests/lfs_http_spec.rb:16
# ./spec/requests/lfs_http_spec.rb:202:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:442:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:433:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:429:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:66:in `with_raw_context'
# ./spec/spec_helper.rb:429:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:266:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/fast_quarantine.rb:23:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
11) Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading an LFS object that is assigned to other project behaves like LFS http 200 response behaves like LFS http expected response code and message
Failure/Error: project.lfs_objects << lfs_object
ActiveRecord::RecordNotFound:
Couldn't find Project with 'id'=950
Shared Example Group: "LFS http expected response code and message" called from ./spec/support/shared_examples/requests/lfs_http_shared_examples.rb:4
Shared Example Group: "LFS http 200 response" called from ./spec/requests/lfs_http_spec.rb:268
Shared Example Group: "an authorized request" called from ./spec/requests/lfs_http_spec.rb:471
Shared Example Group: "can download LFS only from own projects" called from ./spec/requests/lfs_http_spec.rb:494
Shared Example Group: "LFS http requests" called from ./spec/requests/lfs_http_spec.rb:16
# ./spec/requests/lfs_http_spec.rb:202:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:442:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:433:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:429:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:66:in `with_raw_context'
# ./spec/spec_helper.rb:429:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:266:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/fast_quarantine.rb:23:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
12) Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading a LFS object that does not exist with an 404 for specific object
Failure/Error: project.lfs_objects << lfs_object
ActiveRecord::RecordNotFound:
Couldn't find Project with 'id'=950
Shared Example Group: "an authorized request" called from ./spec/requests/lfs_http_spec.rb:471
Shared Example Group: "can download LFS only from own projects" called from ./spec/requests/lfs_http_spec.rb:494
Shared Example Group: "LFS http requests" called from ./spec/requests/lfs_http_spec.rb:16
# ./spec/requests/lfs_http_spec.rb:202:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:442:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:433:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:429:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:66:in `with_raw_context'
# ./spec/spec_helper.rb:429:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:266:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/fast_quarantine.rb:23:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
13) Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading a LFS object that does not exist behaves like LFS http 200 response behaves like LFS http expected response code and message
Failure/Error: project.lfs_objects << lfs_object
ActiveRecord::RecordNotFound:
Couldn't find Project with 'id'=950
Shared Example Group: "LFS http expected response code and message" called from ./spec/support/shared_examples/requests/lfs_http_shared_examples.rb:4
Shared Example Group: "LFS http 200 response" called from ./spec/requests/lfs_http_spec.rb:279
Shared Example Group: "an authorized request" called from ./spec/requests/lfs_http_spec.rb:471
Shared Example Group: "can download LFS only from own projects" called from ./spec/requests/lfs_http_spec.rb:494
Shared Example Group: "LFS http requests" called from ./spec/requests/lfs_http_spec.rb:16
# ./spec/requests/lfs_http_spec.rb:202:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:442:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:433:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:429:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:66:in `with_raw_context'
# ./spec/spec_helper.rb:429:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:266:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/fast_quarantine.rb:23:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
14) Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading one existing and one missing LFS object responds with download hypermedia link for the existing object
Failure/Error: project.lfs_objects << lfs_object
ActiveRecord::RecordNotFound:
Couldn't find Project with 'id'=950
Shared Example Group: "an authorized request" called from ./spec/requests/lfs_http_spec.rb:471
Shared Example Group: "can download LFS only from own projects" called from ./spec/requests/lfs_http_spec.rb:494
Shared Example Group: "LFS http requests" called from ./spec/requests/lfs_http_spec.rb:16
# ./spec/requests/lfs_http_spec.rb:202:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:442:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:433:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:429:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:66:in `with_raw_context'
# ./spec/spec_helper.rb:429:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:266:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/fast_quarantine.rb:23:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
15) Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading one existing and one missing LFS object behaves like LFS http 200 response behaves like LFS http expected response code and message
Failure/Error: project.lfs_objects << lfs_object
ActiveRecord::RecordNotFound:
Couldn't find Project with 'id'=950
Shared Example Group: "LFS http expected response code and message" called from ./spec/support/shared_examples/requests/lfs_http_shared_examples.rb:4
Shared Example Group: "LFS http 200 response" called from ./spec/requests/lfs_http_spec.rb:290
Shared Example Group: "an authorized request" called from ./spec/requests/lfs_http_spec.rb:471
Shared Example Group: "can download LFS only from own projects" called from ./spec/requests/lfs_http_spec.rb:494
Shared Example Group: "LFS http requests" called from ./spec/requests/lfs_http_spec.rb:16
# ./spec/requests/lfs_http_spec.rb:202:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:442:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:433:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:429:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:66:in `with_raw_context'
# ./spec/spec_helper.rb:429:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:266:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/fast_quarantine.rb:23:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
16) Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading one existing and one missing LFS object behaves like process authorization header when the authorization comes from a user returns a new valid LFS token authorization
Failure/Error: project.lfs_objects << lfs_object
ActiveRecord::RecordNotFound:
Couldn't find Project with 'id'=950
Shared Example Group: "process authorization header" called from ./spec/requests/lfs_http_spec.rb:305
Shared Example Group: "an authorized request" called from ./spec/requests/lfs_http_spec.rb:471
Shared Example Group: "can download LFS only from own projects" called from ./spec/requests/lfs_http_spec.rb:494
Shared Example Group: "LFS http requests" called from ./spec/requests/lfs_http_spec.rb:16
# ./spec/requests/lfs_http_spec.rb:202:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:442:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:433:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:429:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:66:in `with_raw_context'
# ./spec/spec_helper.rb:429:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:266:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/fast_quarantine.rb:23:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
17) Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading one existing and one missing LFS object behaves like process authorization header when the authorization comes from a user returns a valid token
Failure/Error: project.lfs_objects << lfs_object
ActiveRecord::RecordNotFound:
Couldn't find Project with 'id'=950
Shared Example Group: "process authorization header" called from ./spec/requests/lfs_http_spec.rb:305
Shared Example Group: "an authorized request" called from ./spec/requests/lfs_http_spec.rb:471
Shared Example Group: "can download LFS only from own projects" called from ./spec/requests/lfs_http_spec.rb:494
Shared Example Group: "LFS http requests" called from ./spec/requests/lfs_http_spec.rb:16
# ./spec/requests/lfs_http_spec.rb:202:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:442:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:433:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:429:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:66:in `with_raw_context'
# ./spec/spec_helper.rb:429:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:266:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/fast_quarantine.rb:23:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
18) Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading one existing and one missing LFS object behaves like process authorization header when the authorization comes from a user generates only one new token per each request
Failure/Error: project.lfs_objects << lfs_object
ActiveRecord::RecordNotFound:
Couldn't find Project with 'id'=950
Shared Example Group: "process authorization header" called from ./spec/requests/lfs_http_spec.rb:305
Shared Example Group: "an authorized request" called from ./spec/requests/lfs_http_spec.rb:471
Shared Example Group: "can download LFS only from own projects" called from ./spec/requests/lfs_http_spec.rb:494
Shared Example Group: "LFS http requests" called from ./spec/requests/lfs_http_spec.rb:16
# ./spec/requests/lfs_http_spec.rb:202:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:442:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:433:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:429:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:66:in `with_raw_context'
# ./spec/spec_helper.rb:429:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:266:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/fast_quarantine.rb:23:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
19) Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading two existing LFS objects responds with the download hypermedia link for each object
Failure/Error: project.lfs_objects << lfs_object
ActiveRecord::RecordNotFound:
Couldn't find Project with 'id'=950
Shared Example Group: "an authorized request" called from ./spec/requests/lfs_http_spec.rb:471
Shared Example Group: "can download LFS only from own projects" called from ./spec/requests/lfs_http_spec.rb:494
Shared Example Group: "LFS http requests" called from ./spec/requests/lfs_http_spec.rb:16
# ./spec/requests/lfs_http_spec.rb:202:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:442:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:433:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:429:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:66:in `with_raw_context'
# ./spec/spec_helper.rb:429:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:266:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/fast_quarantine.rb:23:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
20) Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading two existing LFS objects behaves like process authorization header when the authorization comes from a user returns a new valid LFS token authorization
Failure/Error: project.lfs_objects << lfs_object
ActiveRecord::RecordNotFound:
Couldn't find Project with 'id'=950
Shared Example Group: "process authorization header" called from ./spec/requests/lfs_http_spec.rb:324
Shared Example Group: "an authorized request" called from ./spec/requests/lfs_http_spec.rb:471
Shared Example Group: "can download LFS only from own projects" called from ./spec/requests/lfs_http_spec.rb:494
Shared Example Group: "LFS http requests" called from ./spec/requests/lfs_http_spec.rb:16
# ./spec/requests/lfs_http_spec.rb:202:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:442:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:433:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:429:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:66:in `with_raw_context'
# ./spec/spec_helper.rb:429:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:266:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/fast_quarantine.rb:23:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
Finished in 67 minutes 37 seconds (files took 1 minute 19.17 seconds to load)
5271 examples, 20 failures
Failed examples:
rspec './spec/requests/lfs_http_spec.rb[1:1:1:10:1:3:1:1:1:1:6:2:3:2]' # Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as administrator behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading an LFS object that is stored on object storage when "lfs.object_store.proxy_download" is "false" when feature flag "lfs_batch_direct_downloads" is "false" does return proxied address URL
rspec './spec/requests/lfs_http_spec.rb[1:1:1:10:1:3:1:1:1:1:6:2:3:1:1:1]' # Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as administrator behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading an LFS object that is stored on object storage when "lfs.object_store.proxy_download" is "false" when feature flag "lfs_batch_direct_downloads" is "false" behaves like LFS http 200 response behaves like LFS http expected response code and message
rspec './spec/requests/lfs_http_spec.rb[1:1:1:10:1:3:1:1:1:1:7:1:1]' # Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as administrator behaves like can download LFS only from own projects for own project behaves like an authorized request when sending objects=[] behaves like LFS http expected response code and message
rspec './spec/requests/lfs_http_spec.rb[1:1:1:10:1:3:1:1:2:1]' # Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as administrator behaves like can download LFS only from own projects for other project rejects downloading code
rspec './spec/requests/lfs_http_spec.rb[1:1:1:10:1:3:2:1:1:1:1:2]' # Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading an LFS object that is assigned to our project with href to download
rspec './spec/requests/lfs_http_spec.rb[1:1:1:10:1:3:2:1:1:1:1:1:1:1]' # Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading an LFS object that is assigned to our project behaves like LFS http 200 response behaves like LFS http expected response code and message
rspec './spec/requests/lfs_http_spec.rb[1:1:1:10:1:3:2:1:1:1:1:3:1:1]' # Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading an LFS object that is assigned to our project behaves like process authorization header when the authorization comes from a user returns a new valid LFS token authorization
rspec './spec/requests/lfs_http_spec.rb[1:1:1:10:1:3:2:1:1:1:1:3:1:2]' # Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading an LFS object that is assigned to our project behaves like process authorization header when the authorization comes from a user returns a valid token
rspec './spec/requests/lfs_http_spec.rb[1:1:1:10:1:3:2:1:1:1:1:3:1:3]' # Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading an LFS object that is assigned to our project behaves like process authorization header when the authorization comes from a user generates only one new token per each request
rspec './spec/requests/lfs_http_spec.rb[1:1:1:10:1:3:2:1:1:1:2:2]' # Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading an LFS object that is assigned to other project with an 404 for specific object
rspec './spec/requests/lfs_http_spec.rb[1:1:1:10:1:3:2:1:1:1:2:1:1:1]' # Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading an LFS object that is assigned to other project behaves like LFS http 200 response behaves like LFS http expected response code and message
rspec './spec/requests/lfs_http_spec.rb[1:1:1:10:1:3:2:1:1:1:3:2]' # Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading a LFS object that does not exist with an 404 for specific object
rspec './spec/requests/lfs_http_spec.rb[1:1:1:10:1:3:2:1:1:1:3:1:1:1]' # Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading a LFS object that does not exist behaves like LFS http 200 response behaves like LFS http expected response code and message
rspec './spec/requests/lfs_http_spec.rb[1:1:1:10:1:3:2:1:1:1:4:2]' # Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading one existing and one missing LFS object responds with download hypermedia link for the existing object
rspec './spec/requests/lfs_http_spec.rb[1:1:1:10:1:3:2:1:1:1:4:1:1:1]' # Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading one existing and one missing LFS object behaves like LFS http 200 response behaves like LFS http expected response code and message
rspec './spec/requests/lfs_http_spec.rb[1:1:1:10:1:3:2:1:1:1:4:3:1:1]' # Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading one existing and one missing LFS object behaves like process authorization header when the authorization comes from a user returns a new valid LFS token authorization
rspec './spec/requests/lfs_http_spec.rb[1:1:1:10:1:3:2:1:1:1:4:3:1:2]' # Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading one existing and one missing LFS object behaves like process authorization header when the authorization comes from a user returns a valid token
rspec './spec/requests/lfs_http_spec.rb[1:1:1:10:1:3:2:1:1:1:4:3:1:3]' # Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading one existing and one missing LFS object behaves like process authorization header when the authorization comes from a user generates only one new token per each request
rspec './spec/requests/lfs_http_spec.rb[1:1:1:10:1:3:2:1:1:1:5:1]' # Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading two existing LFS objects responds with the download hypermedia link for each object
rspec './spec/requests/lfs_http_spec.rb[1:1:1:10:1:3:2:1:1:1:5:2:1:1]' # Git LFS API and storage with projects behaves like LFS http requests when handling LFS batch request download when build is authorized as regular user behaves like can download LFS only from own projects for own project behaves like an authorized request when downloading two existing LFS objects behaves like process authorization header when the authorization comes from a user returns a new valid LFS token authorization
Randomized with seed 56083
[TEST PROF INFO] Time spent in factories: 15:49.892 (23.19% of total time)
Stopped processing SimpleCov as a previous error not related to SimpleCov has been detected
RSpec exited with 1.
Not retrying failing examples since we reached the maximum number of allowed test failures!
Edited by Alina Mihaila