Master broken: in spec/requests/api/conan_project_packages_spec.rb
Master broken in spec/requests/api/conan_project_packages_spec.rb
at 65f3749c
Failures:
1) API::ConanProjectPackages file download endpoints GET /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/
:recipe_revision/export/:file_name behaves like recipe file download endpoint behaves like a public project with packages returns the file
Failure/Error: expect(response).to have_gitlab_http_status(:ok)
expected the response to have status code :ok but it was 302. The response was: "This resource has been moved temporarily to http://127.0.0.1:9000/packages/e5/b8/e5b861a6d8a966dfca7e7341cd3eb6be9901688d547a72ebed0b1f5e14f3d08d/packages/120/files/290/conanfile.py?X-Amz-Expires=600\u0026X-Amz-Date=20210329T090347Z\u0026X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=minio%2F20210329%2Fgdk%2Fs3%2Faws4_request\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=a47ee4fa5fe811a1ae576be1c830d56eeec8bef032a31397e696be7c38091987."
Shared Example Group: "a public project with packages" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:580
Shared Example Group: "recipe file download endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:105
# ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:527:in `block (2 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
2) API::ConanProjectPackages file download endpoints GET /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/
:recipe_revision/export/:file_name behaves like recipe file download endpoint behaves like a public project with packages behaves like allows download with no token with no private token returns 200
Failure/Error: expect(response).to have_gitlab_http_status(:ok)
expected the response to have status code :ok but it was 302. The response was: "This resource has been moved temporarily to http://127.0.0.1:9000/packages/85/da/85daaf6f7055cd5736287faed9603d712920092c4f8fd0097ec3b650bf27530e/packages/122/files/295/conanfile.py?X-Amz-Expires=600\u0026X-Amz-Date=20210329T090348Z\u0026X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=minio%2F20210329%2Fgdk%2Fs3%2Faws4_request\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=bf1faf1a86c5925a651372bda629c71bf9cff27fca2b035e1c9fb560ae3650f5."
Shared Example Group: "allows download with no token" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:522
Shared Example Group: "a public project with packages" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:580
Shared Example Group: "recipe file download endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:105
# ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:500:in `block (3 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
3) API::ConanProjectPackages file download endpoints GET /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/
:recipe_revision/export/:file_name behaves like recipe file download endpoint behaves like an internal project with packages returns the file
Failure/Error: expect(response).to have_gitlab_http_status(:ok)
expected the response to have status code :ok but it was 302. The response was: "This resource has been moved temporarily to http://127.0.0.1:9000/packages/2a/ba/2abaca4911e68fa9bfbf3482ee797fd5b9045b841fdff7253557c5fe15de6477/packages/124/files/300/conanfile.py?X-Amz-Expires=600\u0026X-Amz-Date=20210329T090348Z\u0026X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=minio%2F20210329%2Fgdk%2Fs3%2Faws4_request\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=9e81cfef2ac08960aa0ce9ddfd76c96cb2f276b55d457543790c3dbe1a347e4a."
Shared Example Group: "an internal project with packages" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:581
Shared Example Group: "recipe file download endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:105
# ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:543:in `block (2 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
4) API::ConanProjectPackages file download endpoints GET /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/
:recipe_revision/export/:file_name behaves like recipe file download endpoint behaves like a private project with packages returns the file
Failure/Error: expect(response).to have_gitlab_http_status(:ok)
expected the response to have status code :ok but it was 302. The response was: "This resource has been moved temporarily to http://127.0.0.1:9000/packages/6a/ff/6affdae3b3c1aa6aa7689e9b6a7b3225a636aa1ac0025f490cca1285ceaf1487/packages/128/files/310/conanfile.py?X-Amz-Expires=600\u0026X-Amz-Date=20210329T090350Z\u0026X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=minio%2F20210329%2Fgdk%2Fs3%2Faws4_request\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=c4984c1e1adc4f8f5d5942fb3610438777ab1a14806e170dfe460adfcbd6062d."
Shared Example Group: "a private project with packages" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:582
Shared Example Group: "recipe file download endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:105
# ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:558:in `block (2 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
5) API::ConanProjectPackages file download endpoints GET /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/
:recipe_revision/package/:conan_package_reference/:package_revision/:file_name behaves like package file download endpoint behaves like a public project with packages returns the file
Failure/Error: expect(response).to have_gitlab_http_status(:ok)
expected the response to have status code :ok but it was 302. The response was: This resource has been moved temporarily to http://127.0.0.1:9000/packages/db/b1/dbb1ded63bc70732626c5dfe6c7f50ced3d560e970f30b15335ac290358748f6/packages/136/files/332/conaninfo.txt?X-Amz-Expires=600&X-Amz-Date=20210329T090353Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=minio%2F20210329%2Fgdk%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=ab979957b7f35074119456097ed04865bdf96e550a627ce8c23e1603e2fa3894.
Shared Example Group: "a public project with packages" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:586
Shared Example Group: "package file download endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:116
# ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:527:in `block (2 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
6) API::ConanProjectPackages file download endpoints GET /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/
:recipe_revision/package/:conan_package_reference/:package_revision/:file_name behaves like package file download endpoint behaves like a public project with packages behaves like allows download with no token with no private token returns 200
Failure/Error: expect(response).to have_gitlab_http_status(:ok)
expected the response to have status code :ok but it was 302. The response was: This resource has been moved temporarily to http://127.0.0.1:9000/packages/5d/38/5d389f5e2e34c6b0bad96581c22cee0be36dcf627cd73af4d4cccacd9ef40cc3/packages/138/files/337/conaninfo.txt?X-Amz-Expires=600&X-Amz-Date=20210329T090354Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=minio%2F20210329%2Fgdk%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=9e9f005c1e56258290dfda1d11b8d6bc94c71c589a284d9e45879679442ee657.
Shared Example Group: "allows download with no token" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:522
Shared Example Group: "a public project with packages" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:586
Shared Example Group: "package file download endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:116
# ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:500:in `block (3 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
7) API::ConanProjectPackages file download endpoints GET /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/
:recipe_revision/package/:conan_package_reference/:package_revision/:file_name behaves like package file download endpoint behaves like an internal project with packages returns the file
Failure/Error: expect(response).to have_gitlab_http_status(:ok)
expected the response to have status code :ok but it was 302. The response was: This resource has been moved temporarily to http://127.0.0.1:9000/packages/36/eb/36ebe205bcdfc499a25e6923f4450fa8d48196ceb4fa0ce077d9d8ec4a36926d/packages/140/files/342/conaninfo.txt?X-Amz-Expires=600&X-Amz-Date=20210329T090355Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=minio%2F20210329%2Fgdk%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=68c511ffde0ec465411f7c1d48725626850160e108fefcef610c48ca9d142907.
Shared Example Group: "an internal project with packages" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:587
Shared Example Group: "package file download endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:116
# ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:543:in `block (2 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
8) API::ConanProjectPackages file download endpoints GET /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/
:recipe_revision/package/:conan_package_reference/:package_revision/:file_name behaves like package file download endpoint behaves like a private project with packages returns the file
Failure/Error: expect(response).to have_gitlab_http_status(:ok)
expected the response to have status code :ok but it was 302. The response was: This resource has been moved temporarily to http://127.0.0.1:9000/packages/db/ae/dbae772db29058a88f9bd830e957c695347c41b6162a7eb9a9ea13def34be56b/packages/144/files/352/conaninfo.txt?X-Amz-Expires=600&X-Amz-Date=20210329T090356Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=minio%2F20210329%2Fgdk%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=5467b7436748c52b4ce16c2540073f695ba378baca3da6229ed8e2f6edc075a4.
Shared Example Group: "a private project with packages" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:588
Shared Example Group: "package file download endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:116
# ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:558:in `block (2 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
9) API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:file_name behaves like workhorse recipe file upload endpoint behaves like uploads a package file with object storage disabled with a file behaves like package workhorse uploads without a workhorse header logs an error
Failure/Error: expect(Gitlab::ErrorTracking).to receive(:track_exception).once
(Gitlab::ErrorTracking).track_exception(*(any args))
expected: 1 time with any arguments
received: 0 times with any arguments
Shared Example Group: "package workhorse uploads" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:702
Shared Example Group: "uploads a package file" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:632
Shared Example Group: "workhorse recipe file upload endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:143
# ./spec/support/shared_examples/services/packages_shared_examples.rb:231:in `block (3 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
10) API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:file_name behaves like workhorse recipe file upload endpoint behaves like uploads a package file with object storage disabled with a file behaves like package workhorse uploads without a workhorse header behaves like returning response status returns forbidden
Failure/Error: expect(response).to have_gitlab_http_status(status)
expected the response to have status code :forbidden but it was 400. The response was: insecure path used '/home/alex/projects/gitlab/ee/gitlab/shared/packages/tmp/uploads/conanfile.py'
Shared Example Group: "returning response status" called from ./spec/support/shared_examples/services/packages_shared_examples.rb:228
Shared Example Group: "package workhorse uploads" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:702
Shared Example Group: "uploads a package file" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:632
Shared Example Group: "workhorse recipe file upload endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:143
# ./spec/support/shared_examples/requests/response_status_shared_examples.rb:7:in `block (2 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
11) API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:file_name behaves like workhorse recipe file upload endpoint behaves like uploads a package file with object storage disabled without a token rejects request without a token
Failure/Error: expect(response).to have_gitlab_http_status(:unauthorized)
expected the response to have status code :unauthorized but it was 400. The response was: insecure path used '/home/alex/projects/gitlab/ee/gitlab/shared/packages/tmp/uploads/conanfile.py'
Shared Example Group: "uploads a package file" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:632
Shared Example Group: "workhorse recipe file upload endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:143
# ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:711:in `block (4 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
12) API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:file_name behaves like workhorse recipe file upload endpoint behaves like uploads a package file with object storage disabled when params from workhorse are correct creates package and stores package file
Failure/Error:
expect { subject }
.to change { project.packages.count }.by(1)
.and change { Packages::PackageFile.count }.by(1)
expected `project.packages.count` to have changed by 1, but was changed by 0
...and:
expected `Packages::PackageFile.count` to have changed by 1, but was changed by 0
Shared Example Group: "uploads a package file" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:632
Shared Example Group: "workhorse recipe file upload endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:143
# ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:717:in `block (4 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
13) API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:file_name behaves like workhorse recipe file upload endpoint behaves like uploads a package file with object storage enabled and direct upload enabled with valid remote_id creates package and stores package file
Failure/Error:
expect { subject }
.to change { project.packages.count }.by(1)
.and change { Packages::PackageFile.count }.by(1)
expected `Packages::PackageFile.count` to have changed by 1, but was changed by 0
Shared Example Group: "uploads a package file" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:632
Shared Example Group: "workhorse recipe file upload endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:143
# ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:776:in `block (5 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
14) API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:file_name behaves like workhorse recipe file upload endpoint behaves like creates build_info when there is a job with job token creates a build_info record
Failure/Error: expect { subject }.to change { Packages::BuildInfo.count }.by(1)
expected `Packages::BuildInfo.count` to have changed by 1, but was changed by 0
Shared Example Group: "creates build_info when there is a job" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:633
Shared Example Group: "workhorse recipe file upload endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:143
# ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:668:in `block (3 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
15) API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:file_name behaves like workhorse recipe file upload endpoint behaves like creates build_info when there is a job with job token creates a package_file_build_info record
Failure/Error: expect { subject }.to change { Packages::PackageFileBuildInfo.count }.by(1)
expected `Packages::PackageFileBuildInfo.count` to have changed by 1, but was changed by 0
Shared Example Group: "creates build_info when there is a job" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:633
Shared Example Group: "workhorse recipe file upload endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:143
# ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:672:in `block (3 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
16) API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:conan_package_reference/:package_revision/:file_name behaves like workhorse package file upload endpoint behaves like uploads a package file with object storage disabled with a file behaves like package workhorse uploads without a workhorse header logs an error
Failure/Error: expect(Gitlab::ErrorTracking).to receive(:track_exception).once
(Gitlab::ErrorTracking).track_exception(*(any args))
expected: 1 time with any arguments
received: 0 times with any arguments
Shared Example Group: "package workhorse uploads" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:702
Shared Example Group: "uploads a package file" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:653
Shared Example Group: "workhorse package file upload endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:149
# ./spec/support/shared_examples/services/packages_shared_examples.rb:231:in `block (3 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
17) API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:conan_package_reference/:package_revision/:file_name behaves like workhorse package file upload endpoint behaves like uploads a package file with object storage disabled with a file behaves like package workhorse uploads without a workhorse header behaves like returning response status returns forbidden
Failure/Error: expect(response).to have_gitlab_http_status(status)
expected the response to have status code :forbidden but it was 400. The response was: insecure path used '/home/alex/projects/gitlab/ee/gitlab/shared/packages/tmp/uploads/conaninfo.txt'
Shared Example Group: "returning response status" called from ./spec/support/shared_examples/services/packages_shared_examples.rb:228
Shared Example Group: "package workhorse uploads" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:702
Shared Example Group: "uploads a package file" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:653
Shared Example Group: "workhorse package file upload endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:149
# ./spec/support/shared_examples/requests/response_status_shared_examples.rb:7:in `block (2 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
18) API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:conan_package_reference/:package_revision/:file_name behaves like workhorse package file upload endpoint behaves like uploads a package file with object storage disabled without a token rejects request without a token
Failure/Error: expect(response).to have_gitlab_http_status(:unauthorized)
expected the response to have status code :unauthorized but it was 400. The response was: insecure path used '/home/alex/projects/gitlab/ee/gitlab/shared/packages/tmp/uploads/conaninfo.txt'
Shared Example Group: "uploads a package file" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:653
Shared Example Group: "workhorse package file upload endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:149
# ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:711:in `block (4 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
19) API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:conan_package_reference/:package_revision/:file_name behaves like workhorse package file upload endpoint behaves like uploads a package file with object storage disabled when params from workhorse are correct creates package and stores package file
Failure/Error:
expect { subject }
.to change { project.packages.count }.by(1)
.and change { Packages::PackageFile.count }.by(1)
expected `project.packages.count` to have changed by 1, but was changed by 0
...and:
expected `Packages::PackageFile.count` to have changed by 1, but was changed by 0
Shared Example Group: "uploads a package file" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:653
Shared Example Group: "workhorse package file upload endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:149
# ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:717:in `block (4 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
20) API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:conan_package_reference/:package_revision/:file_name behaves like workhorse package file upload endpoint behaves like uploads a package file with object storage enabled and direct upload enabled with valid remote_id creates package and stores package file
Failure/Error:
expect { subject }
.to change { project.packages.count }.by(1)
.and change { Packages::PackageFile.count }.by(1)
expected `Packages::PackageFile.count` to have changed by 1, but was changed by 0
Shared Example Group: "uploads a package file" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:653
Shared Example Group: "workhorse package file upload endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:149
# ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:776:in `block (5 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
21) API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:conan_package_reference/:package_revision/:file_name behaves like workhorse package file upload endpoint behaves like creates build_info when there is a job with job token creates a build_info record
Failure/Error: expect { subject }.to change { Packages::BuildInfo.count }.by(1)
expected `Packages::BuildInfo.count` to have changed by 1, but was changed by 0
Shared Example Group: "creates build_info when there is a job" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:654
Shared Example Group: "workhorse package file upload endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:149
# ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:668:in `block (3 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
22) API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:conan_package_reference/:package_revision/:file_name behaves like workhorse package file upload endpoint behaves like creates build_info when there is a job with job token creates a package_file_build_info record
Failure/Error: expect { subject }.to change { Packages::PackageFileBuildInfo.count }.by(1)
expected `Packages::PackageFileBuildInfo.count` to have changed by 1, but was changed by 0
Shared Example Group: "creates build_info when there is a job" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:654
Shared Example Group: "workhorse package file upload endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:149
# ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:672:in `block (3 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
23) API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:conan_package_reference/:package_revision/:file_name behaves like workhorse package file upload endpoint tracking the conan_package.tgz upload behaves like a gitlab tracking event creates a gitlab tracking event push_package
Failure/Error:
expect(Gitlab::Tracking).to have_received(:event) # rubocop:disable RSpec/ExpectGitlabTracking
.with(category, action, **kwargs).at_least(:once)
(Gitlab::Tracking).event("API::ConanPackages", "push_package")
expected: at least 1 time with arguments: ("API::ConanPackages", "push_package")
received: 0 times
Shared Example Group: "a gitlab tracking event" called from ./spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb:659
Shared Example Group: "workhorse package file upload endpoint" called from ./spec/requests/api/conan_project_packages_spec.rb:149
# ./spec/support/helpers/snowplow_helpers.rb:59:in `expect_snowplow_event'
# ./spec/support/shared_examples/requests/api/tracking_shared_examples.rb:7:in `block (2 levels) in <main>'
# ./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)>'
# ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
Finished in 1 minute 43.65 seconds (files took 54.84 seconds to load)
121 examples, 23 failures
Failed examples:
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:6:1:1:1:2] # API::ConanProjectPackages file download endpoints GET /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/
:recipe_revision/export/:file_name behaves like recipe file download endpoint behaves like a public project with packages returns the file
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:6:1:1:1:1:1:1] # API::ConanProjectPackages file download endpoints GET /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/
:recipe_revision/export/:file_name behaves like recipe file download endpoint behaves like a public project with packages behaves like allows download with no token with no private token returns 200
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:6:1:1:2:2] # API::ConanProjectPackages file download endpoints GET /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/
:recipe_revision/export/:file_name behaves like recipe file download endpoint behaves like an internal project with packages returns the file
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:6:1:1:3:2] # API::ConanProjectPackages file download endpoints GET /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/
:recipe_revision/export/:file_name behaves like recipe file download endpoint behaves like a private project with packages returns the file
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:6:2:1:1:2] # API::ConanProjectPackages file download endpoints GET /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/
:recipe_revision/package/:conan_package_reference/:package_revision/:file_name behaves like package file download endpoint behaves like a public project with packages returns the file
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:6:2:1:1:1:1:1] # API::ConanProjectPackages file download endpoints GET /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/
:recipe_revision/package/:conan_package_reference/:package_revision/:file_name behaves like package file download endpoint behaves like a public project with packages behaves like allows download with no token with no private token returns 200
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:6:2:1:2:2] # API::ConanProjectPackages file download endpoints GET /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/
:recipe_revision/package/:conan_package_reference/:package_revision/:file_name behaves like package file download endpoint behaves like an internal project with packages returns the file
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:6:2:1:3:2] # API::ConanProjectPackages file download endpoints GET /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/
:recipe_revision/package/:conan_package_reference/:package_revision/:file_name behaves like package file download endpoint behaves like a private project with packages returns the file
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:7:3:1:3:2:2:1:1:2] # API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:file_name behaves like workhorse recipe file upload endpoint behaves like uploads a package file with object storage disabled with a file behaves like package workhorse uploads without a workhorse header logs an error
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:7:3:1:3:2:2:1:1:1:1] # API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:file_name behaves like workhorse recipe file upload endpoint behaves like uploads a package file with object storage disabled with a file behaves like package workhorse uploads without a workhorse header behaves like returning response status returns forbidden
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:7:3:1:3:2:3:1] # API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:file_name behaves like workhorse recipe file upload endpoint behaves like uploads a package file with object storage disabled without a token rejects request without a token
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:7:3:1:3:2:4:1] # API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:file_name behaves like workhorse recipe file upload endpoint behaves like uploads a package file with object storage disabled when params from workhorse are correct creates package and stores package file
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:7:3:1:3:3:1:3:1] # API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:file_name behaves like workhorse recipe file upload endpoint behaves like uploads a package file with object storage enabled and direct upload enabled with valid remote_id creates package and stores package file
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:7:3:1:4:1:1] # API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:file_name behaves like workhorse recipe file upload endpoint behaves like creates build_info when there is a job with job token creates a build_info record
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:7:3:1:4:1:2] # API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:file_name behaves like workhorse recipe file upload endpoint behaves like creates build_info when there is a job with job token creates a package_file_build_info record
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:7:4:1:3:2:2:1:1:2] # API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:conan_package_reference/:package_revision/:file_name behaves like workhorse package file upload endpoint behaves like uploads a package file with object storage disabled with a file behaves like package workhorse uploads without a workhorse header logs an error
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:7:4:1:3:2:2:1:1:1:1] # API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:conan_package_reference/:package_revision/:file_name behaves like workhorse package file upload endpoint behaves like uploads a package file with object storage disabled with a file behaves like package workhorse uploads without a workhorse header behaves like returning response status returns forbidden
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:7:4:1:3:2:3:1] # API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:conan_package_reference/:package_revision/:file_name behaves like workhorse package file upload endpoint behaves like uploads a package file with object storage disabled without a token rejects request without a token
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:7:4:1:3:2:4:1] # API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:conan_package_reference/:package_revision/:file_name behaves like workhorse package file upload endpoint behaves like uploads a package file with object storage disabled when params from workhorse are correct creates package and stores package file
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:7:4:1:3:3:1:3:1] # API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:conan_package_reference/:package_revision/:file_name behaves like workhorse package file upload endpoint behaves like uploads a package file with object storage enabled and direct upload enabled with valid remote_id creates package and stores package file
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:7:4:1:4:1:1] # API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:conan_package_reference/:package_revision/:file_name behaves like workhorse package file upload endpoint behaves like creates build_info when there is a job with job token creates a build_info record
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:7:4:1:4:1:2] # API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:conan_package_reference/:package_revision/:file_name behaves like workhorse package file upload endpoint behaves like creates build_info when there is a job with job token creates a package_file_build_info record
rspec ./spec/requests/api/conan_project_packages_spec.rb[1:7:4:1:5:1:1] # API::ConanProjectPackages file upload endpoints PUT /api/v4/projects/:id/packages/conan/v1/files/:package_name/package_version/:package_username/:package_channel/:recipe_revision/export/:conan_package_reference/:package_revision/:file_name behaves like workhorse package file upload endpoint tracking the conan_package.tgz upload behaves like a gitlab tracking event creates a gitlab tracking event push_package
HEAD:
$ git show HEAD
commit 65f3749cf7214514d957acc15a278c3790e61a93 (HEAD -> master, origin/master, origin/HEAD)
Merge: 00e27eca92c 60c8b2f8127
Author: Natalia Tepluhina <ntepluhina@gitlab.com>
Date: Mon Mar 29 08:38:40 2021 +0000
Merge branch 'vs-gql-local-resolver-buy-ci-minutes' into 'master'
Implement local GraphQL resolver for buying CI minutes
See merge request gitlab-org/gitlab!56963i