Stream: committers
Topic: publish core FHIR with -watch
Sean McIlvenna (Jan 18 2022 at 18:56):
Is there a way to use publish.bat
with a watch option like you can with java -jar publisher.jar -ig ... -watch
?
Grahame Grieve (Jan 18 2022 at 19:36):
no. but it will do an incremental build automatically
Sean McIlvenna (Jan 19 2022 at 17:49):
so, if I run publish.bat
once and it takes 18 minutes, and then I run publish.bat
it shouldn't take as long?
David Pyke (Jan 19 2022 at 17:50):
Assuming you haven't changed anything that affects more than your resource, it should be much faster
Gino Canessa (Jan 19 2022 at 18:02):
But please be aware that the differential build sometimes misses changes, so make sure to run a full build before pushing your branch.
(The problem scenario I typically run into is that it does not differentiate between successful and failed builds when tracking partials - so if you change two resources and it fails, then you fix only one of them, you can end up with a passing partial but failing full).
Sean McIlvenna (Jan 19 2022 at 18:52):
hmmm. first publish took 18 minutes, second publish (without making ANY changes) took 17 minutes 48 seconds. maybe I'm missing something?
David Pyke (Jan 19 2022 at 18:53):
Did you do a Pull inbetween?
David Pyke (Jan 19 2022 at 18:54):
And if you did a no-change run, it'll assume that you want a full build as theirs nothing in a partial build
John Moehrke (Jan 19 2022 at 18:55):
hey, it was 12 seconds faster... that is ... faster
Sean McIlvenna (Jan 19 2022 at 19:23):
no, no pull, no changes. good to know "it'll assume you want a full build"
Sean McIlvenna (Jan 19 2022 at 19:23):
I just did a pull of 3+ changes and am going to re-publish
Sean McIlvenna (Jan 19 2022 at 19:23):
we'll see how long it takes
Sean McIlvenna (Jan 19 2022 at 19:28):
nice! done in 4 minutes flat!
Sean McIlvenna (Jan 19 2022 at 19:28):
much better
Sean McIlvenna (Jan 19 2022 at 19:28):
thx all
John Moehrke (Jan 19 2022 at 19:43):
second takes longer for me
John Moehrke (Jan 19 2022 at 19:55):
so, even if nothing changes on github, one should do a pull ?
John Moehrke (Jan 19 2022 at 19:58):
oh, because nothing obviously changed... the build tooling assumes you want a full build.. thus taking full time?
David Pyke (Jan 19 2022 at 20:13):
Right, since the change set is null, you can't want a partial build, there's nothing in the partial build set. So, it does a full build
John Moehrke (Jan 19 2022 at 20:25):
duh, I knew that. just needed to keep my office warm by running many builds.
David Pyke (Jan 19 2022 at 20:29):
I've heard of this low tech thing called fire. It's like FHIR but spelled wrong. You should look into it
Last updated: Apr 12 2022 at 19:14 UTC