-
Notifications
You must be signed in to change notification settings - Fork 43
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
Fix #560 - Check if the .spec.flow has changed before building #564
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have created a WF, I can see the build as usual.
I have changed the WF definition, and executed kubectl apply -f xxxx again.
I can't see a new build.
@ricardozanini looks like not working.
@wmedvede That's because we received the Now, I've added a CRC field in the status, so we know if the flow has changed since we control the status update, not the user. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have executed the following sequence:
- I deployed a workflow, the build_1 is produced, the workflow pod is started, etc.
- I did a breaking change in the workflow, and kubectl apply -f bla bla (I can see the new CRC generated)
- A new build_2 is stated as expected
- the new build_2 fails as expeced (see 2)
- I fixed the workflow, and did kubectl apply -f bla bla
- I can see the new CRC was generated, however no new build was started
- I do more changes in the workflow, kubectl apply bla bla bla again
- I can see the new CRC is generated
However, since the build_2, no new build is produced.
Not good.
@wmedvede, can you share the I'm just wondering if this behavior happened before this PR, so the bug might be somewhere else in the |
I believe the issue us reproducible for whatever workflow, but you can use this use case: Install the platform as pointed out, and then deploy the callback state timeouts.
to the value
The second build will start, but will fail. Since the sate definition wasn't changed.
and go to the workflows states, and change the name of the state also there:
This time, a potential new build should be good. p.s. the workflow DB is initialized automatically, no need to do a manual initialization |
Signed-off-by: Ricardo Zanini <[email protected]>
Signed-off-by: Ricardo Zanini <[email protected]>
e3d92d7
to
6ece147
Compare
@wmedvede rebased! |
…pache#564) * Fix apache#560 - Check if the .spec.flow has changed before building Signed-off-by: Ricardo Zanini <[email protected]> * Use CRC32 instead of comparing flows directly Signed-off-by: Ricardo Zanini <[email protected]> --------- Signed-off-by: Ricardo Zanini <[email protected]> (cherry picked from commit c429953)
…pache#564) (#96) * Fix apache#560 - Check if the .spec.flow has changed before building Signed-off-by: Ricardo Zanini <[email protected]> * Use CRC32 instead of comparing flows directly Signed-off-by: Ricardo Zanini <[email protected]> --------- Signed-off-by: Ricardo Zanini <[email protected]> (cherry picked from commit c429953) Co-authored-by: Ricardo Zanini <[email protected]>
…pache#564) * Fix apache#560 - Check if the .spec.flow has changed before building Signed-off-by: Ricardo Zanini <[email protected]> * Use CRC32 instead of comparing flows directly Signed-off-by: Ricardo Zanini <[email protected]> --------- Signed-off-by: Ricardo Zanini <[email protected]>
Description of the change:
Fix #560
Motivation for the change:
Checklist
How to backport a pull request to a different branch?
In order to automatically create a backporting pull request please add one or more labels having the following format
backport-<branch-name>
, where<branch-name>
is the name of the branch where the pull request must be backported to (e.g.,backport-7.67.x
to backport the original PR to the7.67.x
branch).Once the original pull request is successfully merged, the automated action will create one backporting pull request per each label (with the previous format) that has been added.
If something goes wrong, the author will be notified and at this point a manual backporting is needed.