Repository navigation
{workflows/eval,ci/github-script}: check for mass and NixOS test rebuilds targeting master/release-* branches - #481205
Conversation
68322cc to
5293214
Compare
Dismissals are done automatically by commits.js, even for reviews from
check-target-branches.js. This is not desirable.
The solution is
(1) do not decline to post a review because it was already dismissed
(because it may have not been dismissed by a human, and circumstances may
have changed), and
(2) reword the auto-dismissal message to not imply that whatever
problems were present are fixed.
35e5d1c to
960feb8
Compare
…master/release-* branches
960feb8 to
a4d5f8a
Compare
| // TODO: should this be combined with the branch checks in prepare.js? | ||
| // They do seem quite similar, but this needs to run after eval, | ||
| // and prepare.js obviously doesn't. |
There was a problem hiding this comment.
What's your sense of the tradeoffs?
There was a problem hiding this comment.
I think the main disadvantage to combining them is that it would increase the time to being told you're targeting nixos-* or have commits from another branch from ~30 seconds to ~5 minutes.
It also would require some refactoring of the code I added: it's useful for me to have the early return when !baseClassification.type.includes('primary'), but that doesn't work for the code from prepare.js. It wouldn't be a huge problem (I could just add that to all of the if/elseif conditions), but it would make stuff slightly uglier, I think?
The advantage is keeping similar things together, and removing a bit of duplication.
|
I reviewed this commit-by-commit. |
|
Successfully created backport PR for |
|
@mdaniels5757 can you look at the bot failures in the actions log? |
|
@philiptaron I actually had been :) #469363 (comment). I'll keep looking at it; not quite sure what's wrong... P.S. Do you think I could be added to the nixpkgs-ci team? Would be nice to be pinged for/help review some of these CI changes. |
Done, invite in your email. |
|
Nice feature! One thing that I noted on a manual backport PR in #482601:
This is a problem, because the author is not notified about the edited comment, so they don't realize there's a(nother) problem. I think the comments for mass rebuild checks and commit checks should be entirely separate, so that they don't overwrite each other. I also noticed that labels won't be set for PRs which have the mass-rebuild-review-comment. This is unfortunate. Edit: Also note the edit history on #482601 (review) - the two jobs are editing this comment back and forth! :D |
Agreed, I'll work on this.
They should be?? I'll look into it. |
It should be set by the next scheduled Bot run, at the very least. |
Probably right, I possibly didn't wait long enough for that to happen. |
|
This catches the kernel update backports, had to bypass to merge. Maybe we could check if the PR only touches the |
Per discussion in infra matrix channel.
Commits
ci/supportedBranches: export split()
Needed for check-target-branch
ci/github-script/reviews: rework dismissal/non-posting logic
Dismissals are done automatically by commits.js, even for reviews from
check-target-branches.js. This is not desirable.
The solution is
(1) do not decline to post a review because it was already dismissed
(because it may have not been dismissed by a human, and circumstances may
have changed), and
(2) reword the auto-dismissal message to not imply that whatever
problems were present are fixed.
ci/github-script/reviews: allow leaving review comments
{workflows/eval,ci/github-script}: check for mass rebuilds targeting master/release-* branches
Check if a PR was made against the wrong branch based on rebuild amount.
Screenshots
Things done
Add a 👍 reaction to pull requests you find important.