PR flags: adds support for running/pending state #1
No reviewers
Labels
No labels
Closed As
Duplicate
Closed As
Fixed
Closed As
Insufficient Data
Closed As
Invalid
blocked
Bug
Chore
Feature
in-progress
points:1
points:13
points:2
points:3
points:5
points:8
priority:high
priority:low
priority:medium
ready
review
Technical Debt
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Infrastructure/loopabull-tasks#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fedora-ci/general/3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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 ...
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
orcomplete/error
status is probably the best solution for now, until we get proper handling of pull requests versions/rebases.@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.
Let's add a default value to this variable so we're backward compatible
s/if/elif/
let's find a way to generate these, it shouldn't be a static and public string.
rebased onto f4fd4c6ba2315be8cbfaa54cb63e0eaf976545f3
@pingou all issues addressed, politely asking for another round of review
rebased onto 3ccd19eca60777f6ec6c6ae7e4ab73a8b7ebf4e0
We need to come up with a better way to generate the uid, this is still too weak :(
@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.
rebased onto 342bdeed29febe892d51084a057cc5b8183d367a
rebased onto
e803bad648
@pingou updated to use
seed_flag_ci_pr
variable for hash calculation. Please take a look. ty!Looks fine to me :)
Pull-Request has been merged by pingou