[
https://issues.apache.org/jira/browse/NUTCH-3205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18105064#comment-18105064
]
ASF GitHub Bot commented on NUTCH-3205:
---------------------------------------
sebastian-nagel commented on code in PR #953:
URL: https://github.com/apache/nutch/pull/953#discussion_r3791282452
##########
sonar-project.properties:
##########
@@ -17,26 +17,27 @@ sonar.projectKey=apache_nutch
sonar.organization=apache
sonar.projectName=Apache Nutch
sonar.projectDescription=Apache Nutch is an extensible and scalable web
crawler and indexing framework built on Apache Hadoop.
-sonar.tags=apache,crawler,hadoop,search,indexing
+sonar.tags=apache,crawler,hadoop,search,indexing,nutch
sonar.links.homepage=https://nutch.apache.org
sonar.links.scm=https://github.com/apache/nutch
sonar.links.issue=https://issues.apache.org/jira/projects/NUTCH/issues
sonar.links.ci=https://github.com/apache/nutch/actions
-sonar.sources=src/java,src/plugin
+sonar.sources=src/java,src/plugin,src/bin
sonar.tests=src/test,src/plugin
sonar.test.inclusions=**/src/test/**/*.java,**/Test*.java,**/*IT.java
sonar.exclusions=**/build.xml,**/build-ivy.xml,**/build-plugin.xml,**/ivy.xml,**/plugin.xml,**/sample/**,**/data/**,**/logs/**
-sonar.source.encoding=UTF-8
+sonar.sourceEncoding=UTF-8
Review Comment:
Good catch.
> Improve SonarCloud analysis classpath, launcher coverage, version metadata,
> and scan workflow reliability
> ----------------------------------------------------------------------------------------------------------
>
> Key: NUTCH-3205
> URL: https://issues.apache.org/jira/browse/NUTCH-3205
> Project: Nutch
> Issue Type: Improvement
> Components: build, ci/cd
> Affects Versions: 1.23
> Reporter: Lewis John McGibbney
> Assignee: Lewis John McGibbney
> Priority: Major
> Fix For: 1.24
>
>
> SonarCloud master analysis for apache_nutch succeeds and the quality gate
> "Nutch Way" is correctly assigned, but the scanner log shows analysis-quality
> gaps that we should fix in-repo.
> Observed (e.g. Actions run 31868074956 / job 94972171475):
> - WARN: Unresolved imports/types during Java main and test analysis
> - WARN: Preview features detected (despite sonar.java.enablePreview=false;
> often accompanies unresolved types)
> - Project version reported as "not provided"
> - Incorrect property name sonar.source.encoding (should be
> sonar.sourceEncoding)
> - sonar.java.libraries only includes build/lib/*.jar, while plugin
> dependencies
> live under build/*/lib/*.jar (~200 jars in CI artifacts)
> - sonar.sources omits src/bin, so the nutch and crawl bash launchers are not
> analyzed under the shell quality profile
> - sonarcloud.yml download/flatten steps use continue-on-error: true, so a
> missing JaCoCo/JUnit/binary artifact can still produce a "successful" scan
> Note: "Nutch Way" is the quality GATE (already applied on SonarCloud). There
> is
> no "Nutch Way" quality PROFILE; profiles remain Sonar way. This issue does not
> change gate/profile association.
> Proposed changes:
> 1. Update sonar-project.properties: encoding key, version, tags, broader Java
> libraries/test libraries, coverage exclusions for package-info.java, and
> include src/bin in sonar.sources so nutch/crawl launchers are analyzed
> 2. Update .github/workflows/sonarcloud.yml: pass -Dsonar.projectVersion from
> default.properties; remove continue-on-error from artifact steps; add a
> preflight check that required inputs exist before scanning
--
This message was sent by Atlassian Jira
(v8.20.10#820010)