Skip to content

[BazelBot] Support nested failures - #943

Merged
pranavk merged 5 commits into
llvm:mainfrom
pranavk:gh_nested
Nov 16, 2026
Merged

pranavk merged 5 commits into
llvm:mainfrom
pranavk:gh_nested

Conversation

@pranavk

@pranavk pranavk commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

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.

@pranavk pranavk changed the title nested failures [BazelBot] Support nested failures Sep 30, 2026
@pranavk
pranavk marked this pull request as ready for review September 30, 2026 22:34
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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sending out these commits as separate PRs? (that would be preferable so we can give them individual patches in the patch DB)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I always prefer refactoring in a separate PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we log a failure to fix here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what you mean. the caller of repair_builds log if it fails

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, i see your comment is 23m old. i force-pushed. sorry.

@pranavk
pranavk merged commit 1131fe5 into llvm:main Nov 16, 2026
6 checks passed
pranavk added a commit that referenced this pull request Nov 18, 2026
After #943, we have git rebase
operation which could fail when k8s pod doesn't have these environment
variable set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants