Stream: IG creation
Topic: running templates of branch not working for me
Eric Haas (Feb 24 2020 at 17:45):
When I run the templates of a fork it works:
e.g.: my bash script updates the ig.ini as follows
$ bash publish.sh -u https://github.com/Healthedata1/ig-template-base ###### ig.ini fil ###### [IG] ig = input/myig.xml template = https://github.com/Healthedata1/ig-template-base usage-stats-opt-out = false
but when I run a branch this happens:
$ bash publish.sh -u https://github.com/Healthedata1/ig-template-base/tree/add-copy-button ###### ig.ini fil ###### [IG] ig = input/myig.xml template = https://github.com/Healthedata1/ig-template-base/tree/add-copy-button usage-stats-opt-out = false ... Load Template from https://github.com/Healthedata1/ig-template-base/tree/add-copy-button (00:03.0666) Publishing Content Failed: Error loading template https://github.com/Healthedata1/ig-template-base/tree/add-copy-button: https://github.com/Healthedata1/ig-template-base/tree/add-copy-button/archive/master.zip (00:04.0513) (00:04.0513) Use -? to get command line help (00:04.0514) (00:04.0514) Stack Dump (for debugging): (00:04.0515) org.hl7.fhir.exceptions.FHIRException: Error loading template https://github.com/Healthedata1/ig-template-base/tree/add-copy-button: https://github.com/Healthedata1/ig-template-base/tree/add-copy-button/archive/master.zip at org.hl7.fhir.igtools.templates.TemplateManager.loadPackage(TemplateManager.java:258) at org.hl7.fhir.igtools.templates.TemplateManager.installTemplate(TemplateManager.java:91) at org.hl7.fhir.igtools.templates.TemplateManager.loadTemplate(TemplateManager.java:77) at org.hl7.fhir.igtools.publisher.Publisher.initializeFromIg(Publisher.java:1264) at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1206) at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:661) at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:6934) Caused by: java.io.FileNotFoundException: https://github.com/Healthedata1/ig-template-base/tree/add-copy-button/archive/master.zip at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1909) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1509) at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:245) at org.hl7.fhir.igtools.templates.TemplateManager.loadPackage(TemplateManager.java:253) ... 6 more
Eric Haas (Feb 24 2020 at 17:47):
the branch works locally: $ bash publish.sh -u /Users/ehaas/Documents/FHIR/ig-template-base
just not when upload to github.
Lloyd McKenzie (Feb 24 2020 at 18:46):
@Josh Mandel This sounds like something about how files are organized when building branches in the CI build environment. Any thoughts?
Josh Mandel (Feb 24 2020 at 18:48):
Is the error Eric's showing here something that happens in the CI build? It appears to be something Eric is running locally. I don't know what's happening here -- something is trying to download a zip file from github?
Caused by: java.io.FileNotFoundException: https://github.com/Healthedata1/ig-template-base/tree/add-copy-button/archive/master.zip
Lloyd McKenzie (Feb 24 2020 at 19:53):
Ah, you're right. That's a weird Github thing, not CI build. Eric - why are you building on Github and not using the CI build? General expectation is you should always be committing and having content publish in the CI build...
Grahame Grieve (Feb 24 2020 at 20:10):
it seems as GitHub doesn't allow clients to download a zip for the branch \
Eric Haas (Feb 24 2020 at 20:11):
running locally should not make a difference, but doesn't work with autobuild either.
see http://build.fhir.org/ig/Healthedata1/sample-ig/branches/add-copy-me/failure/build.log
Eric Haas (Feb 24 2020 at 20:12):
this would bei a nice feature to share new features on branch before merging.
Grahame Grieve (Feb 24 2020 at 20:19):
I've figured it out. SHould work in the next version
Eric Haas (Feb 24 2020 at 20:21):
ty
Last updated: Apr 12 2022 at 19:14 UTC