Skip to content

Move outdated deployment warning to FOSS

What does this MR do and why?

Describe in detail what your merge request does and why.

Prevent outdated deployment jobs shows a warning message This deployment job does not run automatically and must be started manually, but it's older than the latest deployment, and therefore can't run.. However, this doesn't appear in FOSS.

This MR moves the related code out of /ee folder.

Screenshots or screen recordings

Note: following screenshots are taken when running local rails app with FOSS_ONLY=1

BEFORE

Screenshot_2022-12-20_at_14.47.46

AFTER

Screenshot_2022-12-20_at_14.46.09

How to set up and validate locally

  1. export FOSS_ONLY=1 and gdk restart rails
  2. Enable Prevent outdated deployment jobs in Settings -> CI/CD -> General pipelines
  3. Create a gitlab-ci.yml with a single deploy stage, stage should be manually triggered. Commit
  4. Edit anything in the codebase and commit again.
  5. Trigger the latest job.
  6. You should not be able to trigger the earlier job. If you go to job show page, it should say "This deployment job does not run automatically and must be started manually, but it's older than the latest deployment, and therefore can't run."

MR acceptance checklist

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

Related to #383993 (closed)

Edited by Halil Coban

Merge request reports