FHIR Chat · Build fails installing USCoreR4 · IG creation

Stream: IG creation

Topic: Build fails installing USCoreR4


view this post on Zulip David Pyke (Jun 13 2019 at 21:00):

My local works but the build server fails with the following:
Installing hl7.fhir.us.core.r4#current to the package cache
Fetching:Publishing Content Failed: null (34.0172sec)
(34.0172sec)
Use -? to get command line help (34.0172sec)
(34.0172sec)
Stack Dump (for debugging): (34.0172sec)
java.lang.NullPointerException
at java.base/java.io.FilterInputStream.markSupported(FilterInputStream.java:242)
at org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream.<init>(GzipCompressorInputStream.java:160)
at org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream.<init>(GzipCompressorInputStream.java:131)
at org.hl7.fhir.utilities.cache.PackageCacheManager.unPackage(PackageCacheManager.java:414)
at org.hl7.fhir.utilities.cache.PackageCacheManager.addPackageToCache(PackageCacheManager.java:348)
at org.hl7.fhir.utilities.cache.PackageCacheManager.loadPackage(PackageCacheManager.java:607)
at org.hl7.fhir.igtools.publisher.Publisher.resolveDependency(Publisher.java:2183)
at org.hl7.fhir.igtools.publisher.Publisher.loadIg(Publisher.java:2152)
at org.hl7.fhir.igtools.publisher.Publisher.initializeFromJson(Publisher.java:1667)
at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1117)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:601)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:6101)
Exception in thread "main" java.lang.NullPointerException
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:6111)
Do I need to do anything about this?

view this post on Zulip Eric Haas (Jun 13 2019 at 21:50):

It is being published and I realized the npm name still had r4 in it - it is now hl7.fhir.us.core.#current

view this post on Zulip David Pyke (Jun 14 2019 at 00:20):

Quit breaking things!

view this post on Zulip Eric Haas (Jun 14 2019 at 02:55):

it had to be done...

view this post on Zulip Rick Geimer (Jun 18 2019 at 02:55):

@Eric Haas Are you still making changes today? One of my IGs was running error free a couple hours ago, but now has dozens of US Core related errors. There is a Da Vinci ballot deadline tonight, so changes today are very problematic.

view this post on Zulip Rick Geimer (Jun 18 2019 at 03:04):

Or perhaps the terminology server is down? @Grahame Grieve
The IG publisher can't seem to resolve http://hl7.org/fhir/us/core/CodeSystem/us-core-documentreference-category

view this post on Zulip Grahame Grieve (Jun 18 2019 at 03:05):

which IG is this?

view this post on Zulip Rick Geimer (Jun 18 2019 at 03:16):

CDex. Actually I think it is that dependsOn.uri issue again. Getting this error:

ImplementationGuide/davinci-cdex: ImplementationGuide.dependsOn[2].uri
error
URL value 'http://hl7.org/fhir/us/core/ImplementationGuide/hl7.fhir.us.core-3.0.0' does not resolve

view this post on Zulip Rick Geimer (Jun 18 2019 at 03:17):

That's the cannonical URL from the US Core R4 ImplementationGuide resource. That bug was fixed, now seems to be broken again. @Grahame Grieve

view this post on Zulip Grahame Grieve (Jun 18 2019 at 03:18):

use the package not the canonical URL

view this post on Zulip Rick Geimer (Jun 18 2019 at 03:19):

The spec says it is the cannonical URL. We discussed this last week.
http://hl7.org/fhir/implementationguide-definitions.html#ImplementationGuide.dependsOn.uri

view this post on Zulip Rick Geimer (Jun 18 2019 at 03:20):

You fixed it, now it seems to be unfixed.

view this post on Zulip Grahame Grieve (Jun 18 2019 at 03:21):

if you want to use the canonical just use 'http://hl7.org/fhir/us/core

view this post on Zulip Rick Geimer (Jun 18 2019 at 03:21):

Doesn't work. We store the ImplementationGuide resource in HAPI, and it will only accept the cannonical URL.

view this post on Zulip Grahame Grieve (Jun 18 2019 at 03:22):

well, that's an impasse

view this post on Zulip Rick Geimer (Jun 18 2019 at 03:23):

Yeah. It's not valid per the spec. Are we saying every resource but ImplementationGuide needs to follow the rules?

view this post on Zulip Rick Geimer (Jun 18 2019 at 03:25):

For tonight I can just hack the raw XML and commit to github, but we need a long term fix.

view this post on Zulip Rick Geimer (Jun 18 2019 at 03:26):

Maybe the IG publisher should accept both the package and the cannonical URL until R5, when hopefully we either remove dependsOn.uri or state that it should be the package id?

view this post on Zulip Eric Haas (Jun 18 2019 at 03:44):

I have not touched us core since last week when I updated the package-list.json for publishing.

view this post on Zulip Rick Geimer (Jun 18 2019 at 03:47):

Yeah, sorry Eric, false alarm. Is an IG publisher dependency issue, not anything you did.

view this post on Zulip Eric Haas (Jun 18 2019 at 03:48):

here is the ig.xml url :
<url value="http://hl7.org/fhir/us/core/ImplementationGuide/hl7.fhir.us.core-3.0.0"/>

view this post on Zulip Eric Haas (Jun 18 2019 at 03:48):

np

view this post on Zulip Rick Geimer (Jun 18 2019 at 03:50):

Yes, that's what I am using, but the publisher can't resolve the dependency if you use the actual cannonical URL in ImplementationGuide.dependsOn.uri. It seems to expect it to be the package id or absent, but the spec says the uri is required (1..1) and must be the full cannonical URL of an ImplementationGuide resource.

