Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

rerun failed builds instead of using their cached result #62

Merged
merged 1 commit into from
Apr 27, 2018

Conversation

dtheodor
Copy link
Contributor

@dtheodor dtheodor commented Apr 27, 2018

Re-run "ready" jobs whose exit status is not 0. Re-running such a job means removing the existing ready folder and then proceeding as usual, i.e. creating a new pending folder etc.

Closes #45

@dtheodor dtheodor requested a review from apostergiou April 27, 2018 10:01
@@ -176,28 +176,57 @@ func TestResultCache(t *testing.T) {

func TestResultCacheExitCode(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this test case makes sense at all after this change?

t.Fatal(err)
}

assertNotEq(br.ExitCode, 0, t)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the exit code is 0 here? Shouldn't it be 33?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're testing whether the result was cached. a result is now only cached with an exit code of 0. so the test case now needs an exit code of 0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i see we have another test for that actually, so I'm going to remove this one

@agis
Copy link
Contributor

agis commented Apr 27, 2018

LGTM 👏

@agis
Copy link
Contributor

agis commented Apr 27, 2018

Oh, please add an entry in the changelog (under Changed). As long as the user is concerned, we a build that errors is not going to be cached.

@dtheodor dtheodor force-pushed the rerun-failed-builds branch from 5aa037f to 3cf7f75 Compare April 27, 2018 13:08
@dtheodor dtheodor merged commit 97fbbb5 into master Apr 27, 2018
@dtheodor dtheodor deleted the rerun-failed-builds branch April 27, 2018 13:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants