Skip to content

[WIP] Calculate KPI Hierarchy #39

[WIP] Calculate KPI Hierarchy

[WIP] Calculate KPI Hierarchy #39

GitHub Actions / JUnit Test Report failed Sep 21, 2024 in 0s

24 tests run, 20 passed, 0 skipped, 4 failed.

Annotations

Check failure on line 143 in spha-cli/src/test/kotlin/de/fraunhofer/iem/spha/cli/commands/CalculateKpiCommandTest.kt

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

CalculateKpiCommandTest.testCalculate_CustomHierarchy()

kotlinx.serialization.SerializationException: Serializer for subclass 'Empty' is not found in the polymorphic scope of 'KpiCalculationResult'.
Check if class with serial name 'Empty' exists and serializer is registered in a corresponding SerializersModule.
To be registered automatically, class 'Empty' has to be '@Serializable', and the base class 'KpiCalculationResult' has to be sealed and '@Serializable'.
Raw output
kotlinx.serialization.SerializationException: Serializer for subclass 'Empty' is not found in the polymorphic scope of 'KpiCalculationResult'.
Check if class with serial name 'Empty' exists and serializer is registered in a corresponding SerializersModule.
To be registered automatically, class 'Empty' has to be '@Serializable', and the base class 'KpiCalculationResult' has to be sealed and '@Serializable'.
	at kotlinx.serialization.internal.AbstractPolymorphicSerializerKt.throwSubtypeNotRegistered(AbstractPolymorphicSerializer.kt:102)
	at kotlinx.serialization.internal.AbstractPolymorphicSerializerKt.throwSubtypeNotRegistered(AbstractPolymorphicSerializer.kt:114)
	at kotlinx.serialization.PolymorphicSerializerKt.findPolymorphicSerializer(PolymorphicSerializer.kt:109)
	at kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeSerializableValue(StreamingJsonEncoder.kt:250)
	at kotlinx.serialization.encoding.AbstractEncoder.encodeSerializableElement(AbstractEncoder.kt:80)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultNode.write$Self$model(KpiResultHierarchy.kt:25)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultNode$$serializer.serialize(KpiResultHierarchy.kt:25)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultNode$$serializer.serialize(KpiResultHierarchy.kt:25)
	at kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeSerializableValue(StreamingJsonEncoder.kt:257)
	at kotlinx.serialization.encoding.AbstractEncoder.encodeSerializableElement(AbstractEncoder.kt:80)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultHierarchy.write$Self$model(KpiResultHierarchy.kt:16)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultHierarchy$$serializer.serialize(KpiResultHierarchy.kt:16)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultHierarchy$$serializer.serialize(KpiResultHierarchy.kt:16)
	at kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeSerializableValue(StreamingJsonEncoder.kt:257)
	at kotlinx.serialization.json.internal.JsonStreamsKt.encodeByWriter(JsonStreams.kt:99)
	at kotlinx.serialization.json.JvmStreamsKt.encodeToStream(JvmStreams.kt:25)
	at de.fraunhofer.iem.spha.cli.commands.CalculateKpiCommand.writeHierarchy(CalculateKpiCommand.kt:125)
	at de.fraunhofer.iem.spha.cli.commands.CalculateKpiCommand.run(CalculateKpiCommand.kt:64)
	at com.github.ajalt.clikt.parsers.Parser.finalizeAndRun(Parser.kt:348)
	at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:218)
	at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:42)
	at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:457)
	at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:461)
	at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:460)
	at com.github.ajalt.clikt.testing.CliktTestingKt.test(CliktTesting.kt:143)
	at com.github.ajalt.clikt.testing.CliktTestingKt.test(CliktTesting.kt:108)
	at com.github.ajalt.clikt.testing.CliktTestingKt.test(CliktTesting.kt:53)
	at com.github.ajalt.clikt.testing.CliktTestingKt.test$default(CliktTesting.kt:43)
	at de.fraunhofer.iem.spha.cli.commands.CalculateKpiCommandTest.testCalculate_CustomHierarchy(CalculateKpiCommandTest.kt:143)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

Check failure on line 108 in spha-cli/src/test/kotlin/de/fraunhofer/iem/spha/cli/commands/CalculateKpiCommandTest.kt

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

CalculateKpiCommandTest.testCalculate_ReadRawValuesFromFiles()

