.github/workflows: use ofborg-eval context for pending status#195984
Merged
zowoq merged 1 commit intoNixOS:masterfrom Oct 14, 2022
Merged
.github/workflows: use ofborg-eval context for pending status#195984zowoq merged 1 commit intoNixOS:masterfrom
zowoq merged 1 commit intoNixOS:masterfrom
Conversation
Instead of adding a pending status with context `Wait for ofborg`, make the context `ofborg-eval` and the description "Wait for OfBorg...". That way, the status will be reused by OfBorg when it starts evaluation and we don't need to clear it any more.
Contributor
|
Let's see if it works. |
Member
Author
|
One small problem I did not anticipate: ofborg is so fast that there's a race condition where the "Waiting for OfBorg" message is written after it starts. Not too bad since it will be overwritten again soon, but still annoying. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What we want
If I understand correctly, we want new(ly updated) PRs to get a "Waiting for OfBorg" pending status, so that they stay pending at least until OfBorg is summoned.
What is currently happening
When a PR is created, the
pending-set.ymlworkflow creates a pending status with contextWaiting for ofborgand description "This pending status will be cleared when ofborg starts eval.".However, the
pending-clear.ymlworkflow only runs when the OfBorg check suite becomescompleted, which happens when all of the check runs (not statuses) created by OfBorg arecompleted(you can see the check runs posted by OfBorg in the "Checks" tab of a PR, under the "OfBorg" drop-down). This only happens once OfBorg finishes evaluation, because it then posts the "Evaluation Performance Report" check run, but it can happen again e.g. when all queued packages are done building.As far as I can tell, the
ofborg-eval-startedstatus introduced in NixOS/ofborg#527 does not change anything (since it is a status and not a check) and can be removed (independently from this change).Proposed fix
Instead of adding a pending status with context
Wait for ofborg, make the contextofborg-evaland the description "Wait for OfBorg...". That way, the status will be reused by OfBorg when it starts evaluation and we don't need to clear it any more.Will this work?
I think so. I tested this on my fork. After creating the PR, the pending status was set as expected:
Then, after simulating OfBorg by running
the status was correctly overwritten: