FHIR Chat · Partial build succeeds when there are errors · committers

Stream: committers

Topic: Partial build succeeds when there are errors


view this post on Zulip Rik Smithies (Aug 01 2021 at 23:23):

It seems a partial build will say Success even when there are errors with examples. Is this a change? Build-Screenshot-2021-07-30-215039.png

view this post on Zulip Rik Smithies (Aug 02 2021 at 09:53):

and it seems the full build has same issue @Mark Iantorno
full-build-Screenshot-2021-08-02-105055.png

view this post on Zulip Mark Iantorno (Aug 03 2021 at 12:41):

What am I looking at here?

view this post on Zulip Mark Iantorno (Aug 03 2021 at 12:42):

I'm assuming this is a build of the website? What branch is this on? Is this only local? Or does this also happen remotely?

view this post on Zulip Rik Smithies (Aug 03 2021 at 13:58):

It's a local build of FHIR. It happens locally, and it didn't happen locally until recently. This was an R4B branch. Hard to see how it could be branch related, since the build software itself is behaving differently. Not sure about remotely, because that succeeds. But I am not sure if it succeeds with errors, because it succeeds, so I never went to check.

view this post on Zulip Mark Iantorno (Aug 03 2021 at 14:21):

Can you open a PR for the branch please? We can check the logs on the build server and see what the outcome is.

view this post on Zulip Mark Iantorno (Aug 03 2021 at 14:21):

Then, if it's still failing, I can look into it further

view this post on Zulip Rik Smithies (Aug 03 2021 at 14:40):

it would only show on a bad build (incorrect examples) and I have tried to avoid committing those, so there may well not be any on the build server.

view this post on Zulip Mark Iantorno (Aug 03 2021 at 14:47):

So the question you are asking is "why would the build throw errors, but still succeed?"

view this post on Zulip Mark Iantorno (Aug 03 2021 at 14:48):

Can you copy paste the actual errors as text.

view this post on Zulip Mark Iantorno (Aug 03 2021 at 14:48):

So I can look at them in the code

view this post on Zulip Mark Iantorno (Aug 03 2021 at 14:48):

Also, are they the same errors every time?

view this post on Zulip Lloyd McKenzie (Aug 03 2021 at 14:57):

I suspect Grahame loosened the rules because at one point (and possibly still), the examples were such a mess that failing the build because of them meant the build would be offline for an extended period. How many examples now fail?

view this post on Zulip Rik Smithies (Aug 03 2021 at 15:11):

@Mark Iantorno yes. But its not the errors that are the issue, its the lack of the build catching them. The error message is "build successful" ;-)
Anyway this is one:
ERROR @ Observation (line 0, col0): observation-example-genetics-brcapat:: Observation: Observation.effective[x]: minimum required = 1, but only found 0 (from http://hl7.org/fhir/StructureDefinition/devicemetricobservation) (src = InstanceValidator)

I have only noticed it on local builds where I am making changes and have broken the examples myself - and the build used to be a good way to find the errors. (It is not usually possible to validate examples outside of the build, because the schemas the build generates are not valid...). But now I look at other examples, there are lots of them.

view this post on Zulip Rik Smithies (Aug 03 2021 at 15:12):

@Lloyd McKenzie that makes sense. It may be because lots of failures about things like about contained references, which at least at one stage, were not validated correctly. But this may have had the effect of letting more bad examples in if people no longer notice that they fail.

view this post on Zulip Rik Smithies (Aug 03 2021 at 15:12):

So in summary this is probably not something that needs a direct fix itself (unless maybe a "strict" mode?), but is now a mess :-)

view this post on Zulip Grahame Grieve (Aug 17 2021 at 03:25):

R4B examples aren't valid, but I thought R5 fails if they're not. Not necessarily for a partial build though

view this post on Zulip Gino Canessa (Aug 17 2021 at 12:27):

FWIW, the problem I was running into yesterday (typo in xml ‘value’ for the short description) also only showed up in full builds. Partial ones reported success.


Last updated: Apr 12 2022 at 19:14 UTC