Skip to content

Fix flaky 25_downstream_pipelines fixture

Shinya Maeda requested to merge fix-broken-fixture-downstream-pipelines into master

What does this MR do?

ee/db/fixtures/development/25_downstream_pipelines.rb sometimes fails when target_pipeline is nil. This could happen when the seed size of the projects is specified by SIZE environment variable. We sometimes specify 1 to the size, so that there is only one project created in the instance initially, which fails the 25_downstream_pipelines expectation.

We should skip the process if the target_pipeline is not found.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Rémy Coutable

Merge request reports