Skip to content

Merge pull request #58 from uhafner/metrics #90

Merge pull request #58 from uhafner/metrics

Merge pull request #58 from uhafner/metrics #90

GitHub Actions / Quality Monitor failed Oct 28, 2024 in 0s

Quality Monitor

Partial score: 0/0

🚧 The grading has been aborted due to an error.

Exception

edu.hm.hafner.analysis.ParsingException: Input stream is not a PMD file.
	at edu.hm.hafner.analysis.parser.pmd.PmdParser.parseIssues(PmdParser.java:58)
	at edu.hm.hafner.analysis.parser.pmd.PmdParser.parse(PmdParser.java:32)
	at edu.hm.hafner.analysis.IssueParser.parseFile(IssueParser.java:69)
	at edu.hm.hafner.grading.FileSystemAnalysisReportFactory.create(FileSystemAnalysisReportFactory.java:32)
	at edu.hm.hafner.grading.AggregatedScore.gradeAnalysis(AggregatedScore.java:392)
	at edu.hm.hafner.grading.AutoGradingRunner.run(AutoGradingRunner.java:95)
	at edu.hm.hafner.grading.github.QualityMonitor.main(QualityMonitor.java:42)

Error Messages

Quality Monitor Errors:
An error occurred while grading
edu.hm.hafner.analysis.ParsingException: Input stream is not a PMD file.
	at edu.hm.hafner.analysis.parser.pmd.PmdParser.parseIssues(PmdParser.java:58)
	at edu.hm.hafner.analysis.parser.pmd.PmdParser.parse(PmdParser.java:32)
	at edu.hm.hafner.analysis.IssueParser.parseFile(IssueParser.java:69)
	at edu.hm.hafner.grading.FileSystemAnalysisReportFactory.create(FileSystemAnalysisReportFactory.java:32)
	at edu.hm.hafner.grading.AggregatedScore.gradeAnalysis(AggregatedScore.java:392)
	at edu.hm.hafner.grading.AutoGradingRunner.run(AutoGradingRunner.java:95)
	at edu.hm.hafner.grading.github.QualityMonitor.main(QualityMonitor.java:42)

Information Messages

