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

[Bug][Module Name] Sonar qube data is not consistent #7450

Open
3 tasks done
naveenreddymanukonda opened this issue May 10, 2024 · 5 comments
Open
3 tasks done

[Bug][Module Name] Sonar qube data is not consistent #7450

naveenreddymanukonda opened this issue May 10, 2024 · 5 comments
Labels
severity/p2 This bug doesn’t affect the functionality or isn’t evident type/bug This issue is a bug

Comments

@naveenreddymanukonda
Copy link
Contributor

naveenreddymanukonda commented May 10, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

I'm noticing inconsistencies in the SonarQube data stored in cqissues. It seems like some data might be getting deleted after a week. I can't find information from a week ago, even though the screenshot shows values for April 29th and 19th. There's a gap in the data between those dates.

We are referring cqissues table

Where we did some pushes into Sonarqube.

image

What do you expect to happen

We need to have the data whenever we run the scan

How to reproduce

NA

Anything else

No response

Version

v1.0.0-beta6@ea2cdbc

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@naveenreddymanukonda naveenreddymanukonda added the type/bug This issue is a bug label May 10, 2024
@Startrekzky
Copy link
Contributor

Hi , did you conduct any scans during Aprile 19th and 29th?

@klesh klesh added the severity/p2 This bug doesn’t affect the functionality or isn’t evident label May 13, 2024
@Startrekzky
Copy link
Contributor

Hi @naveenreddymanukonda , the current logic for SonarQube is that:

Before collecting SonarQube's data, DevLake will clear the existing data for SonarQube, and then start collecting the new data.

The purpose is not to mix the data of multiple Sonar scans up.

@naveenreddymanukonda
Copy link
Contributor Author

@Startrekzky Can you explain how this works? Does it replace existing data for past days or for the same day? Also, if DevLake clears data, why did we have old data for a month?

@Startrekzky
Copy link
Contributor

@naveenreddymanukonda

  1. SonarQube's data is organized by scans.
  2. SonarQube's APIs can only be used to get the data for the last scan.

So, DevLake's SonarQube plugin will always collect the full data from SonarQube, which is the result of the last scan. But before that, we'll remove the existing data in DevLake's DB, the data might be the result of the previous Sonar scan.

@naveenreddymanukonda
Copy link
Contributor Author

naveenreddymanukonda commented May 16, 2024

@Startrekzky Let's save this scan data to track how defects are resolved over time. If we run SonarQube 10 times a day, we can just keep the latest record for that day.

Idea is to show this data in a trend chart.

Happy to discuss and contribute on this requirement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/p2 This bug doesn’t affect the functionality or isn’t evident type/bug This issue is a bug
Projects
None yet
Development

No branches or pull requests

3 participants