Skip to content

Conversation

@agocke
Copy link
Member

@agocke agocke commented Dec 19, 2025

auto-bisect

A tool for automatically finding the first commit that introduced a test failure in Azure DevOps builds using binary search. Given a known good build and a known bad build, it will automatically queue builds (or use existing ones) to test commits in between, narrowing down to the exact commit that caused the regression.

I built this to help track down outerloop failures.

@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Dec 19, 2025
Copy link
Member

Choose a reason for hiding this comment

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

nit: dotnet sln migrate src/tools/auto-bisect/auto-bisect.sln to replace it with slnx variant (entire repo is on slnx plan now: git ls-files ':/*slnx | wc -l' vs. git ls-files ':/*sln | wc -l').

@am11 am11 added area-Infrastructure and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Dec 19, 2025
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

Comment on lines +15 to +19
export AZDO_PAT=<token>
dotnet run -- bisect \
-o <org> -p <project> \
--good <build-id> --bad <build-id> \
--test <test-name>
Copy link
Member

Choose a reason for hiding this comment

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

Maybe it can be added as github workflow (like backport.yml), with a comment trigger on issues and pulls:
/bisect <good> <bad> <test-name>


**Requirements:**

1. A personal AzDO PAT with read & execute permission for the "Build" tasks, and read for "Test Management".
Copy link
Member

Choose a reason for hiding this comment

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

If I am understanding this correctly you might want to make it more clear that this is limited to being an employee so that contributors that find this documentation don't struggle with permission issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants