Skip to content
Snippets Groups Projects

Add ability to clean up stale environments

Merged Allen Cook requested to merge 19724-ui-stop-stale-environments into master

What does this MR do and why?

Allows users to clean up stale environments that haven't been modified or deployed to since a specified date

Screenshots or screen recordings

image

How to set up and validate locally

  1. Enable the stop_stale_environments feature flag (i.e. Feature.enable(:stop_stale_environments))
  2. Navigate to the environments page for a project that has stale environments as a user with maintainer access
  3. Click "Clean up environments" to show the new modal
  4. Input a date after the stale environments you want to stop have been updated
  5. Click "clean up"
  6. Wait for stale environments to become "stopped" (should be fairly quick)

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 #19724 (closed)

Edited by Allen Cook

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
  • Andrew Fontaine
  • Looking good @acook.gitlab

    general direction is solid, just some things to think about :thumbsup:

  • Allure report

    allure-report-publisher generated test report!

    e2e-review-qa: :white_check_mark: test report for 2e7798e2

    expand test summary
    +-----------------------------------------------------------------------+
    |                            suites summary                             |
    +------------------+--------+--------+---------+-------+-------+--------+
    |                  | passed | failed | skipped | flaky | total | result |
    +------------------+--------+--------+---------+-------+-------+--------+
    | Govern           | 28     | 0      | 5       | 0     | 33    | ✅     |
    | Create           | 28     | 0      | 1       | 0     | 29    | ✅     |
    | Plan             | 49     | 0      | 1       | 0     | 50    | ✅     |
    | Verify           | 12     | 0      | 0       | 0     | 12    | ✅     |
    | Manage           | 33     | 0      | 3       | 0     | 36    | ✅     |
    | Monitor          | 4      | 0      | 0       | 0     | 4     | ✅     |
    | Framework sanity | 9      | 0      | 1       | 0     | 10    | ✅     |
    | Package          | 0      | 0      | 1       | 0     | 1     | ➖     |
    +------------------+--------+--------+---------+-------+-------+--------+
    | Total            | 163    | 0      | 12      | 0     | 175   | ✅     |
    +------------------+--------+--------+---------+-------+-------+--------+

    e2e-package-and-test: :exclamation: test report for 2e7798e2

    expand test summary
    +-----------------------------------------------------------------------+
    |                            suites summary                             |
    +------------------+--------+--------+---------+-------+-------+--------+
    |                  | passed | failed | skipped | flaky | total | result |
    +------------------+--------+--------+---------+-------+-------+--------+
    | Plan             | 120    | 0      | 0       | 0     | 120   | ✅     |
    | Create           | 292    | 0      | 40      | 20    | 332   | ❗     |
    | Analytics        | 4      | 0      | 0       | 0     | 4     | ✅     |
    | Fulfillment      | 4      | 0      | 50      | 0     | 54    | ✅     |
    | Manage           | 132    | 0      | 6       | 4     | 138   | ❗     |
    | ModelOps         | 0      | 0      | 2       | 0     | 2     | ➖     |
    | Configure        | 0      | 0      | 6       | 0     | 6     | ➖     |
    | Release          | 12     | 0      | 0       | 0     | 12    | ✅     |
    | Verify           | 98     | 0      | 4       | 0     | 102   | ✅     |
    | Govern           | 84     | 0      | 2       | 0     | 86    | ✅     |
    | Framework sanity | 0      | 0      | 2       | 0     | 2     | ➖     |
    | Monitor          | 10     | 0      | 0       | 0     | 10    | ✅     |
    | Secure           | 14     | 0      | 2       | 0     | 16    | ✅     |
    | Package          | 0      | 0      | 6       | 0     | 6     | ➖     |
    +------------------+--------+--------+---------+-------+-------+--------+
    | Total            | 770    | 0      | 120     | 24    | 890   | ❗     |
    +------------------+--------+--------+---------+-------+-------+--------+
    Edited by Ghost User
  • Allen Cook added 1 commit

    added 1 commit

    • 208a4864 - Add ability for users to stop stale environments

    Compare with previous version

  • Allen Cook deleted the 19724-api-stop-stale-environments branch. This merge request now targets the master branch

    deleted the 19724-api-stop-stale-environments branch. This merge request now targets the master branch

  • Allen Cook added 223 commits

    added 223 commits

    Compare with previous version

  • Allen Cook added 1 commit

    added 1 commit

    • e4946ddc - Add ability for users to stop stale environments

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading