Skip to content
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 condition error of ManifestApplied. #273

Conversation

xuezhaojun
Copy link
Member

@xuezhaojun xuezhaojun commented Jun 1, 2024

Summary

This PR is related to the #268

It turns out Manifests will always return objects, it's BuildDeployWorks to decide whether the objects is match to the current mode.

And this time I tested with a self-build image on the test env.

@xuezhaojun xuezhaojun changed the title 🐛 Fix condition error of ManifestApplied. [WIP]:bug: Fix condition error of ManifestApplied. Jun 1, 2024
@xuezhaojun xuezhaojun changed the title [WIP]:bug: Fix condition error of ManifestApplied. 🐛 Fix condition error of ManifestApplied. Jun 1, 2024
@xuezhaojun
Copy link
Member Author

/assign @qiujian16
/assign @zhujian7

@qiujian16
Copy link
Member

could you add an integration test on this?

@xuezhaojun xuezhaojun force-pushed the fix-condition-error branch 2 times, most recently from 9516078 to c09e7e0 Compare June 3, 2024 06:32
@xuezhaojun
Copy link
Member Author

xuezhaojun commented Jun 3, 2024

could you add an integration test on this?

@qiujian16 It turns out there are there are u-t cases that are related to this, I've the condition check step here.

@qiujian16
Copy link
Member

Signed-off-by: xuezhaojun <zxue@redhat.com>
@xuezhaojun
Copy link
Member Author

@qiujian16
Copy link
Member

@morvencao do you know when ce test failed?

@xuezhaojun xuezhaojun closed this Jun 3, 2024
@xuezhaojun xuezhaojun reopened this Jun 3, 2024
@xuezhaojun xuezhaojun closed this Jun 3, 2024
@xuezhaojun xuezhaojun reopened this Jun 3, 2024
@xuezhaojun
Copy link
Member Author

xuezhaojun commented Jun 3, 2024

@qiujian16 e2e flake passed, please take another look.

@qiujian16
Copy link
Member

/approve
/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jun 3, 2024
Copy link
Contributor

openshift-ci bot commented Jun 3, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiujian16, xuezhaojun

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Jun 3, 2024
@qiujian16
Copy link
Member

/cherry-pick release-0.9

@openshift-cherrypick-robot
Copy link
Contributor

@qiujian16: once the present PR merges, I will cherry-pick it on top of release-0.9 in a new PR and assign it to you.

In response to this:

/cherry-pick release-0.9

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-merge-bot openshift-merge-bot bot merged commit 5c95275 into open-cluster-management-io:main Jun 3, 2024
34 of 36 checks passed
@openshift-cherrypick-robot
Copy link
Contributor

@qiujian16: #273 failed to apply on top of branch "release-0.9":

Applying: Fix condition error of ManifestApplied.
Using index info to reconstruct a base tree...
M	pkg/addonmanager/controllers/agentdeploy/controller.go
M	pkg/addonmanager/controllers/agentdeploy/hosted_sync_test.go
A	test/integration/cloudevents/agent_hosting_deploy_test.go
Falling back to patching base and 3-way merge...
Auto-merging test/integration/agent_hosting_deploy_test.go
Auto-merging pkg/addonmanager/controllers/agentdeploy/hosted_sync_test.go
Auto-merging pkg/addonmanager/controllers/agentdeploy/controller.go
CONFLICT (content): Merge conflict in pkg/addonmanager/controllers/agentdeploy/controller.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Fix condition error of ManifestApplied.
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-0.9

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@xuezhaojun xuezhaojun deleted the fix-condition-error branch June 3, 2024 13:37
xuezhaojun added a commit to xuezhaojun/addon-framework that referenced this pull request Jun 3, 2024
openshift-merge-bot bot pushed a commit that referenced this pull request Jun 3, 2024
Signed-off-by: xuezhaojun <zxue@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants