FHIR Chat · Auto-IG-Builder and Template-based IGs · IG creation

Stream: IG creation

Topic: Auto-IG-Builder and Template-based IGs


view this post on Zulip Chris Moesel (Dec 12 2019 at 17:21):

Does the auto-ig-builder work for template-based IGs? The auto-ig-builder README indicates that the IG must have an ig.json file, but template-based IGs do not have one. It looks like the auto-ig-builder successfully built HL7/ig-guidance last week, but I don't understand how it worked, because the logs contain this command:

DEBUG:root:running: java -Xms14000m -Xmx14000m -jar ../publisher.jar -ig ig.json -auto-ig-build -target https://build.fhir.org/ig/FHIR/ig-guidance/ -out /scratch/ig-build-temp-F4NQ3N/repo

If I try to run the publisher w/ -ig ig.json against a template-based IG locally, the publisher fails.

view this post on Zulip Chris Moesel (Dec 12 2019 at 17:22):

@Lloyd McKenzie @Josh Mandel

view this post on Zulip Lloyd McKenzie (Dec 12 2019 at 17:30):

For templates, it should be running against ig.ini. There wouldn't typically even be an ig.json...

view this post on Zulip Chris Moesel (Dec 12 2019 at 17:34):

Yes, that's basically the crux of my question. Auto-IG-Builder says it _requires_ ig.json, and logs seem to confirm that it _assumes_ it -- and yet your ig-guidance IG somehow succeeded the auto-build. I guess maybe I should just try mine and see what happens?

view this post on Zulip Lloyd McKenzie (Dec 12 2019 at 17:49):

Yup

view this post on Zulip Chris Moesel (Dec 12 2019 at 17:54):

It worked! http://build.fhir.org/ig/HL7/fhir-shorthand/branches/master/index.html

view this post on Zulip Lloyd McKenzie (Dec 12 2019 at 18:04):

And did the log say it was using ig.ini or ig.json?

view this post on Zulip Chris Moesel (Dec 12 2019 at 18:06):

ig.json

DEBUG:root:running: java -Xms14000m -Xmx14000m -jar ../publisher.jar -ig ig.json -auto-ig-build -target https://build.fhir.org/ig/HL7/fhir-shorthand/ -out /scratch/ig-build-temp-THA7KV/repo

Maybe the -auto-ig-build flag invokes some special-case logic that looks for ig.ini if ig.json is not found?

view this post on Zulip Chris Moesel (Dec 12 2019 at 18:08):

Yup, I think that's it. If I run the publisher locally without the -auto-ig-build flag, it fails because it can't find ig.json. But if I run it with the -auto-ig-build flag, it seems to do the right thing, despite -ig ig.json.

view this post on Zulip Lloyd McKenzie (Dec 12 2019 at 18:12):

@Josh Mandel Is the process spitting out something hard-coded to the log that isn't actually true?

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

no. the Publisher has some magic somewhere to accept the ini instead of the json on the autobuild

view this post on Zulip Josh Mandel (Dec 12 2019 at 19:39):

Wow, glad Grahame invented magic here ;-) Does someone want to send a PR to the documentation explaining this exception (i.e. ig.json not required for template-based builds)?

view this post on Zulip Grahame Grieve (Dec 12 2019 at 19:44):

done

view this post on Zulip Grahame Grieve (Dec 12 2019 at 23:05):

@Josh Mandel just looking at https://build.fhir.org/ig/qas.json for some processing purpose, and I note that the url field has a fantasy value

view this post on Zulip Grahame Grieve (Dec 12 2019 at 23:06):

unless it is intended to be the canonical URL? I was expecting it to contain the actual link to the built files?

view this post on Zulip Josh Mandel (Dec 12 2019 at 23:09):

Interesting. Do we use it anywhere?

view this post on Zulip Grahame Grieve (Dec 12 2019 at 23:13):

turns out that I do. As the canonical URL. I was just about to say that. So that's what it is. could probably have a better name but let's not change that now


Last updated: Apr 12 2022 at 19:14 UTC