FHIR Chat · R4B Build · committers

Stream: committers

Topic: R4B Build


view this post on Zulip Gino Canessa (Jun 01 2021 at 19:09):

Hi all, was moving things around on my computer and needed to pull a fresh copy of R4B from github, so I pulled the R4B branch. Builds are failing on my box - console output below.

Is there a different branch I'm supposed to be starting from, and/or is someone already working on this?

Note: R5 builds are working fine, so I don't think this is a local box issue.

view this post on Zulip Lloyd McKenzie (Jun 01 2021 at 19:29):

@Mark Iantorno

view this post on Zulip Mark Iantorno (Jun 01 2021 at 19:30):

let me check

view this post on Zulip Mark Iantorno (Jun 01 2021 at 19:32):

I would guess this is local. I'm going to run R4B pipeline again, but it appears to be passing on the pipeline

view this post on Zulip Mark Iantorno (Jun 01 2021 at 19:41):

build is happening here fyi: https://dev.azure.com/fhir-pipelines/fhir-publisher/_build/results?buildId=3502&view=results

view this post on Zulip Gino Canessa (Jun 01 2021 at 19:41):

Note that changing the URL in the valueset allows the build to pass for me

view this post on Zulip Mark Iantorno (Jun 01 2021 at 19:42):

you added the valueset?

view this post on Zulip Gino Canessa (Jun 01 2021 at 19:42):

Nope, fresh pull from GH

view this post on Zulip Mark Iantorno (Jun 01 2021 at 19:42):

hrm

view this post on Zulip Gino Canessa (Jun 01 2021 at 19:42):

Yep, that's why I asked =)

view this post on Zulip Mark Iantorno (Jun 01 2021 at 19:42):

can you do me a favor

view this post on Zulip Gino Canessa (Jun 01 2021 at 19:42):

ofc

view this post on Zulip Mark Iantorno (Jun 01 2021 at 19:43):

can you open a terminal window in the project directory

view this post on Zulip Mark Iantorno (Jun 01 2021 at 19:43):

and run ./gradlew clean publish --stacktrace

view this post on Zulip Mark Iantorno (Jun 01 2021 at 19:43):

and then, if it fails, send me the stacktrace

view this post on Zulip Mark Iantorno (Jun 01 2021 at 19:43):

please

view this post on Zulip Gino Canessa (Jun 01 2021 at 19:44):

Sure, I assume with the URL reverted to the original state?

view this post on Zulip Gino Canessa (Jun 01 2021 at 19:45):

view this post on Zulip Mark Iantorno (Jun 01 2021 at 19:46):

yeah just as you would have if you pulled

view this post on Zulip Gino Canessa (Jun 01 2021 at 19:47):

Yep, done in the above message.

view this post on Zulip Mark Iantorno (Jun 01 2021 at 19:49):

So, the build on the pipeline appears to be working. I think something is up with your local configuration. I would (1) Blow away the current directory, re-clone, and try to build again (2) if that still doesn't work, delete you $HOME/.gradle/caches directory

view this post on Zulip Mark Iantorno (Jun 01 2021 at 19:49):

and try to build again

view this post on Zulip Mark Iantorno (Jun 01 2021 at 19:49):

Those are the two first things I would look at

view this post on Zulip Mark Iantorno (Jun 01 2021 at 19:50):

I think something is sticking around on your box...you may have gotten into a weird state

view this post on Zulip Gino Canessa (Jun 01 2021 at 20:02):

Yeah, no luck. Just like before, I can build R5, but not R4B. Odd.

view this post on Zulip Mark Iantorno (Jun 01 2021 at 20:04):

I will try to clone and build locally later today

view this post on Zulip Mark Iantorno (Jun 01 2021 at 20:04):

the pipeline built successfully though

view this post on Zulip Mark Iantorno (Jun 01 2021 at 20:04):

https://dev.azure.com/fhir-pipelines/fhir-publisher/_build/results?buildId=3502&view=logs&j=ab68b630-6476-573a-954f-d89e4292687e&t=ab68b630-6476-573a-954f-d89e4292687e

view this post on Zulip Mark Iantorno (Jun 01 2021 at 20:04):

I'm trying to think of what would cause this

view this post on Zulip Gino Canessa (Jun 01 2021 at 20:10):

Not sure, thought it might be that I was checking out using --single-branch, but just tested pulling the full repo and it failed the same way.

view this post on Zulip Gino Canessa (Jun 01 2021 at 20:10):

Hmm, one more thing to check here.

view this post on Zulip Gino Canessa (Jun 01 2021 at 20:18):

Not that either.. was thinking it didn't like me using multiple directories for the branches I'm building (e.g., directory R4B, R5, etc.). Blew out everything in .../.gradle/caches and anything #current in .../.fhir/, cleared all of the folders I had for branches and started fresh. Same problem.

view this post on Zulip Gino Canessa (Jun 01 2021 at 20:29):

Still failing, tried: checking out the specific commit (as in the CI build), swapping out JDK. Publishing R5 still works.

view this post on Zulip John Moehrke (Jun 01 2021 at 20:34):

I pulled latest fhir core, switched to R4B, and successfully built.

view this post on Zulip John Moehrke (Jun 01 2021 at 20:35):

(well build said "BUILD SUCCESSFUL".. lots of errors and such along the way, but I have no idea if that was expected or not.)

view this post on Zulip Gino Canessa (Jun 01 2021 at 20:41):

Ok, looks like if I completely blow out .../.gradle and .../.fhir it can pass. So, not sure what was getting cached there. Thanks for all the help!

view this post on Zulip Gino Canessa (Jun 01 2021 at 21:44):

Just for reference, after doing that I am able to build R4B and R5 back and forth without issue. :shrug:

view this post on Zulip John Moehrke (Jun 01 2021 at 23:06):

Wonder if the clean script should kill these various cache locations?

view this post on Zulip Gino Canessa (Jun 01 2021 at 23:32):

Maybe? Kind of scary removing things from a user’s home directory (in case something goes awry)

view this post on Zulip Mark Iantorno (Jun 01 2021 at 23:32):

so, the gradle cache directory would be the only thing that would need to be deleted on the build system side

view this post on Zulip Mark Iantorno (Jun 01 2021 at 23:32):

I'm curious about this .fhir directory though

view this post on Zulip Mark Iantorno (Jun 01 2021 at 23:32):

this is new to me

view this post on Zulip Mark Iantorno (Jun 01 2021 at 23:32):

is that generated through the build process?

view this post on Zulip Grahame Grieve (Jun 01 2021 at 23:47):

that's the local package cache, but I don't know why that would be relevant for a kindle build

view this post on Zulip Gino Canessa (Jun 02 2021 at 14:05):

I'll admit I was getting annoyed, so I skipped from removing ~/.gradle/caches to removing ~/.gradle and ~/.fhir. It's quite possible it was something else in the gradle directory that was causing the issue, I was just tired of poking and prodding.


Last updated: Apr 12 2022 at 19:14 UTC