Fix flaky 25_downstream_pipelines fixture
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
-
Changelog entry -
Documentation created/updated or follow-up review issue created -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers
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