Skip to content

NEW @W-21741487@ - Implement ApexGuru Engine Package in Code Analyzer Core Repository#448

Merged
nikhil-mittal-165 merged 13 commits intodevfrom
feature/apexguru-static
Apr 14, 2026
Merged

NEW @W-21741487@ - Implement ApexGuru Engine Package in Code Analyzer Core Repository#448
nikhil-mittal-165 merged 13 commits intodevfrom
feature/apexguru-static

Conversation

@nikhil-mittal-165
Copy link
Copy Markdown
Contributor

@nikhil-mittal-165 nikhil-mittal-165 commented Apr 8, 2026

@git2gus
Copy link
Copy Markdown

git2gus bot commented Apr 8, 2026

Git2Gus App is installed but the .git2gus/config.json doesn't have right values. You should add the required configuration.

@nikhil-mittal-165 nikhil-mittal-165 changed the title apex guru changes single file scan with static mode NEW @W-21741487@ - Implement ApexGuru Engine Package in Code Analyzer Core Repository Apr 10, 2026
@nikhil-mittal-165
Copy link
Copy Markdown
Contributor Author

Ignore apexGuruAuthService for now as this is tested on hardcoded tokens we will be taking auth dev in subsequent PRs

// TODO: This destroys process-wide HTTP agents, which could interfere with
// concurrent HTTP work in the Code Analyzer process. We should investigate
// using custom agents specific to ApexGuru's Connection and destroy only
// those agents instead of the global ones. For now, this approach works
Copy link
Copy Markdown
Contributor

@namrata111f namrata111f Apr 13, 2026

Choose a reason for hiding this comment

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

Can we discuss or add here itself: What can be the side-effects of doing this?

let attempts = 0;

while (true) {
if (this.isCancelled) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We are not setting is value of isCancelled inside this loop? How will the request timeout?

Comment on lines +103 to +109
const response = await connection.request({
method: 'GET',
url
}) as { status?: string };

if (response.status && response.status.toLowerCase() === ApexGuruResponseStatus.SUCCESS) {
return;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we have a separate file with boilerplate code for making the HTTP requests? If not as part of this PR we can add later on. But this looks like something which can be reused.

@nikhil-mittal-165 nikhil-mittal-165 merged commit 8685df5 into dev Apr 14, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants