Skip to content

CodeQL

CodeQL #447

GitHub Actions / Quality Monitor failed Nov 12, 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:424)
	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:424)
	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.14.0 (#f3859fd)                     
--------------------------------------------------------------------------------
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",
    "icon" : "",
    "pattern" : "**/target/*-reports/TEST*.xml",
    "sourcePath" : "",
    "metric" : "",
    "displayName" : "Tests"
  } ],
  "failureImpact" : 0,
  "passedImpact" : 0,
  "skippedImpact" : 0,
  "successRateImpact" : 0,
  "failureRateImpact" : 0
}
Searching for Tests results matching file name pattern **/target/*-reports/TEST*.xml
- target/failsafe-reports/TEST-edu.hm.hafner.grading.github.GitHubAutoGradingRunnerDockerITest.xml: TESTS: 3
- target/failsafe-reports/TEST-edu.hm.hafner.grading.github.GitHubAutoGradingRunnerITest.xml: TESTS: 2
- target/surefire-reports/TEST-edu.hm.hafner.grading.github.GitHubAnnotationBuilderTest.xml: TESTS: 1
-> Tests Total: TESTS: 6
-> Tests Total: TESTS: 6 tests
=> Tests: 6 tests passed
=> Tests: 6 tests passed
================================================================================
Processing 2 coverage configuration(s)
Code Coverage Configuration:
{
  "id" : "coverage",
  "name" : "Code Coverage",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "jacoco",
    "name" : "Line Coverage",
    "icon" : "",
    "pattern" : "**/target/site/jacoco/jacoco.xml",
    "sourcePath" : "src/main/java",
    "metric" : "line",
    "displayName" : "Line Coverage"
  }, {
    "id" : "jacoco",
    "name" : "Branch Coverage",
    "icon" : "",
    "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: 45.28% (48/106)
-> Line Coverage Total: LINE: 45.28% (48/106)
=> Line Coverage: 45% (58 missed lines)
Searching for Branch Coverage results matching file name pattern **/target/site/jacoco/jacoco.xml
- target/site/jacoco/jacoco.xml: BRANCH: 31.25% (5/16)
-> Branch Coverage Total: BRANCH: 31.25% (5/16)
=> Branch Coverage: 31% (11 missed branches)
=> Code Coverage: 38% (69 missed items)
Mutation Coverage Configuration:
{
  "id" : "coverage",
  "name" : "Mutation Coverage",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "pit",
    "name" : "Mutation Coverage",
    "icon" : "",
    "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: 0.00% (0/39)
-> Mutation Coverage Total: MUTATION: 0.00% (0/39)
=> Mutation Coverage: 0% (39 survived mutations)
=> Mutation Coverage: 0% (39 survived mutations)
================================================================================
Processing 2 static analysis configuration(s)
Style Configuration:
{
  "id" : "style",
  "name" : "Style",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "checkstyle",
    "name" : "CheckStyle",
    "icon" : "",
    "pattern" : "**/target/**checkstyle-result.xml",
    "sourcePath" : "",
    "metric" : "",
    "displayName" : "CheckStyle"
  }, {
    "id" : "pmd",
    "name" : "PMD",
    "icon" : "",
    "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.14.0 (#f3859fd)

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:424)
	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:424)
	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.14.0 (#f3859fd)                     
--------------------------------------------------------------------------------
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",
    "icon" : "",
    "pattern" : "**/target/*-reports/TEST*.xml",
    "sourcePath" : "",
    "metric" : "",
    "displayName" : "Tests"
  } ],
  "failureImpact" : 0,
  "passedImpact" : 0,
  "skippedImpact" : 0,
  "successRateImpact" : 0,
  "failureRateImpact" : 0
}
Searching for Tests results matching file name pattern **/target/*-reports/TEST*.xml
- target/failsafe-reports/TEST-edu.hm.hafner.grading.github.GitHubAutoGradingRunnerDockerITest.xml: TESTS: 3
- target/failsafe-reports/TEST-edu.hm.hafner.grading.github.GitHubAutoGradingRunnerITest.xml: TESTS: 2
- target/surefire-reports/TEST-edu.hm.hafner.grading.github.GitHubAnnotationBuilderTest.xml: TESTS: 1
-> Tests Total: TESTS: 6
-> Tests Total: TESTS: 6 tests
=> Tests: 6 tests passed
=> Tests: 6 tests passed
================================================================================
Processing 2 coverage configuration(s)
Code Coverage Configuration:
{
  "id" : "coverage",
  "name" : "Code Coverage",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "jacoco",
    "name" : "Line Coverage",
    "icon" : "",
    "pattern" : "**/target/site/jacoco/jacoco.xml",
    "sourcePath" : "src/main/java",
    "metric" : "line",
    "displayName" : "Line Coverage"
  }, {
    "id" : "jacoco",
    "name" : "Branch Coverage",
    "icon" : "",
    "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: 45.28% (48/106)
-> Line Coverage Total: LINE: 45.28% (48/106)
=> Line Coverage: 45% (58 missed lines)
Searching for Branch Coverage results matching file name pattern **/target/site/jacoco/jacoco.xml
- target/site/jacoco/jacoco.xml: BRANCH: 31.25% (5/16)
-> Branch Coverage Total: BRANCH: 31.25% (5/16)
=> Branch Coverage: 31% (11 missed branches)
=> Code Coverage: 38% (69 missed items)
Mutation Coverage Configuration:
{
  "id" : "coverage",
  "name" : "Mutation Coverage",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "pit",
    "name" : "Mutation Coverage",
    "icon" : "",
    "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: 0.00% (0/39)
-> Mutation Coverage Total: MUTATION: 0.00% (0/39)
=> Mutation Coverage: 0% (39 survived mutations)
=> Mutation Coverage: 0% (39 survived mutations)
================================================================================
Processing 2 static analysis configuration(s)
Style Configuration:
{
  "id" : "style",
  "name" : "Style",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "checkstyle",
    "name" : "CheckStyle",
    "icon" : "",
    "pattern" : "**/target/**checkstyle-result.xml",
    "sourcePath" : "",
    "metric" : "",
    "displayName" : "CheckStyle"
  }, {
    "id" : "pmd",
    "name" : "PMD",
    "icon" : "",
    "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 48 in src/main/java/edu/hm/hafner/grading/github/GitHubAutoGradingRunner.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 40-48 are not covered by tests

Check warning on line 77 in src/main/java/edu/hm/hafner/grading/github/GitHubAutoGradingRunner.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 76-77 are not covered by tests

Check warning on line 90 in src/main/java/edu/hm/hafner/grading/github/GitHubAutoGradingRunner.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 85-90 are not covered by tests

Check warning on line 100 in src/main/java/edu/hm/hafner/grading/github/GitHubAutoGradingRunner.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 98-100 are not covered by tests

Check warning on line 151 in src/main/java/edu/hm/hafner/grading/github/GitHubAutoGradingRunner.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 109-151 are not covered by tests

Check warning on line 170 in src/main/java/edu/hm/hafner/grading/github/GitHubAutoGradingRunner.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 169-170 are not covered by tests

Check warning on line 44 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-44 are not covered by tests

Check warning on line 56 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 line

Line 56 is not covered by tests

Check warning on line 63 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 line

Line 63 is 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 81-92 are not covered by tests

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

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Partially covered line

Line 97 is only partially covered, one branch is missing

Check warning on line 103 in src/main/java/edu/hm/hafner/grading/github/GitHubAutoGradingRunner.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Partially covered line

Line 103 is only partially covered, one branch is missing

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

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Partially covered line

Line 59 is only partially covered, one branch is missing

Check warning on line 176 in src/main/java/edu/hm/hafner/grading/github/GitHubAutoGradingRunner.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 52-176 are not covered by tests

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

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Mutation survived

One mutation survived in line 49 (VoidMethodCallMutator)
Raw output
Survived mutations:
- removed call to edu/hm/hafner/util/FilteredLog::logInfo (org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator)

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

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Mutation survived

One mutation survived in line 50 (PrimitiveReturnsMutator)
Raw output
Survived mutations:
- replaced int return with 0 for edu/hm/hafner/grading/github/GitHubAnnotationsBuilder::getIntegerEnvironment (org.pitest.mutationtest.engine.gregor.mutators.returns.PrimitiveReturnsMutator)

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

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Mutation survived

One mutation survived in line 59 (NegateConditionalsMutator)
Raw output
Survived mutations:
- negated conditional (org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator)

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

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Mutation survived

One mutation survived in line 60 (VoidMethodCallMutator)
Raw output
Survived mutations:
- removed call to edu/hm/hafner/util/FilteredLog::logInfo (org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator)

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

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Mutation survived

One mutation survived in line 66 (PrimitiveReturnsMutator)
Raw output
Survived mutations:
- replaced int return with 0 for edu/hm/hafner/grading/github/GitHubAnnotationsBuilder::getIntegerEnvironmentWithDefault (org.pitest.mutationtest.engine.gregor.mutators.returns.PrimitiveReturnsMutator)

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

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Mutation survived

One mutation survived in line 71 (EmptyObjectReturnValsMutator)
Raw output
Survived mutations:
- replaced return value with "" for edu/hm/hafner/grading/github/GitHubAnnotationsBuilder::getEnv (org.pitest.mutationtest.engine.gregor.mutators.returns.EmptyObjectReturnValsMutator)

Check warning on line 44 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-44 are not covered by tests

Check warning on line 56 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 line

Line 56 is not covered by tests

Check warning on line 63 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 line

Line 63 is 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 84-87 are not covered by tests