Make analyzer timeout configurable - #749
Merged
Merged
Conversation
Co-authored-by: jackfirth <8175575+jackfirth@users.noreply.github.com>
Co-authored-by: jackfirth <8175575+jackfirth@users.noreply.github.com>
CopilotAI
changed the title
[WIP] Add configurable analyzer timeout in source-analyzeMake analyzer timeout configurableNov 9, 2025
jackfirth
marked this pull request as ready for review
November 9, 2025 18:24
Contributor
There was a problem hiding this comment.
Resyntax analyzed 6 files in this pull request and found no issues.
coveralls
commented
Nov 9, 2025
Pull Request Test Coverage Report for Build #320Details
💛 - Coveralls |
jackfirth
approved these changes
Nov 10, 2025
Uh oh!
There was an error while loading. Please reload this page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The expansion analyzer timeout was hardcoded at 10 seconds. This PR makes it configurable via CLI flags and test parameters, with a 100ms default for tests to keep them fast.
Changes
Core API
source-analyzenow requires#:timeout-msparameter (was hardcoded at 10000ms)resyntax-analyzeandresyntax-analyze-allaccept optional#:timeout-mswith 10000ms defaultCLI
--analyzer-timeout <ms>flag toresyntax analyzeandresyntax fixcommandsTest Infrastructure
current-analyzer-timeout-millisparameter (default: 100ms)@analyzer-timeout-millistest parameter fortest:,no-change-test:, andanalysis-test:casesExample
Command line:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.