Skip to content

Conversation

@Aaron1011
Copy link
Member

@Aaron1011 Aaron1011 commented Dec 5, 2025

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.

  • Workflows:
    • Update general.yml to run on branches main and tensorzero/pr-*.
    • Modify tensorzero-ci-bot-failure-diagnosis.yml to only generate patches if the base branch is main and the workflow run failed.
  • Jobs:
    • Add print-base-branch job in tensorzero-ci-bot-failure-diagnosis.yml to log the base branch of the PR.

This description was created by Ellipsis for 421c0db. You can customize this summary. It will automatically update as commits are pushed.

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)
Copilot AI review requested due to automatic review settings December 5, 2025 16:20
Copy link
Contributor

Copilot AI left a 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>
Copilot AI review requested due to automatic review settings December 5, 2025 16:27
Copy link
Contributor

Copilot AI left a 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.

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.

2 participants