kotlinx.serialization.SerializationException: Serializer for subclass 'Success' is not found in the polymorphic scope of 'KpiCalculationResult'.
Check if class with serial name 'Success' exists and serializer is registered in a corresponding SerializersModule.
To be registered automatically, class 'Success' has to be '@Serializable', and the base class 'KpiCalculationResult' has to be sealed and '@Serializable'.
Raw output
kotlinx.serialization.SerializationException: Serializer for subclass 'Success' is not found in the polymorphic scope of 'KpiCalculationResult'.
Check if class with serial name 'Success' exists and serializer is registered in a corresponding SerializersModule.
To be registered automatically, class 'Success' has to be '@Serializable', and the base class 'KpiCalculationResult' has to be sealed and '@Serializable'.
	at kotlinx.serialization.internal.AbstractPolymorphicSerializerKt.throwSubtypeNotRegistered(AbstractPolymorphicSerializer.kt:102)
	at kotlinx.serialization.internal.AbstractPolymorphicSerializerKt.throwSubtypeNotRegistered(AbstractPolymorphicSerializer.kt:114)
	at kotlinx.serialization.PolymorphicSerializerKt.findPolymorphicSerializer(PolymorphicSerializer.kt:109)
	at kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeSerializableValue(StreamingJsonEncoder.kt:250)
	at kotlinx.serialization.encoding.AbstractEncoder.encodeSerializableElement(AbstractEncoder.kt:80)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultNode.write$Self$model(KpiResultHierarchy.kt:25)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultNode$$serializer.serialize(KpiResultHierarchy.kt:25)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultNode$$serializer.serialize(KpiResultHierarchy.kt:25)
	at kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeSerializableValue(StreamingJsonEncoder.kt:257)
	at kotlinx.serialization.encoding.AbstractEncoder.encodeSerializableElement(AbstractEncoder.kt:80)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultHierarchy.write$Self$model(KpiResultHierarchy.kt:16)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultHierarchy$$serializer.serialize(KpiResultHierarchy.kt:16)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultHierarchy$$serializer.serialize(KpiResultHierarchy.kt:16)
	at kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeSerializableValue(StreamingJsonEncoder.kt:257)
	at kotlinx.serialization.json.internal.JsonStreamsKt.encodeByWriter(JsonStreams.kt:99)
	at kotlinx.serialization.json.JvmStreamsKt.encodeToStream(JvmStreams.kt:25)
	at de.fraunhofer.iem.spha.cli.commands.CalculateKpiCommand.writeHierarchy(CalculateKpiCommand.kt:125)
	at de.fraunhofer.iem.spha.cli.commands.CalculateKpiCommand.run(CalculateKpiCommand.kt:64)
	at com.github.ajalt.clikt.parsers.Parser.finalizeAndRun(Parser.kt:348)
	at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:218)
	at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:42)
	at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:457)
	at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:461)
	at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:460)
	at com.github.ajalt.clikt.testing.CliktTestingKt.test(CliktTesting.kt:143)
	at com.github.ajalt.clikt.testing.CliktTestingKt.test(CliktTesting.kt:108)
	at com.github.ajalt.clikt.testing.CliktTestingKt.test(CliktTesting.kt:53)
	at com.github.ajalt.clikt.testing.CliktTestingKt.test$default(CliktTesting.kt:43)
	at de.fraunhofer.iem.spha.cli.commands.CalculateKpiCommandTest.testCalculate_ReadRawValuesFromFiles(CalculateKpiCommandTest.kt:108)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

Check failure on line 68 in spha-cli/src/test/kotlin/de/fraunhofer/iem/spha/cli/commands/CalculateKpiCommandTest.kt

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

CalculateKpiCommandTest.testCalculate_IgnoreIncompatibleFiles()

kotlinx.serialization.SerializationException: Serializer for subclass 'Success' is not found in the polymorphic scope of 'KpiCalculationResult'.
Check if class with serial name 'Success' exists and serializer is registered in a corresponding SerializersModule.
To be registered automatically, class 'Success' has to be '@Serializable', and the base class 'KpiCalculationResult' has to be sealed and '@Serializable'.
Raw output
kotlinx.serialization.SerializationException: Serializer for subclass 'Success' is not found in the polymorphic scope of 'KpiCalculationResult'.
Check if class with serial name 'Success' exists and serializer is registered in a corresponding SerializersModule.
To be registered automatically, class 'Success' has to be '@Serializable', and the base class 'KpiCalculationResult' has to be sealed and '@Serializable'.
	at kotlinx.serialization.internal.AbstractPolymorphicSerializerKt.throwSubtypeNotRegistered(AbstractPolymorphicSerializer.kt:102)
	at kotlinx.serialization.internal.AbstractPolymorphicSerializerKt.throwSubtypeNotRegistered(AbstractPolymorphicSerializer.kt:114)
	at kotlinx.serialization.PolymorphicSerializerKt.findPolymorphicSerializer(PolymorphicSerializer.kt:109)
	at kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeSerializableValue(StreamingJsonEncoder.kt:250)
	at kotlinx.serialization.encoding.AbstractEncoder.encodeSerializableElement(AbstractEncoder.kt:80)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultNode.write$Self$model(KpiResultHierarchy.kt:25)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultNode$$serializer.serialize(KpiResultHierarchy.kt:25)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultNode$$serializer.serialize(KpiResultHierarchy.kt:25)
	at kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeSerializableValue(StreamingJsonEncoder.kt:257)
	at kotlinx.serialization.encoding.AbstractEncoder.encodeSerializableElement(AbstractEncoder.kt:80)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultHierarchy.write$Self$model(KpiResultHierarchy.kt:16)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultHierarchy$$serializer.serialize(KpiResultHierarchy.kt:16)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultHierarchy$$serializer.serialize(KpiResultHierarchy.kt:16)
	at kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeSerializableValue(StreamingJsonEncoder.kt:257)
	at kotlinx.serialization.json.internal.JsonStreamsKt.encodeByWriter(JsonStreams.kt:99)
	at kotlinx.serialization.json.JvmStreamsKt.encodeToStream(JvmStreams.kt:25)
	at de.fraunhofer.iem.spha.cli.commands.CalculateKpiCommand.writeHierarchy(CalculateKpiCommand.kt:125)
	at de.fraunhofer.iem.spha.cli.commands.CalculateKpiCommand.run(CalculateKpiCommand.kt:64)
	at com.github.ajalt.clikt.parsers.Parser.finalizeAndRun(Parser.kt:348)
	at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:218)
	at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:42)
	at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:457)
	at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:461)
	at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:460)
	at com.github.ajalt.clikt.testing.CliktTestingKt.test(CliktTesting.kt:143)
	at com.github.ajalt.clikt.testing.CliktTestingKt.test(CliktTesting.kt:108)
	at com.github.ajalt.clikt.testing.CliktTestingKt.test(CliktTesting.kt:53)
	at com.github.ajalt.clikt.testing.CliktTestingKt.test$default(CliktTesting.kt:43)
	at de.fraunhofer.iem.spha.cli.commands.CalculateKpiCommandTest.testCalculate_IgnoreIncompatibleFiles(CalculateKpiCommandTest.kt:68)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

