Repository navigation
[BazelBot] Support nested failures - #943
Conversation
| self.last_processed_sha: str = "" | ||
| self.poll_interval = poll_interval | ||
| # Branch containing fixes that have not been merged | ||
| # All subsequent failures are merged into this branch as separate commits |
There was a problem hiding this comment.
Are we sending out these commits as separate PRs? (that would be preferable so we can give them individual patches in the patch DB)
There was a problem hiding this comment.
no, not yet. these separate commits are all updating the active fix branch.
we can do that in future. Just wanted to have something simple for this first. It's much simpler this way in terms of complexity.
There was a problem hiding this comment.
This makes proper patching in the integrate basically impossible. The commit now only functions as a patch back to the most recent breakage potentially leaving the range between the first and most recent red.
There was a problem hiding this comment.
I updated the branch with support for creating new PRs for every fix. Had to do some refactoring to make it easier to do. It's more work to separate out refactoring bits into a separate PR
There was a problem hiding this comment.
I always prefer refactoring in a separate PR.
There was a problem hiding this comment.
Looking at this again for opportunities to separate out in separate PR, I don't think there's much there without making it unreadable. There are minor things that logically should go with this PR.
| ) | ||
| record.fixed_by = FixTool.AI | ||
| else: | ||
| record.fixed_by = FixTool.NOT_FIXED |
There was a problem hiding this comment.
Should we log a failure to fix here?
There was a problem hiding this comment.
not sure what you mean. the caller of repair_builds log if it fails
There was a problem hiding this comment.
oh, i see your comment is 23m old. i force-pushed. sorry.
Push fixes into active fix branch if we see another failure
After #943, we have git rebase operation which could fail when k8s pod doesn't have these environment variable set.
New builds are built on top of active fix (pending PR) but still on a separate branch. This allows us to send new PR for every failure. Nested failure will send PRs that includes all changes from previous PR. So diff will be different until previous PR is merged. The PR description will have all the details.