-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ci: Resolve SonarCloud warnings #7119
Conversation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #7119 +/- ##
=======================================
Coverage 32.84% 32.84%
=======================================
Files 1001 1001
Lines 26780 26780
Branches 2118 2118
=======================================
Hits 8797 8797
Misses 17559 17559
Partials 424 424 ☔ View full report in Codecov by Sentry. |
f546274
to
fd19492
Compare
SonarCloud reports currently have two warnings on them: one about not being able to find `main`, the other about detecting a shallow clone. These are both caused by the same problem: the GitHub Action workflow that runs SonarCloud is doing a shallow clone of just the pull request branch. This workflow has been updated to perform a full checkout, including git history for all branches. This should provide the SonarCloud action with all of the information it needs to analyze the pull request, resolving both of these warnings.
fd19492
to
f09a8c1
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Development & PR Process
release-xx
label to identify the PR slated for a upcoming release (will be used in release discussion)needs-dev-review
label when work is completedneeds-qa
: PR requires manual QA.No QA/E2E only
: PR does not require any manual QA effort. Prior to merging, ensure that you have successful end-to-end test runs in Bitrise.Spot check on release build
: PR does not require feature QA but needs non-automated verification. In the description section, provide test scenarios. Add screenshots, and or recordings of what was tested.QA Passed
label when QA has signed off (Only required if the PR was labeled withneeds-qa
)team-
(orexternal-contributor
label if your not a MetaMask employee)Description
SonarCloud reports currently have two warnings on them: one about not being able to find
main
, the other about detecting a shallow clone. These are both caused by the same problem: the GitHub Action workflow that runs SonarCloud is doing a shallow clone of just the pull request branch.This workflow has been updated to perform a full checkout, including git history for all branches. This should provide the SonarCloud action with all of the information it needs to analyze the pull request, resolving both of these warnings.
The Java warning requires an update to the SonarCloud GitHub Action, which requires a change to our organization policy, so that will have to wait for a future PR.
Screenshots/Recordings
Before:
After:
Issue
No related issue
Checklist