This is an automated email from the ASF dual-hosted git repository.
lewismc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nutch.git
The following commit(s) were added to refs/heads/master by this push:
new f1d3e8a29 NUTCH-3085 Augment CI by adding code coverage and code
quality reporting (#901)
f1d3e8a29 is described below
commit f1d3e8a290af74ba079cf3d8d95a3711eec2d220
Author: Lewis John McGibbney <[email protected]>
AuthorDate: Mon Feb 23 13:56:11 2026 -0800
NUTCH-3085 Augment CI by adding code coverage and code quality reporting
(#901)
---
.github/workflows/junit-report.yml | 4 +++-
.github/workflows/sonarcloud.yml | 7 ++++++-
sonar-project.properties | 20 ++++++++++++++++----
3 files changed, 25 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/junit-report.yml
b/.github/workflows/junit-report.yml
index 6665ec664..a1f5ff649 100644
--- a/.github/workflows/junit-report.yml
+++ b/.github/workflows/junit-report.yml
@@ -20,6 +20,8 @@ on:
types: [completed]
permissions:
checks: write
+ contents: read
+ issues: write
pull-requests: write
jobs:
checks:
@@ -54,7 +56,7 @@ jobs:
with:
report_paths: |-
./test/TEST-*.xml
- ./**/test/TEST-*.xml
+ ./*/**/test/TEST-*.xml
check_name: |-
JUnit Test Report
JUnit Test Report Plugins
diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml
index cb6208a8f..33af1af2e 100644
--- a/.github/workflows/sonarcloud.yml
+++ b/.github/workflows/sonarcloud.yml
@@ -41,7 +41,7 @@ jobs:
restore-keys: |
${{ runner.os }}-ivy-
- name: Compile (no tests)
- run: ant compile compile-plugins -buildfile build.xml
+ run: ant compile compile-plugins resolve-test -buildfile build.xml
- name: Download coverage data
uses: dawidd6/action-download-artifact@v11
with:
@@ -58,6 +58,11 @@ jobs:
run_id: ${{ github.event.workflow_run.id }}
path: ./build/test/
continue-on-error: true
+ - name: Flatten test reports
+ run: |
+ mkdir -p ./build/test-reports
+ find ./build/test -name 'TEST-*.xml' -exec cp {}
./build/test-reports/ \;
+ continue-on-error: true
- name: Generate JaCoCo XML report
run: ant jacoco-report -buildfile build.xml
continue-on-error: true
diff --git a/sonar-project.properties b/sonar-project.properties
index e39a2b892..c8d7c8024 100644
--- a/sonar-project.properties
+++ b/sonar-project.properties
@@ -16,16 +16,28 @@
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.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.tests=src/test,src/plugin
-sonar.test.inclusions=**/src/test/**/*.java,**/Test*.java
+sonar.test.inclusions=**/src/test/**/*.java,**/Test*.java,**/*IT.java
+sonar.exclusions=**/build.xml,**/build-ivy.xml,**/build-plugin.xml,**/ivy.xml,**/plugin.xml
sonar.source.encoding=UTF-8
sonar.java.source=17
-sonar.java.binaries=build/classes,build/plugins
-sonar.java.test.binaries=build/test/classes
+sonar.java.binaries=build/classes,build/*/classes
+sonar.java.test.binaries=build/test/classes,build/*/test
sonar.java.libraries=build/lib/*.jar
+sonar.java.test.libraries=build/test/lib/*.jar
+
+sonar.cpd.exclusions=**/package-info.java
+sonar.scm.exclusions.disabled=false
sonar.coverage.jacoco.xmlReportPaths=build/coverage/jacoco.xml
-sonar.junit.reportPaths=build/test
+sonar.junit.reportPaths=build/test-reports