Wiki: Finding that Needle in the Haystack - Git Bisect/ Leah Vogel
For agents: Markdown version · Wiki index · Explore
- Speaker:
- Event: Reversim Summit 2021
- Video: https://www.youtube.com/watch?v=-vvkDmEc2wY
- Transcript: /transcripts/2021/44–vvkDmEc2wY.md
- Language: Hebrew and English · Type: talk · Level: intro
- Topics: Developer Experience, Debugging, Productivity
Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.
Summary
The speaker discusses the common engineering problem of discovering a bug just before a release when dealing with a large history of commits. The talk introduces a built-in version control tool that performs a binary search through commit history to locate the exact commit that introduced a regression. The audience learns how to initiate and use this command-line utility to efficiently debug issues without manually inspecting hundreds of changes. Through a practical explanation, the speaker demonstrates how this tool saves time and reduces stress during critical release cycles.
Key points
- 0:11 The speaker introduces a scenario where code that previously worked suddenly fails right before a release.
- 0:11 Developers often rely on version control history, but manual inspection becomes overwhelming when faced with hundreds of commits.
- 0:11 There is an underutilized built-in tool that acts like a car jack, ready to help when you are stuck.
- 0:11 The speaker introduces the tool as a binary search method for code history.
- 0:11 The tool is already installed on your machine within the command line and requires no additional downloads.
- 0:11 To use the tool, you start a session using a simple command.
- 0:11 The process requires defining a known bad commit and a known good commit to begin the search.
Takeaways
- Use binary search algorithms built into version control to find regressions instead of checking commits manually.
- Save time during pre-release debugging by leveraging existing command-line tools.
- Define a clear known good state and a known bad state before starting a search for a bug.
Questions this talk answers
- How can I find which commit introduced a bug in a large repository?
- What is the command to start a binary search in Git history?
Technologies
Git
Tags
debugging, developer tools, git, troubleshooting, version control