view this post on Zulip Grahame Grieve (Jun 18 2019 at 04:15):

which IG is this?

view this post on Zulip Rick Geimer (Jun 18 2019 at 04:25):

Da Vinci CDex

view this post on Zulip Rick Geimer (Jun 18 2019 at 04:26):

build.fhir.org/ig/HL7/davinci-ecdx

view this post on Zulip Rick Geimer (Jun 18 2019 at 04:26):

For now I have manually hacked the IG resource to have a package id in ImplementationGuide.dependsOn.uri so that it builds.

view this post on Zulip Rick Geimer (Jun 18 2019 at 04:27):

Also getting an error due to the https://cts.nlm.nih.gov/fhir/ValueSet/YOUR-FAVORITE-OID issue, but I will let Melva know that that is a known issue per our discussion last Wednesday at Dev Days.

view this post on Zulip Grahame Grieve (Jun 18 2019 at 05:53):

looking at it now... the infrastructure expects it to be http://hl7.org/fhir/us/core/ImplementationGuide/ig

view this post on Zulip Grahame Grieve (Jun 18 2019 at 05:53):

not http://hl7.org/fhir/us/core/ImplementationGuide/hl7.fhir.us.core-3.0.0

view this post on Zulip Rick Geimer (Jun 18 2019 at 06:37):

If you look at the actual ImplementationGuide resource for US Core R4 it is http://hl7.org/fhir/us/core/ImplementationGuide/hl7.fhir.us.core-3.0.0. Not sure where you are getting http://hl7.org/fhir/us/core/ImplementationGuide/ig, it was changed a while ago

view this post on Zulip Rick Geimer (Jun 18 2019 at 06:37):

Is the infrastructure caching old URIs?

view this post on Zulip Rick Geimer (Jun 18 2019 at 06:40):

See https://github.com/HL7/US-Core-R4/blob/master/source/resources/ig.xml

The ImplementationGuide.url element is set to http://hl7.org/fhir/us/core/ImplementationGuide/hl7.fhir.us.core-3.0.0

view this post on Zulip Rick Geimer (Jun 18 2019 at 06:40):

Maybe the file name of that resource should be hl7.fhir.us.core-3.0.0.xml instead of ig.xml?

view this post on Zulip Grahame Grieve (Jun 18 2019 at 06:45):

no. it's a caching problem somewhere. It's fine now

view this post on Zulip Grahame Grieve (Jun 18 2019 at 06:46):

I just had to clear my cache. The package cache doesn't deal very well with something that happened there

view this post on Zulip Rick Geimer (Jun 18 2019 at 06:54):

Yeah, which is another vote for Sean's request for an IG Publisher option to clear the package cache

view this post on Zulip Rick Geimer (Jun 18 2019 at 06:55):

As we often have to manually delete the whole folder on the Trifolia server

view this post on Zulip Rick Geimer (Jun 18 2019 at 07:01):

Will the CI build be updated (and the package cleared) soon? Would like to get a correct IG resource pushed before the night is over.

view this post on Zulip Grahame Grieve (Jun 18 2019 at 07:03):

from the next version :
-clear-packages
will clear the cache.

view this post on Zulip Grahame Grieve (Jun 18 2019 at 07:03):

I don't have a way to clear the cache on the ci-build

view this post on Zulip Rick Geimer (Jun 18 2019 at 07:05):

ok, will keep hacking the ig resource before commits for now if the error persists

view this post on Zulip Grahame Grieve (Jun 18 2019 at 07:06):

no. don't hack it. The real build won't be done on the ci-build, so it won't be an issue

view this post on Zulip Rick Geimer (Jun 18 2019 at 07:07):

ok

view this post on Zulip Rick Geimer (Jun 18 2019 at 07:07):

But the QA will have a bunch of errors, so I will let Melva know.

view this post on Zulip Grahame Grieve (Jun 18 2019 at 07:07):

I on;y get one other error?

view this post on Zulip Rick Geimer (Jun 18 2019 at 07:09):

Hang on, will commit with the http://hl7.org/fhir/us/core/ImplementationGuide/hl7.fhir.us.core-3.0.0 URI shortly.

view this post on Zulip Rick Geimer (Jun 18 2019 at 07:20):

All working now. Clean QA file. Thanks Grahame!
http://build.fhir.org/ig/HL7/davinci-ecdx/branches/master/qa.html

view this post on Zulip Rick Geimer (Jun 18 2019 at 07:21):

Will move on to the HL7 Publication checks and Melva's checklist to wrap this IG up.

view this post on Zulip Rick Geimer (Jun 19 2019 at 06:18):

@Grahame Grieve Seems to be broken again. The following error has returned.
URL value 'http://hl7.org/fhir/us/core/ImplementationGuide/hl7.fhir.us.core-3.0.0' does not resolve

view this post on Zulip Rick Geimer (Jun 19 2019 at 06:19):

CDex was working just a few hours ago. Only change to the IG was editing the footer to add the history link.

view this post on Zulip Rick Geimer (Jun 19 2019 at 07:08):

@Eric Haas Looks like the last US Core commit failed to build, and this is likely causing errors in all IGs that have US Core as a dependency.

view this post on Zulip Eric Haas (Jun 19 2019 at 09:05):

I don't remember committing since last week but it says I did yesterday. I just recommitted now.

view this post on Zulip Eric Haas (Jun 19 2019 at 09:08):

should be good now

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

that was me - rebuilding to fix problem uncovered problem with the problem ;-)

view this post on Zulip Rick Geimer (Jun 19 2019 at 14:45):

Thanks guys. Will bump my IGs now, hopefully all will be good.


Last updated: Apr 12 2022 at 19:14 UTC