Failure in spec/graphql/mutations/design_management/upload_spec.rb | Mutations::DesignManagement::Upload#resolve when the feature is available contention in the design repo running requests in parallel does not cause errors
Test metadata (don't modify)
Field | Value |
---|---|
File URL | spec/graphql/mutations/design_management/upload_spec.rb#L68 |
Filename | spec/graphql/mutations/design_management/upload_spec.rb |
Description | Mutations::DesignManagement::Upload#resolve when the feature is available contention in the design repo running requests in parallel does not cause errors |
Test level | unit |
Hash | b0104f364a71cfc911c654915092a3ad8425c78c3 |
Duration | 1.91 seconds |
Expected duration | < 45.4 seconds |
Stack trace
Failure/Error: expect(&block).not_to raise_error
expected no Exception, got #<Gitlab::ExclusiveLease::LeaseWithinTransactionError: Exclusive lease cannot be obtained within a transaction as it could lead to idle transactions.> with backtrace:
# ./lib/gitlab/exclusive_lease.rb:128:in `report_lock_attempt_inside_transaction'
# ./lib/gitlab/exclusive_lease.rb:117:in `try_obtain'
# ./lib/gitlab/exclusive_lease_helpers/sleeping_lock.rb:39:in `try_obtain'
# ./lib/gitlab/exclusive_lease_helpers/sleeping_lock.rb:22:in `obtain'
# ./lib/gitlab/exclusive_lease_helpers.rb:36:in `in_lock'
# ./app/models/design_management/version.rb:108:in `with_lock'
# ./app/services/design_management/save_designs_service.rb:38:in `upload_designs!'
# ./app/services/design_management/save_designs_service.rb:22:in `execute'
# ./ee/app/services/ee/design_management/save_designs_service.rb:10:in `execute'
# ./app/graphql/mutations/design_management/upload.rb:28:in `resolve'
# ./spec/graphql/mutations/design_management/upload_spec.rb:18:in `run_mutation'
# ./spec/graphql/mutations/design_management/upload_spec.rb:70:in `block (9 levels) in <top (required)>'
Reports (6)
- 2024-02-20: https://gitlab.com/gitlab-org/gitlab/-/jobs/6216719646 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1183915686)
- 2024-02-20: https://gitlab.com/gitlab-org/gitlab/-/jobs/6216865776 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1183937457)
- 2024-02-20: https://gitlab.com/gitlab-org/gitlab/-/jobs/6216885864 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1183940255)
- 2024-02-21: https://gitlab.com/gitlab-org/gitlab/-/jobs/6219148387 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1184286368)
- 2024-02-21: https://gitlab.com/gitlab-org/gitlab/-/jobs/6225153672 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1185211720)
- 2024-02-21: https://gitlab.com/gitlab-org/gitlab/-/jobs/6225597610 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1185276231)
Edited by TEST_FAILURES_PROJECT_TOKEN