--------------------------------------------------------------------------------
                    Start Quality Monitor 1.11.0 (#99404b7)                     
--------------------------------------------------------------------------------
No configuration provided (environment variable CONFIG not set), using default configuration
================================================================================
Processing 1 test configuration(s)
Tests Configuration:
{
  "id" : "tests",
  "name" : "Tests",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "test",
    "name" : "Tests",
    "pattern" : "**/target/*-reports/TEST*.xml",
    "sourcePath" : "",
    "metric" : "",
    "displayName" : "Tests"
  } ],
  "failureImpact" : 0,
  "passedImpact" : 0,
  "skippedImpact" : 0
}
Searching for Tests results matching file name pattern **/target/*-reports/TEST*.xml
- target/failsafe-reports/TEST-edu.hm.hafner.grading.github.QualityMonitorDockerITest.xml: TESTS: 3
- target/failsafe-reports/TEST-edu.hm.hafner.grading.github.QualityMonitorITest.xml: TESTS: 3
- target/surefire-reports/TEST-edu.hm.hafner.grading.github.QualityMonitorTest.xml: TESTS: 1
-> Tests Total: TESTS: 7
-> Tests Total: TESTS: 7 tests
=> Tests: 7 tests passed
=> Tests: 7 tests passed
================================================================================
Processing 2 coverage configuration(s)
Code Coverage Configuration:
{
  "id" : "coverage",
  "name" : "Code Coverage",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "jacoco",
    "name" : "Line Coverage",
    "pattern" : "**/target/site/jacoco/jacoco.xml",
    "sourcePath" : "src/main/java",
    "metric" : "line",
    "displayName" : "Line Coverage"
  }, {
    "id" : "jacoco",
    "name" : "Branch Coverage",
    "pattern" : "**/target/site/jacoco/jacoco.xml",
    "sourcePath" : "src/main/java",
    "metric" : "branch",
    "displayName" : "Branch Coverage"
  } ],
  "coveredPercentageImpact" : 0,
  "missedPercentageImpact" : 0,
  "mutationCoverage" : false
}
Searching for Line Coverage results matching file name pattern **/target/site/jacoco/jacoco.xml
- target/site/jacoco/jacoco.xml: LINE: 34.26% (37/108)
-> Line Coverage Total: LINE: 34.26% (37/108)
=> Line Coverage: 34% (71 missed lines)
Searching for Branch Coverage results matching file name pattern **/target/site/jacoco/jacoco.xml
- target/site/jacoco/jacoco.xml: BRANCH: 25.00% (4/16)
-> Branch Coverage Total: BRANCH: 25.00% (4/16)
=> Branch Coverage: 25% (12 missed branches)
=> Code Coverage: 29% (83 missed items)
Mutation Coverage Configuration:
{
  "id" : "coverage",
  "name" : "Mutation Coverage",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "pit",
    "name" : "Mutation Coverage",
    "pattern" : "**/target/pit-reports/mutations.xml",
    "sourcePath" : "src/main/java",
    "metric" : "mutation",
    "displayName" : "Mutation Coverage"
  } ],
  "coveredPercentageImpact" : 0,
  "missedPercentageImpact" : 0,
  "mutationCoverage" : true
}
Searching for Mutation Coverage results matching file name pattern **/target/pit-reports/mutations.xml
- target/pit-reports/mutations.xml: MUTATION: 2.50% (1/40)
-> Mutation Coverage Total: MUTATION: 2.50% (1/40)
=> Mutation Coverage: 3% (39 survived mutations)
=> Mutation Coverage: 3% (39 survived mutations)
================================================================================
Processing 2 static analysis configuration(s)
Style Configuration:
{
  "id" : "style",
  "name" : "Style",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "checkstyle",
    "name" : "CheckStyle",
    "pattern" : "**/target/**checkstyle-result.xml",
    "sourcePath" : "",
    "metric" : "",
    "displayName" : "CheckStyle"
  }, {
    "id" : "pmd",
    "name" : "PMD",
    "pattern" : "**/target/**pmd.xml",
    "sourcePath" : "",
    "metric" : "",
    "displayName" : "PMD"
  } ],
  "errorImpact" : 0,
  "highImpact" : 0,
  "normalImpact" : 0,
  "lowImpact" : 0
}
Searching for CheckStyle results matching file name pattern **/target/**checkstyle-result.xml
- target/checkstyle-java/checkstyle-result.xml: 0 warnings
- target/checkstyle-tests/checkstyle-result.xml: 0 warnings
- target/test-classes/checkstyle/checkstyle-result.xml: 1 warnings
-> CheckStyle Total: 1 warnings
=> CheckStyle: 1 warning (normal: 1)
Searching for PMD results matching file name pattern **/target/**pmd.xml
================================================================================
================================================================================

Created by Quality Monitor v1.11.0 (#99404b7)

Details

Partial score: 0/0

🚧 The grading has been aborted due to an error.

Exception

edu.hm.hafner.analysis.ParsingException: Input stream is not a PMD file.
	at edu.hm.hafner.analysis.parser.pmd.PmdParser.parseIssues(PmdParser.java:58)
	at edu.hm.hafner.analysis.parser.pmd.PmdParser.parse(PmdParser.java:32)
	at edu.hm.hafner.analysis.IssueParser.parseFile(IssueParser.java:69)
	at edu.hm.hafner.grading.FileSystemAnalysisReportFactory.create(FileSystemAnalysisReportFactory.java:32)
	at edu.hm.hafner.grading.AggregatedScore.gradeAnalysis(AggregatedScore.java:392)
	at edu.hm.hafner.grading.AutoGradingRunner.run(AutoGradingRunner.java:95)
	at edu.hm.hafner.grading.github.QualityMonitor.main(QualityMonitor.java:42)

Error Messages

Quality Monitor Errors:
An error occurred while grading
edu.hm.hafner.analysis.ParsingException: Input stream is not a PMD file.
	at edu.hm.hafner.analysis.parser.pmd.PmdParser.parseIssues(PmdParser.java:58)
	at edu.hm.hafner.analysis.parser.pmd.PmdParser.parse(PmdParser.java:32)
	at edu.hm.hafner.analysis.IssueParser.parseFile(IssueParser.java:69)
	at edu.hm.hafner.grading.FileSystemAnalysisReportFactory.create(FileSystemAnalysisReportFactory.java:32)
	at edu.hm.hafner.grading.AggregatedScore.gradeAnalysis(AggregatedScore.java:392)
	at edu.hm.hafner.grading.AutoGradingRunner.run(AutoGradingRunner.java:95)
	at edu.hm.hafner.grading.github.QualityMonitor.main(QualityMonitor.java:42)

Information Messages

--------------------------------------------------------------------------------
                    Start Quality Monitor 1.11.0 (#99404b7)                     
--------------------------------------------------------------------------------
No configuration provided (environment variable CONFIG not set), using default configuration
================================================================================
Processing 1 test configuration(s)
Tests Configuration:
{
  "id" : "tests",
  "name" : "Tests",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "test",
    "name" : "Tests",
    "pattern" : "**/target/*-reports/TEST*.xml",
    "sourcePath" : "",
    "metric" : "",
    "displayName" : "Tests"
  } ],
  "failureImpact" : 0,
  "passedImpact" : 0,
  "skippedImpact" : 0
}
Searching for Tests results matching file name pattern **/target/*-reports/TEST*.xml
- target/failsafe-reports/TEST-edu.hm.hafner.grading.github.QualityMonitorDockerITest.xml: TESTS: 3
- target/failsafe-reports/TEST-edu.hm.hafner.grading.github.QualityMonitorITest.xml: TESTS: 3
- target/surefire-reports/TEST-edu.hm.hafner.grading.github.QualityMonitorTest.xml: TESTS: 1
-> Tests Total: TESTS: 7
-> Tests Total: TESTS: 7 tests
=> Tests: 7 tests passed
=> Tests: 7 tests passed
================================================================================
Processing 2 coverage configuration(s)
Code Coverage Configuration:
{
  "id" : "coverage",
  "name" : "Code Coverage",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "jacoco",
    "name" : "Line Coverage",
    "pattern" : "**/target/site/jacoco/jacoco.xml",
    "sourcePath" : "src/main/java",
    "metric" : "line",
    "displayName" : "Line Coverage"
  }, {
    "id" : "jacoco",
    "name" : "Branch Coverage",
    "pattern" : "**/target/site/jacoco/jacoco.xml",
    "sourcePath" : "src/main/java",
    "metric" : "branch",
    "displayName" : "Branch Coverage"
  } ],
  "coveredPercentageImpact" : 0,
  "missedPercentageImpact" : 0,
  "mutationCoverage" : false
}
Searching for Line Coverage results matching file name pattern **/target/site/jacoco/jacoco.xml
- target/site/jacoco/jacoco.xml: LINE: 34.26% (37/108)
-> Line Coverage Total: LINE: 34.26% (37/108)
=> Line Coverage: 34% (71 missed lines)
Searching for Branch Coverage results matching file name pattern **/target/site/jacoco/jacoco.xml
- target/site/jacoco/jacoco.xml: BRANCH: 25.00% (4/16)
-> Branch Coverage Total: BRANCH: 25.00% (4/16)
=> Branch Coverage: 25% (12 missed branches)
=> Code Coverage: 29% (83 missed items)
Mutation Coverage Configuration:
{
  "id" : "coverage",
  "name" : "Mutation Coverage",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "pit",
    "name" : "Mutation Coverage",
    "pattern" : "**/target/pit-reports/mutations.xml",
    "sourcePath" : "src/main/java",
    "metric" : "mutation",
    "displayName" : "Mutation Coverage"
  } ],
  "coveredPercentageImpact" : 0,
  "missedPercentageImpact" : 0,
  "mutationCoverage" : true
}
Searching for Mutation Coverage results matching file name pattern **/target/pit-reports/mutations.xml
- target/pit-reports/mutations.xml: MUTATION: 2.50% (1/40)
-> Mutation Coverage Total: MUTATION: 2.50% (1/40)
=> Mutation Coverage: 3% (39 survived mutations)
=> Mutation Coverage: 3% (39 survived mutations)
================================================================================
Processing 2 static analysis configuration(s)
Style Configuration:
{
  "id" : "style",
  "name" : "Style",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "checkstyle",
    "name" : "CheckStyle",
    "pattern" : "**/target/**checkstyle-result.xml",
    "sourcePath" : "",
    "metric" : "",
    "displayName" : "CheckStyle"
  }, {
    "id" : "pmd",
    "name" : "PMD",
    "pattern" : "**/target/**pmd.xml",
    "sourcePath" : "",
    "metric" : "",
    "displayName" : "PMD"
  } ],
  "errorImpact" : 0,
  "highImpact" : 0,
  "normalImpact" : 0,
  "lowImpact" : 0
}
Searching for CheckStyle results matching file name pattern **/target/**checkstyle-result.xml
- target/checkstyle-java/checkstyle-result.xml: 0 warnings
- target/checkstyle-tests/checkstyle-result.xml: 0 warnings
- target/test-classes/checkstyle/checkstyle-result.xml: 1 warnings
-> CheckStyle Total: 1 warnings
=> CheckStyle: 1 warning (normal: 1)
Searching for PMD results matching file name pattern **/target/**pmd.xml
================================================================================
================================================================================

Annotations

Check warning on line 43 in src/main/java/edu/hm/hafner/grading/github/QualityMonitor.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 42-43 are not covered by tests

Check warning on line 84 in src/main/java/edu/hm/hafner/grading/github/QualityMonitor.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 83-84 are not covered by tests

Check warning on line 97 in src/main/java/edu/hm/hafner/grading/github/QualityMonitor.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 92-97 are not covered by tests

Check warning on line 107 in src/main/java/edu/hm/hafner/grading/github/QualityMonitor.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 105-107 are not covered by tests

Check warning on line 158 in src/main/java/edu/hm/hafner/grading/github/QualityMonitor.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 116-158 are not covered by tests

Check warning on line 178 in src/main/java/edu/hm/hafner/grading/github/QualityMonitor.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 177-178 are not covered by tests

Check warning on line 92 in src/main/java/edu/hm/hafner/grading/github/GitHubAnnotationsBuilder.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 28-92 are not covered by tests

Check warning on line 104 in src/main/java/edu/hm/hafner/grading/github/QualityMonitor.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Partially covered line

Line 104 is only partially covered, one branch is missing

Check warning on line 110 in src/main/java/edu/hm/hafner/grading/github/QualityMonitor.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Partially covered line

Line 110 is only partially covered, one branch is missing

Check warning on line 59 in src/main/java/edu/hm/hafner/grading/github/QualityMonitor.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered line

Line 59 is not covered by tests

Check warning on line 184 in src/main/java/edu/hm/hafner/grading/github/QualityMonitor.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 72-184 are not covered by tests

Check warning on line 87 in src/main/java/edu/hm/hafner/grading/github/GitHubAnnotationsBuilder.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 39-87 are not covered by tests