FHIR Chat · CI build failing: html generated more than once · IG creation

Stream: IG creation

Topic: CI build failing: html generated more than once


view this post on Zulip Joee Garcia (Jul 02 2020 at 19:34):

@Grahame Grieve The SDC IG (CI Build) is getting the following build exception using the latest version - FHIR IG Publisher Version 1.0.101-SNAPSHOT...

onGenerate:
Exception in thread "main" java.lang.Error: Error generating build: the file /scratch/ig-build-temp-RCQZY0/repo/temp/pages/Questionnaire-questionnaire-sdc-profile-example-loinc-history.html is being generated more than once (may differ by case)
at org.hl7.fhir.igtools.publisher.Publisher.checkMakeFile(Publisher.java:2819)
at org.hl7.fhir.igtools.publisher.Publisher.genWrapperContained(Publisher.java:6942)
at org.hl7.fhir.igtools.publisher.Publisher.makeTemplatesContained(Publisher.java:6750)
at org.hl7.fhir.igtools.publisher.Publisher.generateHtmlOutputs(Publisher.java:6301)
at org.hl7.fhir.igtools.publisher.Publisher.generate(Publisher.java:4654)
at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:856)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:705)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:7694)

It is failing in one of our example questionnaires with a lot of contained ValueSets. It seems that the exception is being raised if there is more than one contained ValueSet in a Questionnaire. If I just keep one, the error goes away. Is this a bug? Please advise.

Thanks,
Joee

view this post on Zulip Lloyd McKenzie (Jul 02 2020 at 20:34):

@Grahame Grieve

view this post on Zulip Grahame Grieve (Jul 02 2020 at 20:36):

this is an issue in the template. It is trying to create a -history file, when the IG publisher is already creating one

view this post on Zulip Lloyd McKenzie (Jul 02 2020 at 20:37):

@Jose Costa Teixeira ?

view this post on Zulip Jose Costa Teixeira (Jul 02 2020 at 20:40):

I'm checking it

view this post on Zulip Jose Costa Teixeira (Jul 02 2020 at 21:05):

well, the good news is .. I checked it.

view this post on Zulip Jose Costa Teixeira (Jul 02 2020 at 21:32):

The template doesn't seem to be adding history to questionnaires. Still i tried to debug it by removing the history feature, and i get this:

onGenerate:
Publishing Content Failed: null                                                  (00:36.0698)
                                                                                 (00:36.0700)
Use -? to get command line help                                                  (00:36.0711)
                                                                                 (00:36.0713)
Stack Dump (for debugging):                                                      (00:36.0715)
java.lang.NullPointerException
        at org.hl7.fhir.r5.renderers.QuestionnaireResponseRenderer.renderTreeItem(QuestionnaireResponseRenderer.java:167)
        at org.hl7.fhir.r5.renderers.QuestionnaireResponseRenderer.renderTree(QuestionnaireResponseRenderer.java:91)
        at org.hl7.fhir.r5.renderers.QuestionnaireResponseRenderer.render(QuestionnaireResponseRenderer.java:69)
        at org.hl7.fhir.r5.renderers.ResourceRenderer.render(ResourceRenderer.java:76)
        at org.hl7.fhir.igtools.renderers.QuestionnaireResponseRenderer.render(QuestionnaireResponseRenderer.java:65)
        at org.hl7.fhir.igtools.publisher.Publisher.generateOutputsQuestionnaireResponse(Publisher.java:7265)
        at org.hl7.fhir.igtools.publisher.Publisher.generateHtmlOutputs(Publisher.java:6325)
        at org.hl7.fhir.igtools.publisher.Publisher.generate(Publisher.java:4658)
        at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:858)
        at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:707)
        at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:7756)
Press any key to continue . . .

view this post on Zulip Grahame Grieve (Jul 02 2020 at 21:50):

fixed next release

view this post on Zulip Jose Costa Teixeira (Jul 02 2020 at 22:12):

