FHIR Chat · Need help with dependencies · IG creation

Stream: IG creation

Topic: Need help with dependencies


view this post on Zulip Giorgio Cangioli (Mar 10 2021 at 16:06):

I have a guide A that depends on B, both are under development (not registered yet)
When I compile locally all works fine, but when I push the guide A in GitHub the compilation for build.fhir.org fails because it is not able to load the B package. IG B (without dependencies) compiles correctly.
This is the error I have
Caused by: java.io.FileNotFoundException: https://build.fhir.org/ig/hl7-it/terminology/package.tgz

I can reproduce the same error locally if I use <version value="current"/> instead of <version value="dev"/>

What do you suggest I should check ?

view this post on Zulip Jose Costa Teixeira (Mar 10 2021 at 16:31):

I presume your IG B is the terminology IG... right?

view this post on Zulip Lloyd McKenzie (Mar 10 2021 at 16:33):

Is B set up to use the CI build process? If you push your commits, that should produce the package.tgz and make it available

view this post on Zulip Giorgio Cangioli (Mar 10 2021 at 16:34):

Jose Costa Teixeira said:

I presume your IG B is the terminology IG... right?

Yes

view this post on Zulip Giorgio Cangioli (Mar 10 2021 at 16:36):

Lloyd McKenzie said:

Is B set up to use the CI build process? If you push your commits, that should produce the package.tgz and make it available

I supposed I did but maybe (I'd say for sure :-) ) not in the right way... the B guide is published in build.fhir.org but the package cannot be retrieved

view this post on Zulip Lloyd McKenzie (Mar 10 2021 at 16:42):

@Grahame Grieve @Mark Iantorno ?

view this post on Zulip Mark Iantorno (Mar 10 2021 at 16:44):

Ah, let me look at this in the afternoon? Do you have actual links to the pull requests you are experiencing this behaviour with?

view this post on Zulip Giorgio Cangioli (Mar 10 2021 at 16:52):

Thanks :-) these is where the two draft guides are https://github.com/hl7-it/base (guide A) and https://github.com/hl7-it/terminology (guide B) (they are WIP..)

view this post on Zulip Giorgio Cangioli (Mar 10 2021 at 16:54):

... glad to learn what I did wrong :-)

view this post on Zulip Jose Costa Teixeira (Mar 10 2021 at 16:56):

the terminology hasn't been built by the CI build yet, so you won't find it.

view this post on Zulip Jose Costa Teixeira (Mar 10 2021 at 16:56):

Push the CI build for the terminology IG

view this post on Zulip Jose Costa Teixeira (Mar 10 2021 at 16:57):

https://build.fhir.org/ig/hl7-it/terminology/

view this post on Zulip Jose Costa Teixeira (Mar 10 2021 at 16:57):

it is not showing up

view this post on Zulip Jose Costa Teixeira (Mar 10 2021 at 17:01):

@Giorgio Cangioli did you setup the CI build hook for your terminology IG?

view this post on Zulip Giorgio Cangioli (Mar 10 2021 at 17:11):

Jose Costa Teixeira said:

Giorgio Cangioli did you setup the CI build hook for your terminology IG?

Do you mean the webhook in github ?
The guide is published in https://build.fhir.org/ig/:org/:repo/branches/:branch but not in https://build.fhir.org/ig/:org/:repo

view this post on Zulip Oliver Egger (Mar 10 2021 at 18:23):

FHIR Bot has published that the terminology IG has been built, so that looks ok: http://build.fhir.org/ig/hl7-it/terminology/branches/main/index.html

view this post on Zulip Oliver Egger (Mar 10 2021 at 18:26):

@Giorgio Cangioli in https://github.com/hl7-it/base/blob/master/input/ig-it-base.xml I guess you need to set the dependency for hl7.fhir.it.terminology to current instead of dev. dev is only available locally, not on the ci-build. current means last current build of ci.

view this post on Zulip Giorgio Cangioli (Mar 10 2021 at 18:31):

Thanks @Oliver Egger I'll try, but if I set the version to current the local build fails trying to get https://build.fhir.org/ig/hl7-it/terminology/package.tgz

view this post on Zulip Giorgio Cangioli (Mar 10 2021 at 18:39):

it fails also using current (same error)..I was wondering if the issue is with the target guide (that that apparently build correctly )

view this post on Zulip Oliver Egger (Mar 10 2021 at 18:57):

the terminology build is in the main branch and published to http://build.fhir.org/ig/hl7-it/terminology/branches/main/index.html . Earlier the default for the main branch in a repo for ig's was master. @Josh Mandel could it be that this is the issue in the publishing process? And if yes is there a workaround? Or does another setting needs to be done in the repository?

view this post on Zulip Jose Costa Teixeira (Mar 10 2021 at 19:14):

the publisher takes Master for the first build

view this post on Zulip Jose Costa Teixeira (Mar 10 2021 at 19:14):

https://build.fhir.org/ig/hl7-it/terminology/ is empty, so the publisher doesn't seem to be kicking in

view this post on Zulip Jose Costa Teixeira (Mar 10 2021 at 19:15):

I think that is a good guess, @Oliver Egger

view this post on Zulip Jose Costa Teixeira (Mar 10 2021 at 19:15):

@Giorgio Cangioli you may want to move to a Master branch

view this post on Zulip Giorgio Cangioli (Mar 10 2021 at 19:29):

Thanks a lot @Jose Costa Teixeira now https://build.fhir.org/ig/hl7-it/terminology/ is no more empty and also the dependency works ! :tada:

view this post on Zulip Jose Costa Teixeira (Mar 10 2021 at 19:31):

and your package.tgz is already there, so your IG A may build at last, I hope

view this post on Zulip Jose Costa Teixeira (Mar 10 2021 at 19:31):

Ecco!


Last updated: Apr 12 2022 at 19:14 UTC