IHTSDO / release-validation-framework

API for testing a SNOMED CT release as part of the release process.
Other
8 stars 14 forks source link

Whitelist check failing #67

Open dewansh15025 opened 4 months ago

dewansh15025 commented 4 months ago

I was trying to manually build rvf and was successful in building version 4.1.0 . I tried to run a sample rvf which i had earlier tested on previous release with docker based deployment , But program threw error. And program finished in failed state.

`20240712_17:55:18 INFO org.ihtsdo.rvf.core.service.AssertionExecutionService.executeTest - TestRunItem{assertionUuid=4572d730-7d08-11e1-b0c4-0800200c9a66'assertionText=No Concept has 2 inferred relationships with the same type, destination and group.'executionId=null'testCategory=component-centric-validation'testType=null'runTime=15056'failureCount=-1} 20240712_17:55:18 INFO org.ihtsdo.rvf.core.service.AssertionExecutionService.executeUpdateStatement - Executing drop table if exists rvf_int_20240715_12072024_combined.act_inferred_isa statement: 20240712_17:55:18 INFO org.ihtsdo.rvf.core.service.AssertionExecutionService.executeUpdateStatement - Completed in 85ms, result = 0 20240712_17:55:18 INFO org.ihtsdo.rvf.core.service.AssertionExecutionService.executeUpdateStatement - Executing create table if not exists rvf_int_20240715_12072024_combined.act_inferred_isa (INDEX(sourceid)) as select sourceid from rvf_int_20240715_12072024_combined.relationship_s where active = '1' and typeid = 116680003 statement: 20240712_17:55:34 INFO org.ihtsdo.rvf.core.service.AssertionExecutionService.executeUpdateStatement - Completed in 16263ms, result = 862225 20240712_17:55:34 INFO org.ihtsdo.rvf.core.service.AssertionExecutionService.executeUpdateStatement - Executing insert into rvf_master.qa_result (run_id, assertion_id, concept_id, details, component_id, table_name) select 12072024, '226', a.id, concat('CONCEPT: id=',a.id, ': Concept does not have an inferred is-a relationship.'), a.id, 'rvf_int_20240715_12072024_combined.concept_s' from rvf_int_20240715_12072024_combined.concept_s a left join rvf_int_20240715_12072024_combined.act_inferred_isa b on a.id = b.sourceid where a.active = '1' and b.sourceid is null and a.id != 138875005 statement: 20240712_17:55:36 INFO org.ihtsdo.rvf.core.service.AssertionExecutionService.executeUpdateStatement - Completed in 2234ms, result = 0 20240712_17:55:36 INFO org.ihtsdo.rvf.core.service.AssertionExecutionService.executeUpdateStatement - Executing drop table if exists rvf_int_20240715_12072024_combined.act_inferred_isa statement: 20240712_17:55:37 INFO org.ihtsdo.rvf.core.service.AssertionExecutionService.executeUpdateStatement - Completed in 604ms, result = 0 20240712_17:55:37 INFO org.ihtsdo.rvf.core.service.AssertionExecutionService.executeTest - TestRunItem{assertionUuid=3ab84230-7d08-11e1-b0c4-0800200c9a66'assertionText=All concepts have at least one inferred is-a relationship.'executionId=null'testCategory=component-centric-validation'testType=null'runTime=19187'failureCount=-1} 20240712_17:55:37 INFO org.ihtsdo.rvf.core.service.AssertionExecutionService.executeUpdateStatement - Executing insert into rvf_master.qa_result (run_id, assertion_id, concept_id, details, component_id, table_name) select 12072024, '166', a.referencedcomponentid, concat('ASSOC RS: id=',a.id, ':Non unique id in current release file.'), a.id, 'rvf_int_20240715_12072024_combined.associationrefset_s' from rvf_int_20240715_12072024_combined.associationrefset_s a group by a.id having count(a.id) > 1 statement: 20240712_17:55:38 INFO org.ihtsdo.rvf.core.service.AssertionExecutionService.executeUpdateStatement - Completed in 916ms, result = 0 20240712_17:55:38 INFO org.ihtsdo.rvf.core.service.AssertionExecutionService.executeUpdateStatement - Executing commit statement: 20240712_17:55:38 INFO org.ihtsdo.rvf.core.service.AssertionExecutionService.executeUpdateStatement - Completed in 1ms, result = 0 20240712_17:55:38 INFO org.ihtsdo.rvf.core.service.AssertionExecutionService.executeTest - TestRunItem{assertionUuid=18a9f6b4-b66f-4af3-8c67-2a07b4655d27'assertionText=ID is unique in the ASSOCIATION REFSET snapshot.'executionId=null'testCategory=file-centric-validation'testType=null'runTime=917'failureCount=-1} 20240712_17:55:40 ERROR org.ihtsdo.rvf.core.service.ValidationRunner.run - Exception thrown, writing as result java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: URI is not absolute at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) at org.ihtsdo.rvf.core.service.ValidationRunner.doRunValidations(ValidationRunner.java:167) at org.ihtsdo.rvf.core.service.ValidationRunner.runValidations(ValidationRunner.java:105) at org.ihtsdo.rvf.core.service.ValidationRunner.run(ValidationRunner.java:68) at org.ihtsdo.rvf.core.messaging.ValidationMessageListener.runValidation(ValidationMessageListener.java:60) at org.ihtsdo.rvf.core.messaging.ValidationMessageListener.processMessage(ValidationMessageListener.java:45) 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.springframework.messaging.handler.invocation.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:169) at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:119) at org.springframework.jms.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(MessagingMessageListenerAdapter.java:114) at org.springframework.jms.listener.adapter.MessagingMessageListenerAdapter.onMessage(MessagingMessageListenerAdapter.java:77) at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:736) at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:696) at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:674) at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:331) at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:270) at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1237) at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1227) at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:1120) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: java.lang.IllegalArgumentException: URI is not absolute at java.base/java.net.URL.fromURI(URL.java:692) at java.base/java.net.URI.toURL(URI.java:1116) at org.springframework.http.client.SimpleClientHttpRequestFactory.createRequest(SimpleClientHttpRequestFactory.java:145) at org.springframework.http.client.support.HttpAccessor.createRequest(HttpAccessor.java:124) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:778) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:717) at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:608) at org.ihtsdo.otf.rest.client.ims.IMSRestClient.login(IMSRestClient.java:59) at org.ihtsdo.rvf.core.service.whitelist.AcceptanceGatewayClient.createClient(AcceptanceGatewayClient.java:58) at org.ihtsdo.rvf.core.service.whitelist.AcceptanceGatewayClientFactory.getClient(AcceptanceGatewayClientFactory.java:46) at org.ihtsdo.rvf.core.service.WhitelistService.checkComponentFailuresAgainstWhitelist(WhitelistService.java:33) at org.ihtsdo.rvf.core.service.MysqlFailuresExtractor.validateFailuresAndExtractTestResults(MysqlFailuresExtractor.java:115) at org.ihtsdo.rvf.core.service.MysqlFailuresExtractor.extractTestResults(MysqlFailuresExtractor.java:55) at org.ihtsdo.rvf.core.service.MysqlValidationService.constructTestReport(MysqlValidationService.java:227) at org.ihtsdo.rvf.core.service.MysqlValidationService.runExtensionReleaseValidation(MysqlValidationService.java:120) at org.ihtsdo.rvf.core.service.MysqlValidationService.runRF2MysqlValidations(MysqlValidationService.java:77) at org.ihtsdo.rvf.core.service.ValidationRunner.lambda$doRunValidations$0(ValidationRunner.java:137) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ... 1 more

`

kaicode commented 4 months ago

The RVF is attempting to connect to the Authoring Acceptance Gateway to check if content errors have been whitelisted.

When using the default configuration the aag.url property is blank, this blank value disables this AAG connection and skips the whitelist check.

Are you trying to use the AAG service? Can you check what value you have configured for the aag.url property?