-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 RemoveDeploymentTriggerDecorator order #30768
Conversation
9167104
to
9e190ce
Compare
it seems the issue is still there:
|
This comment has been minimized.
This comment has been minimized.
@@ -16,7 +15,7 @@ public void andThenVisit(DeploymentConfigSpecFluent<?> deploymentConfigSpec, Obj | |||
} | |||
|
|||
@Override | |||
public Class<? extends Decorator>[] after() { |
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.
This should not be removed.
The purpose of RemoveDeploymentTrigger
is to remove triggers either provided by the user or by the ApplyDeploymentTrigger
decorator. By removing this condition it's possible that RemoveDeploymentTrigger
runs before there is anything to remove.
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.
There is an issue with the implementation as commented directly on the code.
Also this is fixed as part of #30566 so we could possibly close this one.
Unfortunately, this is not fixing the issue even using your changes because the ApplyDeploymentTriggerDecorator from decorator is being applied the last:
|
9e190ce
to
16484eb
Compare
@iocanel I've just updated the changes that seem to consistently apply the decorators in the correct order. |
This comment has been minimized.
This comment has been minimized.
16484eb
to
ce2d2d6
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
6a34cf0
to
f9c4e60
Compare
This comment has been minimized.
This comment has been minimized.
Something really odd is happening with the dekorate logic that orders the decorators to be run. |
Are you sure that tests on CI are passing? I am seeing them as skipped.
|
+100 It makes totally sense to fix this from the root. |
7eaffce
to
15daf5a
Compare
I've just updated the pull request by providing a custom configurator, so we can fix this issue from the root. I reported a couple of issues in Dekorate, but not blockers. |
This comment has been minimized.
This comment has been minimized.
It seems that dekorateio/dekorate#1147 is indeed a blocker because for some reason, it expects a build service factory (??) in Kind projects. |
I'm going to confirm that this pull request #30591 introduced this issue and if so, I will revert those changes. |
15daf5a
to
46768d5
Compare
This comment has been minimized.
This comment has been minimized.
I've just confirmed that this issue has nothing to do with #30591. |
46768d5
to
e820786
Compare
Failing Jobs - Building e820786
Full information is available in the Build summary check run. Failures⚙️ JVM Tests - JDK 11 #- Failing: integration-tests/kubernetes/quarkus-standard-way
📦 integration-tests/kubernetes/quarkus-standard-way✖
⚙️ JVM Tests - JDK 18 #- Failing: integration-tests/kubernetes/quarkus-standard-way
📦 integration-tests/kubernetes/quarkus-standard-way✖
|
I think that issue was always there but only manifests itself under certain decorator combinations. |
Closing as this will be addressed in Dekorate. |
Related to quarkusio#30768 I don't know why but it's failing systematically in the jakarta-rewrite branch and I don't want it to be in the way of the migration.
The decorator RemoveDeploymentTriggerDecorator was not configured to be triggered before ChangeDeploymentTriggerDecorator, so sometimes the image stream tag was wrong.
This change fixes the failure spotted by the test OpenshiftWithDockerAndImageTest where the image stream tag was sometimes 0.1-SNAPSHOT and other times 1.0 when it should be always 1.0.
Relates to the random failures in https://github.com/dekorateio/dekorate/actions/runs/4023231521/jobs/6913879180 and also in the jakarta-rewrite branch