@Joee Garcia we'll wait for the next release and then I can see what is the issue with the history generation - does that work for you?

view this post on Zulip Joee Garcia (Jul 03 2020 at 19:59):

@Jose Costa Teixeira Sure, no problem. Thank you for looking into it.

view this post on Zulip Joee Garcia (Jul 09 2020 at 19:33):

Hi @Jose Costa Teixeira I see that our SDC IG has picked up a new version:
FHIR IG Publisher Version 1.1.2 (Git# cfc87d2acaf7). Built 2020-07-07T12:30:26.385Z (54 hours old)
But we're still getting the history generation exception:
http://build.fhir.org/ig/HL7/sdc/branches/master/failure/build.log

onGenerate:
Exception in thread "main" java.lang.Error: Error generating build: the file /scratch/ig-build-temp-79YCCH/repo/temp/pages/Questionnaire-questionnaire-sdc-profile-example-loinc-history.html is being generated more than once (may differ by case)
    at org.hl7.fhir.igtools.publisher.Publisher.checkMakeFile(Publisher.java:2854)
    at org.hl7.fhir.igtools.publisher.Publisher.genWrapperContained(Publisher.java:7010)
    at org.hl7.fhir.igtools.publisher.Publisher.makeTemplatesContained(Publisher.java:6798)
    at org.hl7.fhir.igtools.publisher.Publisher.generateHtmlOutputs(Publisher.java:6344)
    at org.hl7.fhir.igtools.publisher.Publisher.generate(Publisher.java:4691)
    at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:859)
    at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:708)
    at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:7815)

Is this supposed to be fixed in this new release?

Thanks,
Joee

view this post on Zulip Jose Costa Teixeira (Jul 09 2020 at 19:56):

@Joee Garcia thanks for the reminder. I'll look at that tomorrow or saturday, is that OK?
(deadline today and tomorrow)

view this post on Zulip Joee Garcia (Jul 09 2020 at 20:25):

@Jose Costa Teixeira Yes, no problem!

view this post on Zulip Grahame Grieve (Jul 09 2020 at 20:52):

this is a problem in the SDC set up

view this post on Zulip Lloyd McKenzie (Jul 09 2020 at 22:15):

Can you expand on what you mean Grahame?

view this post on Zulip Grahame Grieve (Jul 09 2020 at 22:50):

something about sdc is producing a -history fragment - it's one of the SDC specific templates

view this post on Zulip Grahame Grieve (Jul 09 2020 at 22:50):

but that now clashes with the -history fragment created by the IG publisher

view this post on Zulip Lloyd McKenzie (Jul 09 2020 at 22:55):

SDC is the standard template, not a specific template...

view this post on Zulip Jose Costa Teixeira (Jul 09 2020 at 23:07):

Yesterday I tested using the base template - same issue (iirc)

view this post on Zulip Jose Costa Teixeira (Jul 09 2020 at 23:08):

Does SDC use spreadsheets?

view this post on Zulip Lloyd McKenzie (Jul 09 2020 at 23:11):

y

view this post on Zulip Grahame Grieve (Jul 10 2020 at 01:16):

ok fixed next release. It's an internal error in the publisher

view this post on Zulip Joee Garcia (Aug 07 2020 at 20:34):

@Grahame Grieve @Lloyd McKenzie SDC is getting this exception again using the latest IG build (FHIR IG Publisher Version 1.1.10 (Git# 541f499dd6d2).

Exception in thread "main" java.lang.Error: Error generating build: the file /scratch/ig-build-temp-PCF25O/repo/temp/pages/_includes/Bundle-questionnaire-sdc-test-fhirpath-prepop-source-query_PrePopQuery-html.xhtml is being generated more than once (may differ by case)

Here's the full log: https://build.fhir.org/ig/HL7/sdc/branches/master/failure/build.log.

It builds fine with the previous version, 1.1.9.

view this post on Zulip Grahame Grieve (Aug 07 2020 at 22:36):

fixed next release


Last updated: Apr 12 2022 at 19:14 UTC