Stream: IG creation
Topic: More verbose errors?
Mohammad Jafari (Mar 27 2020 at 18:26):
Is there a way to get a more verbose error from the CI build? I'm currently getting this which does not provide much context for resolving the issue.
class com.google.gson.JsonArray cannot be cast to class com.google.gson.JsonObject (com.google.gson.JsonArray and com.google.gson.JsonObject are in unnamed module of loader 'app') (00:14.0555)
http://build.fhir.org/ig/HL7/fhir-security-label-ds4p/branches/master/failure/build.log
Running the resource validation tool locally gives an entirely different error:
URL value <truncated> does not resolve
Grahame Grieve (Mar 27 2020 at 18:27):
what is the stack?
Jens Villadsen (Mar 27 2020 at 18:30):
You could try to turn up the logging a notch using https://confluence.hl7.org/display/FHIR/Implementation+Guide+Parameters
Mohammad Jafari (Mar 27 2020 at 18:33):
@Grahame Grieve Here is the link to the build log: http://build.fhir.org/ig/HL7/fhir-security-label-ds4p/branches/master/failure/build.log
Mohammad Jafari (Mar 27 2020 at 18:34):
@Jens Villadsen I'm looking for more logging and more verbosity, not less.
Grahame Grieve (Mar 27 2020 at 18:38):
the file /StructureDefinition-extension-sec-label-basis.json is invalid - it has a elementdefinition.binding which is an array, not an object
Mohammad Jafari (Mar 27 2020 at 18:47):
Thanks @Grahame Grieve . Is there a way to see what line triggered the error? The local resource validator doesn't generate this error and fails at the URL resolution.
Grahame Grieve (Mar 27 2020 at 18:52):
how are you running the validator?
Mohammad Jafari (Mar 27 2020 at 18:57):
just running the latest validator from here: https://fhir.github.io/latest-ig-publisher/
Grahame Grieve (Mar 27 2020 at 18:57):
what is the full output?
Mohammad Jafari (Mar 27 2020 at 18:58):
*FAILURE* validating input/resources/StructureDefinition-extension-sec-label-basis.json: error:2 warn:1 info:0 Error @ StructureDefinition.url (line 4, col101) : URL value "http://hl7.org/fhir/uv/security-label-ds4p/StructureDefinition/extension-sec-label-basis" does not resolve Error @ StructureDefinition.differential.element[1].fixed.ofType(uri) (line 33, col8) : URL value "http://hl7.org/fhir/uv/security-label-ds4p/StructureDefinition/extension-sec-label-basis" does not resolve Warning @ StructureDefinition (line 1, col1) : cnl-0: Name should be usable as an identifier for the module by machine processing applications such as code generation [name.matches('[A-Z]([A-Za-z0-9_]){0,254}')]
Grahame Grieve (Mar 27 2020 at 19:02):
no, the actual full output - all the output from the validator
Mohammad Jafari (Mar 27 2020 at 19:29):
Is there more that's stored elsewhere? the full output I get is this:
FHIR Validation tool Version 4.2.10-SNAPSHOT (Git# 200f14922221). Built 2020-03-26T08:29:37.176+11:00 (45 hours old) Detected Java version: 13 from /Library/Java/JavaVirtualMachines/openjdk-13.jdk/Contents/Home on x86_64 (64bit). 4096MB available Arguments: input/resources/StructureDefinition-extension-sec-label-basis.json Directories: Current = /Users/moh/fhir-ds4p-ig, Package Cache = /Users/moh/.fhir/packages .. FHIR Version current, definitions from hl7.fhir.r5.core#current .. connect to tx server @ http://tx.fhir.org (vcurrent) .. validate [input/resources/StructureDefinition-extension-sec-label-basis.json] *FAILURE* validating input/resources/StructureDefinition-extension-sec-label-basis.json: error:2 warn:1 info:0 Error @ StructureDefinition.url (line 4, col101) : URL value "http://hl7.org/fhir/uv/security-label-ds4p/StructureDefinition/extension-sec-label-basis" does not resolve Error @ StructureDefinition.differential.element[1].fixed.ofType(uri) (line 33, col8) : URL value "http://hl7.org/fhir/uv/security-label-ds4p/StructureDefinition/extension-sec-label-basis" does not resolve Warning @ StructureDefinition (line 1, col1) : cnl-0: Name should be usable as an identifier for the module by machine processing applications such as code generation [name.matches('[A-Z]([A-Za-z0-9_]){0,254}')]
Grahame Grieve (Mar 27 2020 at 19:50):
that's what I wanted. It looks like you've fixed the problem, and the validator is not getting any errors. if you have a copy of a resource the passes validation but causes the build to fail, I'll be happy to look at it
Last updated: Apr 12 2022 at 19:14 UTC