Skip to content

Trigger master pipeline when MR is merged & Fix flaky test

What does this MR do?

  1. fixes an issue that was introduced in Conditionally run child pipelines based on MR t... (!339 - merged) which prevents master pipelines from triggering. In that MR, the Workflows/MergeRequest-Pipelines.gitlab-ci.yml was included in order to enable Merge Request Pipelines, however, the behaviour was overridden by the following workaround:

    workflow:
      rules:
        - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
          variables:
            CI_COMMIT_BRANCH: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME

    This MR fixes this issue by inlining the contents of the Workflows/MergeRequest-Pipelines.gitlab-ci.yml template and adding the above workaround to it in a different order.

  2. disables a spec that fails frequently because the expectations are a moving target, for example, here are three jobs that have failed within the past week, all caused by this same test:

    This test should be re-enabled when Update integration-test project to skip fields ... (gitlab-org/gitlab#336332 - closed) has been completed.

What are the relevant issue numbers?

gitlab-org/gitlab#365313 (closed)

Testing

This has been tested on a local GitLab instance and works as expected

Does this MR meet the acceptance criteria?

Edited by Adam Cohen

Merge request reports

Loading