Skip to content

Skip succeeded#842

Merged
istio-testing merged 2 commits intoistio-ecosystem:mainfrom
libesz:skip-succeeded
May 22, 2025
Merged

Skip succeeded#842
istio-testing merged 2 commits intoistio-ecosystem:mainfrom
libesz:skip-succeeded

Conversation

@libesz
Copy link
Copy Markdown
Contributor

@libesz libesz commented May 22, 2025

What type of PR is this?

  • Enhancement / New Feature
  • Bug Fix
  • Refactor
  • Optimization
  • Test
  • Documentation Update

What this PR does / why we need it:

It skips Succeeded pods (e.g. from Completed Jobs) when determining if a particular revision is used. Current code does not respect the actual state of the pod. Succeeded pods seems can safely ignored.

Which issue(s) this PR fixes:

Fixes #839

Related Issue/PR #

Additional information:

@istio-testing
Copy link
Copy Markdown
Collaborator

Hi @libesz. Thanks for your PR.

I'm waiting for a istio-ecosystem or istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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.

libesz added 2 commits May 22, 2025 17:08
Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>
Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>
@fjglira
Copy link
Copy Markdown
Contributor

fjglira commented May 22, 2025

/ok-to-test

@istio-testing
Copy link
Copy Markdown
Collaborator

@libesz: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
docs-test_sail-operator_main 6228a62 link false /test docs-test
Details

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. I understand the commands that are listed here.

Copy link
Copy Markdown
Collaborator

@dgn dgn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Copy link
Copy Markdown
Collaborator

@dgn dgn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, too quick to approve. This will also need to be patched in the IstioRevisionTag controller code. Sadly, we're still duplicating much of the logic there :/

@libesz
Copy link
Copy Markdown
Contributor Author

libesz commented May 22, 2025

sorry, too quick to approve. This will also need to be patched in the IstioRevisionTag controller code. Sadly, we're still duplicating much of the logic there :/

Didn't I add the same condition properly to the tag controller? https://github.com/istio-ecosystem/sail-operator/pull/842/files#diff-1815355208fa74b842698b65259042e322752e47f5dd6bea9cbb4f2256781403R371
I admit the test is not yet duplicated 😄

@dgn
Copy link
Copy Markdown
Collaborator

dgn commented May 22, 2025

sorry, too quick to approve. This will also need to be patched in the IstioRevisionTag controller code. Sadly, we're still duplicating much of the logic there :/

Didn't I add the same condition properly to the tag controller? https://github.com/istio-ecosystem/sail-operator/pull/842/files#diff-1815355208fa74b842698b65259042e322752e47f5dd6bea9cbb4f2256781403R371 I admit the test is not yet duplicated 😄

ah- I saw only one test added, didn't look right. This works 🙂

