Skip to content

Fix rules for running gems specs in scheduled pipeline

Jennifer Li requested to merge jennli-fix-gem-spec-rules into master

What does this MR do and why?

This MR resolves an error we had in gems/gem.gitlab-ci.yml introduced by ci: Run gem specs in maintenance pipelines (!126357 - merged), which prevented gem specs from running in scheduled and maintenance pipelines.

Root cause: The gem spec downstream pipeline is always triggered by the gitlab parent pipeline, therefore its CI_PIPELINE_SOURCE variable is always parent_pipeline. Our original rule will never evaluate to true.

Re: !126357 (merged)

This resolves broken master incidents:

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports