odpi / egeria

Egeria core
https://egeria-project.org
Apache License 2.0
795 stars 259 forks source link

[BUG] <title> Seeming error in the build #5602

Closed mandy-chessell closed 2 years ago

mandy-chessell commented 3 years ago

Is there an existing issue for this?

Current Behavior

I noticed the following messages in the build - however the test case is not failing:

[INFO] Running org.odpi.openmetadata.accessservices.subjectarea.server.mappers.graph.TestRelationshipTypeMapper
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.764 s - in org.odpi.openmetadata.accessservices.subjectarea.server.mappers.relationships.TestSynonymMapper
OMAGCheckedExceptionBase{reportedHTTPCode=400, reportingClassName='org.odpi.openmetadata.accessservices.subjectarea.server.mappers.graph.RelationshipTypeMapper', reportingActionDescription='operation', errorMessage='OMAS-SUBJECT-AREA-400-076 Cannot continue with the relationshipFilter operation because an invalid relationship name null was supplied in the filter', reportedSystemAction='The system is unable to process the request as it cannot identify the requested Relationship type.', reportedUserAction='Amend the code to supply only valid Relationship Types for the graph operation.', reportedCaughtException=null, relatedProperties=null}
    at org.odpi.openmetadata.accessservices.subjectarea.server.mappers.graph.RelationshipTypeMapper.mapOMASRelationshipTypeToOMRSRelationshipTypeGuid(RelationshipTypeMapper.java:40)
    at org.odpi.openmetadata.accessservices.subjectarea.server.mappers.graph.TestRelationshipTypeMapper.testMapOMASRelationshipTypeToOMRSRelationshipTypeGuid(TestRelationshipTypeMapper.java:16)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133)
    at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:598)
    at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
    at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
    at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824)
    at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
    at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
    at org.testng.TestRunner.privateRun(TestRunner.java:794)
    at org.testng.TestRunner.run(TestRunner.java:596)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:377)
    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:371)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:332)
    at org.testng.SuiteRunner.run(SuiteRunner.java:276)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1212)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1134)
    at org.testng.TestNG.runSuites(TestNG.java:1063)
    at org.testng.TestNG.run(TestNG.java:1031)
    at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:136)
    at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:112)
    at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeLazy(TestNGDirectoryTestSuite.java:123)
    at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:90)
    at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:145)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
    at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
    at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
OMAGCheckedExceptionBase{reportedHTTPCode=400, reportingClassName='org.odpi.openmetadata.accessservices.subjectarea.server.mappers.graph.RelationshipTypeMapper', reportingActionDescription='operation', errorMessage='OMAS-SUBJECT-AREA-400-076 Cannot continue with the relationshipFilter operation because an invalid relationship name Unknown was supplied in the filter', reportedSystemAction='The system is unable to process the request as it cannot identify the requested Relationship type.', reportedUserAction='Amend the code to supply only valid Relationship Types for the graph operation.', reportedCaughtException=null, relatedProperties=null}
    at org.odpi.openmetadata.accessservices.subjectarea.server.mappers.graph.RelationshipTypeMapper.mapOMASRelationshipTypeToOMRSRelationshipTypeGuid(RelationshipTypeMapper.java:75)
    at org.odpi.openmetadata.accessservices.subjectarea.server.mappers.graph.TestRelationshipTypeMapper.testMapOMASRelationshipTypeToOMRSRelationshipTypeGuid(TestRelationshipTypeMapper.java:24)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133)
    at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:598)
    at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
    at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
    at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824)
    at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
    at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
    at org.testng.TestRunner.privateRun(TestRunner.java:794)
    at org.testng.TestRunner.run(TestRunner.java:596)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:377)
    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:371)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:332)
    at org.testng.SuiteRunner.run(SuiteRunner.java:276)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1212)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1134)
    at org.testng.TestNG.runSuites(TestNG.java:1063)
    at org.testng.TestNG.run(TestNG.java:1031)
    at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:136)
    at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:112)
    at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeLazy(TestNGDirectoryTestSuite.java:123)
    at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:90)
    at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:145)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
    at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
    at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.344 s - in org.odpi.openmetadata.accessservices.subjectarea.server.mappers.graph.TestRelationshipTypeMapper

It is pointing to this code - IntelliJ identifies that the same test is on both branches ...

Screenshot 2021-08-18 at 09 57 54

Expected Behavior

Should not see errors in build

Steps To Reproduce

Run mvn clean install

Environment

- Egeria: master
- OS:
- Java:
- Browser (for UI issues):
- Additional connectors and integration:

Any Further Information?

David asked me to raise this

planetf1 commented 3 years ago

Worth checking both maven and gradle before/after any change. Whilst the actual test code is the same, the runners and configuration may vary

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 20 days if no further activity occurs. Thank you for your contributions.