ManageIQ / ManageIQ/miq_bot

Travis stalled build detector should restart a stalled build at most 3 times on the same pull request

Open
#82 2 comments 0 reactions 0 assignees View on GitHub
bug help wanted pinned
Dominant language
Ruby
Stars
16
Forks
39
Avg merge
1d 11h
Merged PRs (30d)
8

Description

From: https://github.com/ManageIQ/manageiq/pull/3258

![screen shot 2015-06-25 at 9 27 38 am](https://cloud.githubusercontent.com/assets/19339/8355297/743a8d0a-1b1c-11e5-983a-94f610cc5630.png)

Since we don't delete old comments on the pull request (by design), we could check to see how many comments on the PR begin with the tag: `` and skip the PR entirely if there are already 3 comments.

It's easy to test this by creating a PR with a test that does `sleep 60 * 15`, it should stall after ten minutes, get restarted, etc. 3 times.

Contributor guide

Open the contributing guide

Research direction

Trace the Travis stalled-build detector in the bot code and review the behavior described from ManageIQ pull request #3258. Use a pull request test that sleeps for 15 minutes to exercise the detector; done means a pull request is restarted at most three times and later stalled comments do not trigger another restart.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
ci-cd
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.