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

test: revert back to blanket sonar exclusion on spring-cloud-previews #1854

Merged
merged 1 commit into from
May 15, 2023

Conversation

emmileaf
Copy link
Contributor

@emmileaf emmileaf commented May 15, 2023

This PR reverts the sonar exclusion change from #1816 to unblock CI.

I must have missed something in the exclusion glob pattern, and sonar analysis failed on main after merge (details). Seems like the analysis is picking up on code from generated modules (new in last 30 days: google-cloud-dataproc-metastore-spring-starter) when they intend to be excluded.

Going to verify this configuration out a bit more on a branch and retry the change (or possibly relocate the tests as suggested).

@emmileaf emmileaf requested review from zhumin8 and meltsufin May 15, 2023 19:54
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@@ -75,7 +75,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<integration-test.pattern>**/*IntegrationTest*</integration-test.pattern>
<!-- exclude preview module code from sonar cloud analysis -->
<sonar.exclusions>spring-cloud-previews/!(google-cloud-language-spring-starter)/**</sonar.exclusions>
Copy link
Member

Choose a reason for hiding this comment

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

Maybe you needed to escape the - with \-?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh possibly...my other suspicion is that maybe /** only matches directories, and /**/* is still needed to match files?

Retrying this change in #1853, but will merge this revert for now. Thanks!

@emmileaf emmileaf merged commit 88a0477 into main May 15, 2023
@emmileaf emmileaf deleted the revert-sonar-exclusions-change branch May 15, 2023 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants