Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analysis incident Limit setting does not limit the number of incidents #442

Open
sshveta opened this issue Mar 11, 2025 · 2 comments
Open
Labels
bug Something isn't working priority/minor triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@sshveta
Copy link

sshveta commented Mar 11, 2025

I changed the default incident limit from 10000 to 5 or 7 . That did not limit the number of incidents . Analysis showed standard 19 incidents each time .

Image

Image

@sshveta
Copy link
Author

sshveta commented Mar 11, 2025

logs 
=============
ai rpc server has been spawned! [1099302]
Added request callback: echo
Added request callback: shutdown
Added request callback: exit
Added request callback: initialize
Added request callback: setConfig
Added request callback: analysis_engine.Analyze
Added request callback: testRCM
Added request callback: getCodeplanAgentSolution
waited 30000ms for the kai rpc server to be ready, continuing anyway
kai rpc server successfully started [pid: 1099302]
serverState change from [starting] to [readyToInitialize]
serverState change from [readyToInitialize] to [initializing]
Sending 'initialize' request: {"rootPath":"/home/sshveta/Work/applications/tackle-testapp-public","modelProvider":{"provider":"ChatOpenAI","args":{"model":"gpt-4o"}},"logConfig":{"logLevel":"ERROR","fileLogLevel":"ERROR","logDirPath":"/home/sshveta/Work/applications/tackle-testapp-public/.vscode/konveyor-logs"},"demoMode":false,"cacheDir":null,"traceEnabled":true,"analyzerLspRpcPath":"/home/sshveta/.vscode/extensions/konveyor.konveyor-ai-0.1.0-pre.2/assets/kai/linux-x64/kai-analyzer-rpc","analyzerLspLspPath":"/home/sshveta/.vscode/extensions/konveyor.konveyor-ai-0.1.0-pre.2/assets/jdtls/bin/jdtls","analyzerLspRulesPaths":["/home/sshveta/.vscode/extensions/konveyor.konveyor-ai-0.1.0-pre.2/assets/rulesets"],"analyzerLspJavaBundlePaths":["/home/sshveta/.vscode/extensions/konveyor.konveyor-ai-0.1.0-pre.2/assets/jdtls-bundles/java-analyzer-bundle/java-analyzer-bundle.core/target/java-analyzer-bundle.core-1.0.0-SNAPSHOT.jar"],"analyzerLspDepLabelsPath":"/home/sshveta/.vscode/extensions/konveyor.konveyor-ai-0.1.0-pre.2/assets/opensource-labels-file/maven.default.index","analyzerLspExcludedPaths":["/home/sshveta/Work/applications/tackle-testapp-public/.git/","/home/sshveta/Work/applications/tackle-testapp-public/.vscode/","/home/sshveta/Work/applications/tackle-testapp-public/target/"]}
'initialize' response: {"processId":null,"rootPath":"/home/sshveta/Work/applications/tackle-testapp-public","modelProvider":{"provider":"ChatOpenAI","args":{"model":"gpt-4o"},"template":null,"llama_header":null,"llm_retries":5,"llm_retry_delay":10},"logConfig":{"logLevel":"ERROR","stderrLogLevel":"TRACE","fileLogLevel":"ERROR","logDirPath":"/home/sshveta/Work/applications/tackle-testapp-public/.vscode/konveyor-logs","logFileName":"kai_server.log"},"demoMode":false,"cacheDir":"/tmp/_MEIjMWn2H/data/llm_cache","traceEnabled":true,"failOnCacheMismatch":false,"enableReflection":true,"analyzerLspLspPath":"/home/sshveta/.vscode/extensions/konveyor.konveyor-ai-0.1.0-pre.2/assets/jdtls/bin/jdtls","analyzerLspRpcPath":"/home/sshveta/.vscode/extensions/konveyor.konveyor-ai-0.1.0-pre.2/assets/kai/linux-x64/kai-analyzer-rpc","analyzerLspRulesPaths":["/home/sshveta/.vscode/extensions/konveyor.konveyor-ai-0.1.0-pre.2/assets/rulesets"],"analyzerLspJavaBundlePaths":["/home/sshveta/.vscode/extensions/konveyor.konveyor-ai-0.1.0-pre.2/assets/jdtls-bundles/java-analyzer-bundle/java-analyzer-bundle.core/target/java-analyzer-bundle.core-1.0.0-SNAPSHOT.jar"],"analyzerLspLabelSelector":"","analyzerLspDepLabelsPath":"/home/sshveta/.vscode/extensions/konveyor.konveyor-ai-0.1.0-pre.2/assets/opensource-labels-file/maven.default.index","analyzerLspExcludedPaths":["/home/sshveta/Work/applications/tackle-testapp-public/.git","/home/sshveta/Work/applications/tackle-testapp-public/.vscode","/home/sshveta/Work/applications/tackle-testapp-public/target"]}
kai rpc server is initialized!
serverState change from [initializing] to [running]
Sending 'analysis_engine.Analyze' request with params: {"label_selector":"(konveyor.io/target=cloud-readiness || konveyor.io/target=quarkus) || (discovery)","reset_cache":true}
Response received. Summary: {"wellFormed":true,"rawIncidentCount":19,"incidentCount":19,"partialAnalysis":{}}

@sshveta sshveta added the bug Something isn't working label Mar 11, 2025
@sjd78
Copy link
Member

sjd78 commented Mar 12, 2025

Requires konveyor/kai#550

// TODO: Once konveyor/kai#550 is resolved, analyzer configurations can be supported
// analyzerIncidentLimit: getConfigIncidentLimit(),
// analyzerContextLines: getConfigContextLines(),
// analyzerCodeSnipLimit: getConfigCodeSnipLimit(),
// analyzerAnalyzeKnownLibraries: getConfigAnalyzeKnownLibraries(),
// analyzerAnalyzeDependencies: getConfigAnalyzeDependencies(),

@djzager djzager added the triage/accepted Indicates an issue or PR is ready to be actively worked on. label Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority/minor triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
Status: No status
Development

No branches or pull requests

3 participants