Microsoft patents system to find and fix bugs caused by code updates
Microsoft describes a method for tracking specific code changes in large computer systems to see if they cause performance drops. The system links these changes to detailed activity logs to identify problems and automatically takes steps to reduce the negative impact.
In the filing’s own words
The present disclosure relates to systems, methods, and computer-readable media for detecting and mitigation regression in a computer system. In particular, this disclosure relates to correlating changes to subroutines to log instances from a trace log and determining, based on these correlations, whether a subroutine or set of subroutines has caused a regression as a result of a change to the subroutine(s). The examples described herein involve determining which usage metrics are attributable to specific subroutine changes and detecting whether a regression has occurred. The disclosure further involves performing or causing to perform mitigation actions that reduce a negative impact of the regression as a result of the change(s) to the subroutine(s).
What exactly they claim (claim 1)
1. In a distributed computing network environment in which computing resources are executing subroutines, a method for mitigating regressions caused by code changes, the method comprising: registering a commit identifier for a subroutine based on a change that has been made to a program including the subroutine; obtaining a trace log for a plurality of subroutines running on one or more computing systems, the trace log including a plurality of log instances indicating usage metrics for action instances of the plurality of subroutines; associating a set of log instances from the trace log with the commit identifier for the subroutine based on a comparison of the registered commit identifier and the plurality of log instances from the trace log; determining, based on the usage metrics of the set of log instances that are associated with the commit identifier for the subroutine, that the change to the subroutine is correlated with a regression on the one or more computing systems; and performing a mitigation action to the subroutine to mitigate the regression and reduce a cumulative cost of the usage metrics of the associated log instances.
Facts
- Company
- Microsoft (Microsoft Technology Licensing, LLC)
- Official title
- DETECTING AND MITIGATING REGRESSIONS ASSOCIATED WITH CODE CHANGES
- Publication number
- US20260259819A1
- Application number
- 19067237
- Filed
- Feb 28, 2025
- Published
- Sep 3, 2026
- Inventors
- 5
- Claims
- 20
Classified under
G06F 11/3636 Physics & computingMore from Microsoft in AI & software
- Microsoft patents method to check AI answers against verified facts Oct 20, 2026
- Microsoft patents AI that presents PowerPoint slides for you Sep 3, 2026
- Microsoft patents method to check if LLM answers are based on real data Sep 10, 2026
- Microsoft patents system to blend multiple AI agents into one chat Oct 1, 2026
- Microsoft patents system that answers questions using your screen history Oct 15, 2026
Summaries are simplified from the filing’s own abstract and first claim. A patent filing is not a product announcement.
Patent data and drawings: U.S. Patent and Trademark Office (USPTO). Nebula is not affiliated with or endorsed by the USPTO.