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.
Running publication process now> Configure project :Kicking off FHIR publishing job!==============================Generating code using kindling version 1.0.1-SNAPSHOTFor more information on kindling, and to check latest version, check here:https://github.com/HL7/kindling==============================> Task :publishPublish FHIR in folder C:\specs\R4B @ Tue, Jun 1, 2021 14:07-0500 0.03 0sec 24MBBuild local copy 0.038 0sec 24MBDetected Java version: 14.0.2 from C:\Program Files\Java\jdk-14.0.2 on amd64 0.001 0sec 24MBLoad UTG Terminology 9.608 9sec 59MBLoad Package hl7.terminology#1.0.0Load Terminology Cache from C:\specs\R4B\vscache 0.606 10sec 143MB .. loaded 2.149 12sec 134MBChecking Source for C:\specs\R4B 0.004 12sec 134MBFull Build 1.417 13sec 162MBVersion 4.1.0-6e59feac78Load Loinc 0.294 14sec 166MBLoading 0.258 14sec 230MBLoad Common Bindings 0.012 14sec 230MBLoad Code Systems 0.175 14sec 250MBLoad Value Sets 0.053 14sec 258MBMissing IsModifierReason on FiveWs.statusLoad Resource Templates 2.194 16sec 854MBLoad Resources 0.038 16sec 874MBUnable to find invariant inv-0Unable to find invariant inv-0Unable to find invariant inv-0CodeSystem http://hl7.org/fhir/list-mode WG mismatch 4: is sd, want to set to fhirCodeSystem http://hl7.org/fhir/observation-status WG mismatch 4: is cds, want to set to ooUnable to find invariant inv-0Unable to find invariant inv-0Unable to find invariant inv-0Unable to find invariant inv-0CodeSystem http://hl7.org/fhir/namingsystem-type WG mismatch 4: is fhir, want to set to vocabValueSet http://hl7.org/fhir/ValueSet/namingsystem-type WG mismatch 4: is fhir, want to set to vocabCodeSystem http://hl7.org/fhir/namingsystem-identifier-type WG mismatch 4: is fhir, want to set to vocabValueSet http://hl7.org/fhir/ValueSet/namingsystem-identifier-type WG mismatch 4: is fhir, want to set to vocabUnable to find invariant inv-0ValueSet http://hl7.org/fhir/ValueSet/days-of-week WG mismatch 4: is fhir, want to set to paUnable to find invariant inv-0Unable to find invariant inv-0Unable to find invariant inv-0Unable to find invariant inv-0Unable to find invariant inv-0Unable to find invariant inv-0Unable to find invariant inv-0WARNING: Unable to create warnings file - one or more profiles-* files unavailable or invalidTo determine the cause of the build failure, look in the log prior to the warning and information messages immediately aboveError on line 14 XTTE0570: An empty sequence is not allowed as the value of variable $groups in variable groupsError SXXP0003: Error reported by XML parser: Premature end of file.This was a Full Build 14.706 31sec 1331MBFHIR build failure @ Tue, Jun 1, 2021 14:07-0500 1.826 33sec 1331MBError: Error loading C:\specs\R4B\source\activitydefinition\valueset-action-participant-role.xml: URL mismatch. Expected http://terminology.hl7.org/ValueSet/action-participant-role but found http://hl7.org/fhir/ValueSet/action-participant-roleorg.hl7.fhir.exceptions.FHIRException: Error loading C:\specs\R4B\source\activitydefinition\valueset-action-participant-role.xml: URL mismatch. Expected http://terminology.hl7.org/ValueSet/action-participant-role but found http://hl7.org/fhir/ValueSet/action-participant-role at org.hl7.fhir.definitions.parsers.ResourceParser.loadValueSet(ResourceParser.java:849) at org.hl7.fhir.definitions.parsers.ResourceParser.parseBinding(ResourceParser.java:713) at org.hl7.fhir.definitions.parsers.ResourceParser.parseED(ResourceParser.java:645) at org.hl7.fhir.definitions.parsers.ResourceParser.parseED(ResourceParser.java:650) at org.hl7.fhir.definitions.parsers.ResourceParser.parseED(ResourceParser.java:650) at org.hl7.fhir.definitions.parsers.ResourceParser.parseTypeDefinition(ResourceParser.java:477) at org.hl7.fhir.definitions.parsers.ResourceParser.parseResource(ResourceParser.java:460) at org.hl7.fhir.definitions.parsers.ResourceParser.parse(ResourceParser.java:116) at org.hl7.fhir.definitions.parsers.SourceParser.loadResource(SourceParser.java:1269) at org.hl7.fhir.definitions.parsers.SourceParser.parse(SourceParser.java:288) at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:580) at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:473)> Task :publish FAILEDFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':publish'.> Process 'command 'C:\Program Files\Java\jdk-14.0.2\bin\java.exe'' finished with non-zero exit value 1* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 35s1 actionable task: 1 executedPress any key to continue . . .
~#@❯ ./gradlew clean publish --stacktrace ❮ > Configure project :Kicking off FHIR publishing job!==============================Generating code using kindling version 1.0.1-SNAPSHOTFor more information on kindling, and to check latest version, check here:https://github.com/HL7/kindling==============================> Task :publishPublish FHIR in folder C:\specs\R4B @ Tue, Jun 1, 2021 14:44-0500 0.024 0sec 24MBBuild local copy 0.029 0sec 24MBDetected Java version: 14.0.2 from C:\Program Files\Java\jdk-14.0.2 on amd64 0.001 0sec 24MBLoad UTG Terminology 5.967 6sec 66MBLoad Package hl7.terminology#1.0.0Load Terminology Cache from C:\specs\R4B\vscache 0.597 6sec 62MB .. loaded 2.303 8sec 836MBChecking Source for C:\specs\R4B 0.007 8sec 836MBPartial Build (if you want a full build, just run the build again) 2.563 11sec 856MB Build: activitydefinition 0.001 11sec 856MBVersion 4.1.0-6e59feac78Load Loinc 0.291 11sec 868MBLoading 0.252 12sec 928MBLoad Common Bindings 0.014 12sec 932MBLoad Code Systems 0.132 12sec 948MBLoad Value Sets 0.043 12sec 956MBMissing IsModifierReason on FiveWs.statusLoad Resource Templates 2.974 15sec 670MBLoad Resources 0.022 15sec 686MBUnable to find invariant inv-0Unable to find invariant inv-0Unable to find invariant inv-0CodeSystem http://hl7.org/fhir/list-mode WG mismatch 4: is sd, want to set to fhirCodeSystem http://hl7.org/fhir/observation-status WG mismatch 4: is cds, want to set to ooUnable to find invariant inv-0Unable to find invariant inv-0Unable to find invariant inv-0Unable to find invariant inv-0CodeSystem http://hl7.org/fhir/namingsystem-type WG mismatch 4: is fhir, want to set to vocabValueSet http://hl7.org/fhir/ValueSet/namingsystem-type WG mismatch 4: is fhir, want to set to vocabCodeSystem http://hl7.org/fhir/namingsystem-identifier-type WG mismatch 4: is fhir, want to set to vocabValueSet http://hl7.org/fhir/ValueSet/namingsystem-identifier-type WG mismatch 4: is fhir, want to set to vocabUnable to find invariant inv-0ValueSet http://hl7.org/fhir/ValueSet/days-of-week WG mismatch 4: is fhir, want to set to paUnable to find invariant inv-0Unable to find invariant inv-0Unable to find invariant inv-0Unable to find invariant inv-0Unable to find invariant inv-0Unable to find invariant inv-0Unable to find invariant inv-0Errors: 0 Warnings: 0 Hints: 0===Resources with FMM forced to 0=== 17.072 32sec 1569MBThis was a Partial Build 0.0 32sec 1569MB Build: activitydefinition 0.0 32sec 1569MBFHIR build failure @ Tue, Jun 1, 2021 14:45-0500 1.977 34sec 1569MBError: Error loading C:\specs\R4B\source\activitydefinition\valueset-action-participant-role.xml: URL mismatch. Expected http://terminology.hl7.org/ValueSet/action-participant-role but found http://hl7.org/fhir/ValueSet/action-participant-roleorg.hl7.fhir.exceptions.FHIRException: Error loading C:\specs\R4B\source\activitydefinition\valueset-action-participant-role.xml: URL mismatch. Expected http://terminology.hl7.org/ValueSet/action-participant-role but found http://hl7.org/fhir/ValueSet/action-participant-role at org.hl7.fhir.definitions.parsers.ResourceParser.loadValueSet(ResourceParser.java:849) at org.hl7.fhir.definitions.parsers.ResourceParser.parseBinding(ResourceParser.java:713) at org.hl7.fhir.definitions.parsers.ResourceParser.parseED(ResourceParser.java:645) at org.hl7.fhir.definitions.parsers.ResourceParser.parseED(ResourceParser.java:650) at org.hl7.fhir.definitions.parsers.ResourceParser.parseED(ResourceParser.java:650) at org.hl7.fhir.definitions.parsers.ResourceParser.parseTypeDefinition(ResourceParser.java:477) at org.hl7.fhir.definitions.parsers.ResourceParser.parseResource(ResourceParser.java:460) at org.hl7.fhir.definitions.parsers.ResourceParser.parse(ResourceParser.java:116) at org.hl7.fhir.definitions.parsers.SourceParser.loadResource(SourceParser.java:1269) at org.hl7.fhir.definitions.parsers.SourceParser.parse(SourceParser.java:288) at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:580) at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:473)> Task :publish FAILEDFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':publish'.> Process 'command 'C:\Program Files\Java\jdk-14.0.2\bin\java.exe'' finished with non-zero exit value 1* Try:Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Exception is:org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':publish'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$3(ExecuteActionsTaskExecuter.java:186) at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:268) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:184) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:173) at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:109) at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56) at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195) at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75) at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68) at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62) at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$call$2(DefaultBuildOperationExecutor.java:76) at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54) at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:76) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52) at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:41) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:411) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:398) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:391) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:377) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(Man
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
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.
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.