Skip to content

Add LLM reporter + coverage and lint reports#33

Merged
chudilka1 merged 9 commits into
mainfrom
chore/CAPPL-124-Audit-CI
Oct 23, 2024
Merged

Add LLM reporter + coverage and lint reports#33
chudilka1 merged 9 commits into
mainfrom
chore/CAPPL-124-Audit-CI

Conversation

@chudilka1

Copy link
Copy Markdown
Contributor

No description provided.

@chudilka1 chudilka1 force-pushed the chore/CAPPL-124-Audit-CI branch 30 times, most recently from 56c5a56 to 9449db8 Compare October 18, 2024 15:09
@chudilka1 chudilka1 force-pushed the chore/CAPPL-124-Audit-CI branch 4 times, most recently from f0b59bb to d85b5f7 Compare October 22, 2024 10:32
@chudilka1 chudilka1 requested a review from agparadiso October 22, 2024 11:19
@chudilka1 chudilka1 force-pushed the chore/CAPPL-124-Audit-CI branch from d85b5f7 to dff3f8f Compare October 22, 2024 11:26
Comment thread .github/workflows/CI.yaml
sonarqube:
name: SonarQube Scan
needs: [test, lint]
if: ${{ always() && github.actor != 'dependabot[bot]' }}

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.

  1. Don't you want to skip it if no test and lint tasks were performed?
  2. We don't have dependabot so we don't need a condition for it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

  1. It runs its analysis, and if the test and lint are skipped or failed, SonarQube's Quality Gate will serve as the other sign to pay attention to.
  2. Removed dependabot.

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.

If tests and lints are skipped, we don't want to run the scan, right? IIUC, we only want to run it if the tasks pass or fail.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

SonarQube has its scanning engine, which is helpful independently of other workflow results. An engineer might want to collect as much information about all the fails in one run instead of failing fast and then rerunning the workflows each time after a fix to determine whether Sonar also throws any errors. IMHO, it is more flexible and cost-efficient.

@DeividasK DeividasK Oct 23, 2024

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.

If lint and test are skipped, there are no affected projects (for example only the README.md file was changed), which means there's no point in running the SonarQube.

Comment thread cron/project.json Outdated
Comment thread sonar-project.properties
Comment thread sonar-project.properties
Comment thread .github/workflows/llm-action-error-reporter.yml
Comment thread .github/workflows/llm-action-error-reporter.yml
@chudilka1 chudilka1 force-pushed the chore/CAPPL-124-Audit-CI branch from dff3f8f to 78fc5f0 Compare October 22, 2024 12:31
@chudilka1 chudilka1 requested a review from DeividasK October 22, 2024 20:40
@chudilka1 chudilka1 added this pull request to the merge queue Oct 23, 2024
Merged via the queue into main with commit d3ebc1a Oct 23, 2024
@chudilka1 chudilka1 deleted the chore/CAPPL-124-Audit-CI branch October 23, 2024 08:09
cedric-cordenier pushed a commit that referenced this pull request Nov 19, 2024
* Add test and linting reports generation

* Add LLM Action Error Reporter workflow

* Add Golangci Lint report generation

* Add Go test report generation and uploading

* Add golangci lint report generation and uploading

* Integrate SonarQube

* Fix: rename libs/cll -> libs/cli in accordance to go.mod module name

* Update linter command: remove report generation from local runs

* Add sonar to nx sharedGlobals to run test when properties are changed
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