FHIR Chat · HL7 Base Template Broken? · IG creation

Stream: IG creation

Topic: HL7 Base Template Broken?


view this post on Zulip Natasha Singh (Dec 03 2019 at 21:39):

Hello,

I'm not sure where to report this or to who, so just going to cc @Grahame Grieve for now.

I've been playing with the sample-ig at https://github.com/FHIR/sample-ig. It seems like something has broken in the Jekyll site build portion of the publisher. I'm not sure if the cause is in the template or the publisher code. The build errors are due to certain assets (e.g. fhir.css, many of the images needed to build the snapshot tree view) not being found.

I've attached my publisher terminal output here:
ig-publisher.log

view this post on Zulip Lloyd McKenzie (Dec 03 2019 at 21:42):

It looks like the build is still successful, but there's some sort of debug process that's spitting out a ton of complaints - about stuff that should be grabbed automatically. Seems likely to be an IGPublisher issue?

view this post on Zulip Chris Moesel (Dec 03 2019 at 22:09):

We noticed a lot of missing icons using IG Publisher 1.0.3 today and a non-template-based IG. But a few days ago, the same IG Publisher (1.0.3) produced a fine IG w/ all the icons -- so it seems the issue might not be the publisher itself, but rather the package it downloads w/ all the icons?

view this post on Zulip Christopher Schuler (Dec 03 2019 at 22:09):

I am seeing similar issues:
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (fhir.css, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (external.png, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (cc0.png, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (fhir.css, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (fhir.css, line 0)

IG looks great when building locally.

view this post on Zulip Natasha Singh (Dec 03 2019 at 22:14):

Does anyone know where the publisher templates are? Specifically, where is the hl7.fhir.template? I'd like to know so I can submit a ticket to the repo.

view this post on Zulip Grahame Grieve (Dec 03 2019 at 22:25):

https://github.com/HL7/ig-template-base

view this post on Zulip Natasha Singh (Dec 03 2019 at 22:31):

https://github.com/HL7/ig-template-base

@Grahame Grieve The package.json file says this template is based on fhir.base.template. Do you know where the repo for that one is? I suspect the problem might be in there since it looks like the last commit in ig-template-fhir was a while ago (13 days ago by @Lloyd McKenzie)

view this post on Zulip Lloyd McKenzie (Dec 03 2019 at 22:33):

All of the files it complains are missing should be coming from the underlying referenced FHIR spec, not the template I think

view this post on Zulip Grahame Grieve (Dec 03 2019 at 22:52):

I can't make sense of this - all these files are supposed to be loaded out the publication support package, and there's no way in the code to not load them

view this post on Zulip Grahame Grieve (Dec 04 2019 at 00:03):

I can't reproduce this.

view this post on Zulip Grahame Grieve (Dec 04 2019 at 00:03):

qa.html

view this post on Zulip Grahame Grieve (Dec 04 2019 at 00:03):

this is my qa.html for the sample ig

view this post on Zulip Grahame Grieve (Dec 04 2019 at 00:04):

@Christopher Schuler what IG is this?

view this post on Zulip Christopher Schuler (Dec 04 2019 at 00:08):

QiCore: http://build.fhir.org/ig/HL7/fhir-qi-core/

view this post on Zulip Grahame Grieve (Dec 04 2019 at 00:12):

@Natasha Singh do you have a directory /Users/singhn4/.fhir/packages/hl7.fhir.pubpack#0.0.2. if so, what is in it?

view this post on Zulip Natasha Singh (Dec 04 2019 at 00:29):

Yes, see attached
hl7.fhir.pubpack0.0.2-tree.log

view this post on Zulip Natasha Singh (Dec 04 2019 at 00:33):

I'm getting those same build errors no matter which release of the publisher or IG I run with. So I believe its probably an issue in the base template. I've tried running with publisher versions 1.0.3 through 1.0.7 on the following IGs: https://github.com/FHIR/sample-ig, and https://github.com/ga4gh-cp/fhir-phenopackets.

And FYI I've made sure to set the version=4.0.1 in my IG control file too.

view this post on Zulip Grahame Grieve (Dec 04 2019 at 01:51):

try again with 1.0.8 and send me the log

view this post on Zulip Grahame Grieve (Dec 04 2019 at 01:52):

it has nothing to do with validation. The render is building the outputs and doesn't know where the value set actually is, so can't put in a href to it

view this post on Zulip Natasha Singh (Dec 04 2019 at 03:06):

Hmm getting the same errors. See log attached ig-publisher.log

view this post on Zulip Sarah Gaunt (Dec 04 2019 at 09:41):

What do I need to do to fix my 39k+ errors? These are new errors (started this morning) and I haven't changed anything in the IG. They are icon and cc0.png files that are missing.

view this post on Zulip Grahame Grieve (Dec 04 2019 at 09:57):

I am investigating why I can't reproduce this

view this post on Zulip Sarah Gaunt (Dec 04 2019 at 10:04):

Cool thanks. It seems to work fine "locally" (i.e. Trifolia doesn't come up with all the errors with the same IG Publisher).

view this post on Zulip Natasha Singh (Dec 04 2019 at 14:44):

@Sarah Gaunt What did you mean by it works fine locally? I haven't been able to run publisher on any IG without these errors

view this post on Zulip Chris Moesel (Dec 04 2019 at 15:31):

I also get _all_ of these errors locally. I wonder if this is a Windows vs Mac/Linux thing? A few people have indicated it works locally, so I wonder if they are all on Windows -- and everywhere it is failing is Mac (me) or Linux (autobuild).

view this post on Zulip Cees de Jonge (Dec 04 2019 at 15:59):

Can confirm. On my Mac I have these errors to on my Windows machine there are no errors.

view this post on Zulip Michaela Ziegler (Dec 04 2019 at 16:06):

I have these errors on my Windows machine...

view this post on Zulip Natasha Singh (Dec 04 2019 at 16:11):

I ran on a Mac and got these errors. I also ran in a docker container based on Alpine Linux and still got these errors

view this post on Zulip Grahame Grieve (Dec 04 2019 at 16:53):

oki I have figured it out. will release a new copy as soon as I can

view this post on Zulip Sarah Gaunt (Dec 04 2019 at 20:17):

@Natasha Singh not sure why but it was definitely building error-free in our tool (Trifolia on FHIR) using the latest publisher but as soon as I exported to the CI build it was getting all the missing file errors. Maybe just a timing fluke or something. I hadn't tested in a while.


Last updated: Apr 12 2022 at 19:14 UTC