Skip to content
Snippets Groups Projects

Add geo_pipeline_replication feature flag

Merged Michael Kozono requested to merge mk/add-pipeline-replication-feature-flag into master
1 unresolved thread

What does this MR do and why?

Adds a feature flag so pipeline ref replication can be disabled.

My hypothesis is that the logic is unneeded. Therefore we can disable it in staging-ref and Dedicated (which should immediately alleviate https://gitlab.com/gitlab-com/gl-infra/gitlab-dedicated/incident-management/-/issues/128).

We should also confirm that it is not needed in combination with https://docs.gitlab.com/ee/administration/geo/secondary_proxy/runners.html.

If those tests show that it is not needed, then we can delete the code.

#438632 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

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

This MR does not cause a behavior change. You must disable the FF in order to cause a behavior change. The following steps are how we can validate the hypothesis. I have SSL set up locally and use Podman since I can't use Docker, and both things combined make it really hard to set up a Runner locally.

  1. Set up Geo
  2. Enable secondary runners
  3. Set up a Runner with the secondary Geo site
  4. Push changes to a repo
  5. Confirm that the pipeline works
  6. In rails console disable the feature flag
    Feature.disable(:geo_pipeline_replication)
  7. Push changes to a repo
  8. Confirm that the pipeline works
Edited by Michael Kozono

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Contributor
    1 Warning
    :warning: You've made some app changes, but didn't add any tests.
    That's OK as long as you're refactoring existing code,
    but please consider adding any of the maintenancepipelines, maintenancerefactor, maintenanceworkflow, documentation, QA labels.
    1 Message
    :book: CHANGELOG missing:

    If this merge request needs a changelog entry, add the Changelog trailer to the commit message you want to add to the changelog.

    If this merge request doesn't need a CHANGELOG entry, feel free to ignore this message.

    Reviewer roulette

    Changes that require review have been detected!

    Please refer to the table below for assigning reviewers and maintainers suggested by Danger in the specified category:

    Category Reviewer Maintainer
    backend @joseph profile link current availability (UTC+0, 10 hours ahead of author) @georgekoltsov profile link current availability (UTC+0, 10 hours ahead of author)

    Please check reviewer's status!

    • available Reviewer is available!
    • unavailable Reviewer is unavailable!

    Feel free to override these selections if you think someone else would be better-suited or use the GitLab Review Workload Dashboard to find other available reviewers.

    To read more on how to use the reviewer roulette, please take a look at the Engineering workflow and code review guidelines. Please consider assigning a reviewer or maintainer who is a domain expert in the area of the merge request.

    Once you've decided who will review this merge request, assign them as a reviewer! Danger does not automatically notify them for you.

    If needed, you can retry the :repeat: danger-review job that generated this comment.

    Generated by :no_entry_sign: Danger

  • Michael Kozono added 1 commit

    added 1 commit

    • ab383bc7 - Add geo_pipeline_replication feature flag

    Compare with previous version

  • Michael Kozono resolved all threads

    resolved all threads

  • Michael Kozono added 1 commit

    added 1 commit

    Compare with previous version

  • Michael Kozono added 1 commit

    added 1 commit

    • 29fbe5d3 - Add geo_pipeline_replication feature flag

    Compare with previous version

  • Ghost User
  • Contributor

    E2E Test Result Summary

    allure-report-publisher generated test report!

    e2e-test-on-gdk: :white_check_mark: test report for 11babd74

    expand test summary
    +------------------------------------------------------------------+
    |                          suites summary                          |
    +-------------+--------+--------+---------+-------+-------+--------+
    |             | passed | failed | skipped | flaky | total | result |
    +-------------+--------+--------+---------+-------+-------+--------+
    | Create      | 8      | 0      | 3       | 0     | 11    | ✅     |
    | Data Stores | 2      | 0      | 0       | 0     | 2     | ✅     |
    | Plan        | 4      | 0      | 0       | 0     | 4     | ✅     |
    | Monitor     | 4      | 0      | 0       | 0     | 4     | ✅     |
    | Govern      | 3      | 0      | 0       | 0     | 3     | ✅     |
    | Package     | 0      | 0      | 1       | 0     | 1     | ➖     |
    +-------------+--------+--------+---------+-------+-------+--------+
    | Total       | 21     | 0      | 4       | 0     | 25    | ✅     |
    +-------------+--------+--------+---------+-------+-------+--------+

    e2e-package-and-test: :white_check_mark: test report for 11babd74

    expand test summary
    +------------------------------------------------------------------+
    |                          suites summary                          |
    +-------------+--------+--------+---------+-------+-------+--------+
    |             | passed | failed | skipped | flaky | total | result |
    +-------------+--------+--------+---------+-------+-------+--------+
    | Create      | 16     | 0      | 6       | 0     | 22    | ✅     |
    | Package     | 0      | 0      | 2       | 0     | 2     | ➖     |
    | Govern      | 6      | 0      | 0       | 0     | 6     | ✅     |
    | Plan        | 8      | 0      | 0       | 0     | 8     | ✅     |
    | Monitor     | 8      | 0      | 0       | 0     | 8     | ✅     |
    | Data Stores | 4      | 0      | 0       | 0     | 4     | ✅     |
    +-------------+--------+--------+---------+-------+-------+--------+
    | Total       | 42     | 0      | 8       | 0     | 50    | ✅     |
    +-------------+--------+--------+---------+-------+-------+--------+
  • Michael Kozono changed the description

    changed the description

  • mentioned in issue #438632 (closed)

  • Ian Baum
  • Ian Baum approved this merge request

    approved this merge request

  • Michael Kozono added 1 commit

    added 1 commit

    • 11babd74 - Update feature flag definition

    Compare with previous version

  • Michael Kozono requested review from @dbalexandre

    requested review from @dbalexandre

  • resolved all threads

  • Douglas Barbosa Alexandre approved this merge request

    approved this merge request

  • Douglas Barbosa Alexandre enabled an automatic merge when all merge checks for 11babd74 pass

    enabled an automatic merge when all merge checks for 11babd74 pass

  • mentioned in commit f20c92a5

  • added workflowproduction label and removed workflowcanary label

  • Please register or sign in to reply
    Loading