Skip to content
Snippets Groups Projects

feat: Add job_interruptible option to danger-review template

Closed Manuel Adarve requested to merge (removed):main into main
3 unresolved threads
  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA

When using the danger-review component on Merge Requests, the job is by default not interruptible, this makes the feature of Auto-cancel redundant pipelines to break, since the danger-review is executed immediately on DAG pipelines, possibly incurring in additional costs of development pipelines when adding this component.

  • Update README.md with new job_interruptible input description
  • Modify template.yml to include job_interruptible parameter and apply it to the danger-review job
Edited by Manuel Adarve

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
23 23 default: false
24 24 type: boolean
25 25 description: 'Whether or not the job is allowed to fail'
26 job_interruptible:
27 default: false
  • Suggestion Thoughts on making this job interruptible by default and let folks opt out? :thinking:

    Suggested change
    27 default: false
    27 default: true

    Reason: If users enable auto-cancelling they expect every job to be interruptible by default.

    WDYT?

    I am actually surprised that CI jobs defined in components do not inherit the interruptible setting :thinking:

  • @manuel.remote

    It seems I screwed up my verification and CI jobs defined in components should already inherit the default:interruptible setting. Thanks @furkanayhan for verifying it :bow:

    I've created !11 (merged) to make CI jobs interruptible in this very repo (Dogfooding!) and I verified it works as expected already - without this MR.

  • Please register or sign in to reply
  • 18 18 | Input | Default Value | Description |
    19 19 | --------------------------------- | ----------------------------- | ------------------------------------------------------------------------------------------------- |
    20 20 | `job_image` | `ruby:3.3` | The image to use for the `danger-review` job. |
    21 | `job_interruptible` | `false` | Allow the danger-review job to be interruptible |
    • Suggested change
      21 | `job_interruptible` | `false` | Allow the danger-review job to be interruptible |
      21 | `job_interruptible` | `true` | Allow the danger-review job to be interruptible |
    • Please register or sign in to reply
  • Peter Leitzen requested changes

    requested changes

  • Peter Leitzen mentioned in merge request !11 (merged)

    mentioned in merge request !11 (merged)

  • As per #6 (comment 2092261580) I am going to close this MR!

    @manuel.remote Thanks again for the conversation and bearing with me :pray:

  • @manuel.remote, how was your code review experience with this merge request? Please tell us how we can continue to iterate and improve:

    1. React with a :thumbsup: or a :thumbsdown: on this comment to describe your experience.
    2. Create a new comment starting with @gitlab-bot feedback below, and leave any additional feedback you have for us in the comment.

    Subscribe to the GitLab Community Newsletter for contributor-focused content and opportunities to level up.

    Thanks for your help! :heart:

    This message was generated automatically. You're welcome to improve it.

  • Please register or sign in to reply
    Loading