-
Notifications
You must be signed in to change notification settings - Fork 743
Run general.yml on PRs from experimental-ci-bot #4996
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
To prevent loops, I've adjusted the ci bot workflow to only run on failures for PRs made to main (PRs made by the bot will target other branches)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR enables the general.yml workflow to run on pull requests created by the experimental-ci-bot while preventing infinite loops by restricting the CI bot's failure diagnosis workflow to only run on PRs targeting the main branch.
Key Changes:
- Extended general.yml to run on PRs targeting branches matching
tensorzero/pr-*(bot-created PRs) - Modified the CI bot workflow condition to only trigger on failures for PRs targeting main
- Added a debug job to print the base branch reference
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.github/workflows/general.yml |
Extended pull_request trigger to include tensorzero/pr-* branches for bot-created PRs |
.github/workflows/tensorzero-ci-bot-failure-diagnosis.yml |
Added base branch check to prevent loops and debug job to verify branch reference |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
To prevent loops, I've adjusted the ci bot workflow to only run on failures for PRs made to main (PRs made by the bot will target other branches)
Important
Update CI workflows to run on additional branches and restrict failure diagnosis to main branch failures.
general.ymlto run on branchesmainandtensorzero/pr-*.tensorzero-ci-bot-failure-diagnosis.ymlto only generate patches if the base branch ismainand the workflow run failed.print-base-branchjob intensorzero-ci-bot-failure-diagnosis.ymlto log the base branch of the PR.This description was created by
for 421c0db. You can customize this summary. It will automatically update as commits are pushed.