@istio-testing istio-testing merged commit 3037eff into istio-ecosystem:main May 22, 2025
12 of 13 checks passed
openshift-service-mesh-bot pushed a commit to openshift-service-mesh-bot/sail-operator that referenced this pull request May 22, 2025
* upstream/main:
  Skip succeeded (istio-ecosystem#842)
openshift-service-mesh-bot pushed a commit to openshift-service-mesh-bot/sail-operator that referenced this pull request May 22, 2025
* upstream/main:
  Skip succeeded (istio-ecosystem#842)
fjglira pushed a commit to fjglira/sail-operator that referenced this pull request Jun 2, 2025
* skip succeeded pods

Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>

* ut added to verify succeeded pods are skipped

Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>

---------

Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>
Signed-off-by: Francisco H <frherrer@redhat.com>
istio-testing pushed a commit that referenced this pull request Jun 3, 2025
* Add to vendors_default the possibility to add values for istiocni

Signed-off-by: Francisco H <frherrer@redhat.com>

* Fix lint

Signed-off-by: Francisco H <frherrer@redhat.com>

* Update test for vendors default

Signed-off-by: Francisco H <frherrer@redhat.com>

* Adding code coverage: new unit test over istiocni controller

Signed-off-by: Francisco H <frherrer@redhat.com>

* Update read me

Signed-off-by: Francisco H <frherrer@redhat.com>

* Skip succeeded (#842)

* skip succeeded pods

Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>

* ut added to verify succeeded pods are skipped

Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>

---------

Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>
Signed-off-by: Francisco H <frherrer@redhat.com>

* enhancements: use issue ID's as SEP numbers (#849)

Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
Signed-off-by: Francisco H <frherrer@redhat.com>

* Add unit test

Signed-off-by: Francisco H <frherrer@redhat.com>

* Update tests/e2e/README.md

Co-authored-by: Daniel Grimm <dgrimm@redhat.com>
Signed-off-by: Francisco H <frherrer@redhat.com>

* Update read me from review

Signed-off-by: Francisco H <frherrer@redhat.com>

---------

Signed-off-by: Francisco H <frherrer@redhat.com>
Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>
Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
Co-authored-by: Gergo Huszty <gergo.huszty@digitaltrip.hu>
Co-authored-by: Daniel Grimm <dgrimm@redhat.com>
istio-testing pushed a commit to istio-testing/sail-operator that referenced this pull request Jun 6, 2025
* skip succeeded pods

Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>

* ut added to verify succeeded pods are skipped

Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>

---------

Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>
Signed-off-by: Francisco H <frherrer@redhat.com>
fjglira added a commit to fjglira/sail-operator that referenced this pull request Jun 11, 2025
…tio-ecosystem#845)

* Add to vendors_default the possibility to add values for istiocni

Signed-off-by: Francisco H <frherrer@redhat.com>

* Fix lint

Signed-off-by: Francisco H <frherrer@redhat.com>

* Update test for vendors default

Signed-off-by: Francisco H <frherrer@redhat.com>

* Adding code coverage: new unit test over istiocni controller

Signed-off-by: Francisco H <frherrer@redhat.com>

* Update read me

Signed-off-by: Francisco H <frherrer@redhat.com>

* Skip succeeded (istio-ecosystem#842)

* skip succeeded pods

Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>

* ut added to verify succeeded pods are skipped

Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>

---------

Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>
Signed-off-by: Francisco H <frherrer@redhat.com>

* enhancements: use issue ID's as SEP numbers (istio-ecosystem#849)

Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
Signed-off-by: Francisco H <frherrer@redhat.com>

* Add unit test

Signed-off-by: Francisco H <frherrer@redhat.com>

* Update tests/e2e/README.md

Co-authored-by: Daniel Grimm <dgrimm@redhat.com>
Signed-off-by: Francisco H <frherrer@redhat.com>

* Update read me from review

Signed-off-by: Francisco H <frherrer@redhat.com>

---------

Signed-off-by: Francisco H <frherrer@redhat.com>
Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>
Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
Co-authored-by: Gergo Huszty <gergo.huszty@digitaltrip.hu>
Co-authored-by: Daniel Grimm <dgrimm@redhat.com>
fjglira added a commit to fjglira/sail-operator that referenced this pull request Jun 11, 2025
…tio-ecosystem#845)

* Add to vendors_default the possibility to add values for istiocni

Signed-off-by: Francisco H <frherrer@redhat.com>

* Fix lint

Signed-off-by: Francisco H <frherrer@redhat.com>

* Update test for vendors default

Signed-off-by: Francisco H <frherrer@redhat.com>

* Adding code coverage: new unit test over istiocni controller

Signed-off-by: Francisco H <frherrer@redhat.com>

* Update read me

Signed-off-by: Francisco H <frherrer@redhat.com>

* Skip succeeded (istio-ecosystem#842)

* skip succeeded pods

Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>

* ut added to verify succeeded pods are skipped

Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>

---------

Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>
Signed-off-by: Francisco H <frherrer@redhat.com>

* enhancements: use issue ID's as SEP numbers (istio-ecosystem#849)

Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
Signed-off-by: Francisco H <frherrer@redhat.com>

* Add unit test

Signed-off-by: Francisco H <frherrer@redhat.com>

* Update tests/e2e/README.md

Co-authored-by: Daniel Grimm <dgrimm@redhat.com>
Signed-off-by: Francisco H <frherrer@redhat.com>

* Update read me from review

Signed-off-by: Francisco H <frherrer@redhat.com>

---------

Signed-off-by: Francisco H <frherrer@redhat.com>
Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>
Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
Co-authored-by: Gergo Huszty <gergo.huszty@digitaltrip.hu>
Co-authored-by: Daniel Grimm <dgrimm@redhat.com>
istio-testing pushed a commit that referenced this pull request Jun 13, 2025
…) (#897)

* Add to vendors_default the possibility to add values for istiocni



* Fix lint



* Update test for vendors default



* Adding code coverage: new unit test over istiocni controller



* Update read me



* Skip succeeded (#842)

* skip succeeded pods



* ut added to verify succeeded pods are skipped



---------




* enhancements: use issue ID's as SEP numbers (#849)




* Add unit test



* Update tests/e2e/README.md




* Update read me from review



---------

Signed-off-by: Francisco H <frherrer@redhat.com>
Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>
Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
Co-authored-by: Gergo Huszty <gergo.huszty@digitaltrip.hu>
Co-authored-by: Daniel Grimm <dgrimm@redhat.com>
@dgn
Copy link
Copy Markdown
Collaborator

dgn commented Jul 3, 2025

/cherry-pick release-1.26

@istio-testing
Copy link
Copy Markdown
Collaborator

@dgn: new pull request created: #974

Details

In response to this:

/cherry-pick release-1.26

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.

dgn pushed a commit to dgn/sail-operator that referenced this pull request Mar 17, 2026
* skip succeeded pods

Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>

* ut added to verify succeeded pods are skipped

Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>

---------

Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>
Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
dgn added a commit to dgn/sail-operator that referenced this pull request Mar 17, 2026
…tio-ecosystem#845)

* Add to vendors_default the possibility to add values for istiocni

Signed-off-by: Francisco H <frherrer@redhat.com>

* Fix lint

Signed-off-by: Francisco H <frherrer@redhat.com>

* Update test for vendors default

Signed-off-by: Francisco H <frherrer@redhat.com>

* Adding code coverage: new unit test over istiocni controller

Signed-off-by: Francisco H <frherrer@redhat.com>

* Update read me

Signed-off-by: Francisco H <frherrer@redhat.com>

* Skip succeeded (istio-ecosystem#842)

* skip succeeded pods

Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>

* ut added to verify succeeded pods are skipped

Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>

---------

Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>
Signed-off-by: Francisco H <frherrer@redhat.com>

* enhancements: use issue ID's as SEP numbers (istio-ecosystem#849)

Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
Signed-off-by: Francisco H <frherrer@redhat.com>

* Add unit test

Signed-off-by: Francisco H <frherrer@redhat.com>

* Update tests/e2e/README.md

Co-authored-by: Daniel Grimm <dgrimm@redhat.com>
Signed-off-by: Francisco H <frherrer@redhat.com>

* Update read me from review

Signed-off-by: Francisco H <frherrer@redhat.com>

---------

Signed-off-by: Francisco H <frherrer@redhat.com>
Signed-off-by: Gergo Huszty <gergo.huszty@ibm.com>
Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
Co-authored-by: Gergo Huszty <gergo.huszty@digitaltrip.hu>
Co-authored-by: Daniel Grimm <dgrimm@redhat.com>
Signed-off-by: Daniel Grimm <dgrimm@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.

[BUG] Istiorevision in use detection for Completed pods

4 participants