PR flags: adds support for running/pending state #1

Merged
ryanlerch merged 1 commit from fedora-ci/general/3 into master 2019-01-24 22:55:05 +00:00
Contributor

This patch adds support for runinng state for Fedora CI.

It keeps only the recent flag around, so running transitions nicely
to complete/error state and vice versa (for reruns).

Resolves https://pagure.io/fedora-ci/general/issue/3

Signed-off-by: Miroslav Vadkerti mvadkert@redhat.com

This patch adds support for runinng state for Fedora CI. It keeps only the recent flag around, so running transitions nicely to complete/error state and vice versa (for reruns). Resolves https://pagure.io/fedora-ci/general/issue/3 Signed-off-by: Miroslav Vadkerti <mvadkert@redhat.com>
Author
Contributor

@pingou @psss @bookwar kindly asking for review

I tested the script and it seems to work on our staging pagure instance we have internally. I was not able to test loop-a-bull ...

@pingou @psss @bookwar kindly asking for review I tested the script and it seems to work on our staging pagure instance we have internally. I was not able to test loop-a-bull ...
First-time contributor

I don't understand the implementation in detail but in general the proposed approach seems fine to me: Showing only one flag with either running or complete/error status is probably the best solution for now, until we get proper handling of pull requests versions/rebases.

I don't understand the implementation in detail but in general the proposed approach seems fine to me: Showing only one flag with either `running` or `complete/error` status is probably the best solution for now, until we get proper handling of pull requests versions/rebases.
Author
Contributor

@kevev @puiterwijk @smooge @pingou hi, would anybody have time to review this pls? We would like to show this feature on DevConf CZ. Thanks very much.

@kevev @puiterwijk @smooge @pingou hi, would anybody have time to review this pls? We would like to show this feature on DevConf CZ. Thanks very much.
First-time contributor

Let's add a default value to this variable so we're backward compatible

Let's add a default value to this variable so we're backward compatible
First-time contributor

s/if/elif/

s/if/elif/
First-time contributor

let's find a way to generate these, it shouldn't be a static and public string.

let's find a way to generate these, it shouldn't be a static and public string.
Author
Contributor

rebased onto f4fd4c6ba2315be8cbfaa54cb63e0eaf976545f3

rebased onto f4fd4c6ba2315be8cbfaa54cb63e0eaf976545f3
Author
Contributor

@pingou all issues addressed, politely asking for another round of review

@pingou all issues addressed, politely asking for another round of review
Author
Contributor

rebased onto 3ccd19eca60777f6ec6c6ae7e4ab73a8b7ebf4e0

rebased onto 3ccd19eca60777f6ec6c6ae7e4ab73a8b7ebf4e0
First-time contributor

We need to come up with a better way to generate the uid, this is still too weak :(

We need to come up with a better way to generate the uid, this is still too weak :(
Author
Contributor

@pingou can you elaborate what is the problem, please? Is it that someone cannot fake easily the result or? Should I add more strings to the generation, so it is not just one value hashed? ... btw on downstream we just remove all old flags with "[citest]", is that something we do not want to do here?

The problem we were trying to solve with this was: https://pagure.io/fedora-ci/general/issue/1 (if we have just one result, no need to write which commit it relates to). Also with a rebase the reference to hash makes little sense.

@pingou can you elaborate what is the problem, please? Is it that someone cannot fake easily the result or? Should I add more strings to the generation, so it is not just one value hashed? ... btw on downstream we just remove all old flags with "[citest]", is that something we do not want to do here? The problem we were trying to solve with this was: https://pagure.io/fedora-ci/general/issue/1 (if we have just one result, no need to write which commit it relates to). Also with a rebase the reference to hash makes little sense.
Author
Contributor

rebased onto 342bdeed29febe892d51084a057cc5b8183d367a

rebased onto 342bdeed29febe892d51084a057cc5b8183d367a
Author
Contributor

rebased onto e803bad648

rebased onto e803bad6487dedd00f76118d7977022091c58297
Author
Contributor

@pingou updated to use seed_flag_ci_pr variable for hash calculation. Please take a look. ty!

@pingou updated to use ```seed_flag_ci_pr``` variable for hash calculation. Please take a look. ty!
First-time contributor

Looks fine to me :)

Looks fine to me :)
First-time contributor

Pull-Request has been merged by pingou

Pull-Request has been merged by pingou
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Infrastructure/loopabull-tasks#1
No description provided.