Check failure on line 165 in spha-cli/src/test/kotlin/de/fraunhofer/iem/spha/cli/commands/CalculateKpiCommandTest.kt

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

CalculateKpiCommandTest.testCalculate_Integration()

kotlinx.serialization.SerializationException: Serializer for subclass 'Incomplete' is not found in the polymorphic scope of 'KpiCalculationResult'.
Check if class with serial name 'Incomplete' exists and serializer is registered in a corresponding SerializersModule.
To be registered automatically, class 'Incomplete' has to be '@Serializable', and the base class 'KpiCalculationResult' has to be sealed and '@Serializable'.
Raw output
kotlinx.serialization.SerializationException: Serializer for subclass 'Incomplete' is not found in the polymorphic scope of 'KpiCalculationResult'.
Check if class with serial name 'Incomplete' exists and serializer is registered in a corresponding SerializersModule.
To be registered automatically, class 'Incomplete' has to be '@Serializable', and the base class 'KpiCalculationResult' has to be sealed and '@Serializable'.
	at kotlinx.serialization.internal.AbstractPolymorphicSerializerKt.throwSubtypeNotRegistered(AbstractPolymorphicSerializer.kt:102)
	at kotlinx.serialization.internal.AbstractPolymorphicSerializerKt.throwSubtypeNotRegistered(AbstractPolymorphicSerializer.kt:114)
	at kotlinx.serialization.PolymorphicSerializerKt.findPolymorphicSerializer(PolymorphicSerializer.kt:109)
	at kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeSerializableValue(StreamingJsonEncoder.kt:250)
	at kotlinx.serialization.encoding.AbstractEncoder.encodeSerializableElement(AbstractEncoder.kt:80)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultNode.write$Self$model(KpiResultHierarchy.kt:25)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultNode$$serializer.serialize(KpiResultHierarchy.kt:25)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultNode$$serializer.serialize(KpiResultHierarchy.kt:25)
	at kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeSerializableValue(StreamingJsonEncoder.kt:257)
	at kotlinx.serialization.encoding.AbstractEncoder.encodeSerializableElement(AbstractEncoder.kt:80)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultHierarchy.write$Self$model(KpiResultHierarchy.kt:16)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultHierarchy$$serializer.serialize(KpiResultHierarchy.kt:16)
	at de.fraunhofer.iem.kpiCalculator.model.kpi.hierarchy.KpiResultHierarchy$$serializer.serialize(KpiResultHierarchy.kt:16)
	at kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeSerializableValue(StreamingJsonEncoder.kt:257)
	at kotlinx.serialization.json.internal.JsonStreamsKt.encodeByWriter(JsonStreams.kt:99)
	at kotlinx.serialization.json.JvmStreamsKt.encodeToStream(JvmStreams.kt:25)
	at de.fraunhofer.iem.spha.cli.commands.CalculateKpiCommand.writeHierarchy(CalculateKpiCommand.kt:125)
	at de.fraunhofer.iem.spha.cli.commands.CalculateKpiCommand.run(CalculateKpiCommand.kt:64)
	at com.github.ajalt.clikt.parsers.Parser.finalizeAndRun(Parser.kt:348)
	at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:218)
	at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:42)
	at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:457)
	at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:461)
	at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:460)
	at com.github.ajalt.clikt.testing.CliktTestingKt.test(CliktTesting.kt:143)
	at com.github.ajalt.clikt.testing.CliktTestingKt.test(CliktTesting.kt:108)
	at com.github.ajalt.clikt.testing.CliktTestingKt.test(CliktTesting.kt:53)
	at com.github.ajalt.clikt.testing.CliktTestingKt.test$default(CliktTesting.kt:43)
	at de.fraunhofer.iem.spha.cli.commands.CalculateKpiCommandTest.testCalculate_Integration(CalculateKpiCommandTest.kt:165)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)