-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skip shared lib build / deploy if commits did not change #103
Comments
As I see it there are two options:
(2) assumes that we are actually building an image in OpenShift, which me might not do ... As a side note, this might also be helpful for scenarios where we have multiple pipelines within one repository. This is possible since a few weeks (by adding more webhooks to a repo, and adjusting the component name of each). In that case, we probably only want to build each pipeline if the folder in which the pipeline is has changed compared to the previous commit. |
@clemensutschig Regarding the target: I would take this off from 1.2.0, and put it into the next release ... |
I think this is related to #155. I'm doubtful this will be make it into v2. @clemensutschig @metmajer Objections to move it to 3? Or do you have anyone that could work on this? |
Taking this out of ODS 2 ... let's consider again when we prioritise for ODS 3. |
OMG .. @metmajer - you gave me the enlighting thought ... in the MRO we can check before calling The tricky part is the export metadata commit from the finalize stage.. which is build commit +1 ... here i need to think more.. git log -2?
And we only do all this on the currently deployed version.. so no (rocket-) science... this will improve mro performance hugely.. @michaelsauter thoughts? |
Makes we wonder ... if you "build the same commit again" - aren't we actually building a new SHA? Say we run the orchestration pipeline for the first time, we build SHA Maybe we should link the commit that is created in the finalize stage to the build commit ... basically: if the orchestration pipeline finds HEAD to be a commit that the orchestration pipeline itself created in a previous pipeline, then one can check the commit that was built originally. |
I have a first prototype running.. which takes the latest committed |
ok - this will ONLY work for Dev .. w/o changing @michaelsauter 's implementation too much - we only commt the state of dev - so I don't have any place to store a Q build identifier ... which imho is not a big deal, because on dev - you want to try over and over again |
During testing of the MRO lib - we figured out that the shared lib will rebuild the component even if neither the shared lib commit or the component commit changed.
This should be changed, if nothing changed, just return, and don't build
@metmajer fyi
The text was updated successfully, but these errors were encountered: