8000 Fix e2e tests when using '--istio.test.revisions' to specify multiple revisions by Winbobob · Pull Request #56548 · istio/istio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix e2e tests when using '--istio.test.revisions' to specify multiple revisions #56548

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Winbobob
Copy link
Contributor
@Winbobob Winbobob commented Jun 9, 2025

Please provide a description of this PR:

  • When using --istio.test.revisions to specify multiple Istio revisions for the e2e tests, deployment names will append with the revision name. Here is the K8s yaml template: https://github.com/istio/istio/blob/1.26.1/pkg/test/framework/components/echo/kube/templates/deployment.yaml#L13-L17.
  • This PR makes corresponding changes to fix the e2e tests when using '--istio.test.revisions' to specify multiple revisions.
    • TestServerRouting: make the expected podnames contains all items with certain subset version instead of only the first item.
    • TestServiceRestart: make sure find the correct deployment names to restart when there are multiple Istio revision.

@Winbobob Winbobob requested a review from a team as a code owner June 9, 2025 03:50
@istio-policy-bot istio-policy-bot added area/test and release release-notes-none Indicates a PR that does not require release notes. labels Jun 9, 2025
@istio-testing istio-testing added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 9, 2025
@Stevenjin8
Copy link
Contributor

Just making sure I understand, when we pass the compatibility flags and revisions flags, the test framework will create multiple echo deployments, one for each revision. In a lot of the tests, we send to the service, so we can't be sure which revision we'll end up at.

@Winbobob
Copy link
Contributor Author
Winbobob commented Jun 9, 2025

e pass the compatibility flags and revisions flags, the test framework will create multiple echo deployments, one for each revision. In a lot of the tests, we send to the service, so we can't be sure which revision we'll end up at.

Service name does not contain revision, so we should be good. Here I try to fix e2e tests related to deployments/pods, which have revision in their names.

@Winbobob Winbobob requested review from a team as code owners June 9, 2025 18:03
@Winbobob
Copy link
Contributor Author

/test unit-tests

@Winbobob
Copy link
Contributor Author

cc @howardjohn, mind taking a look if you have a chance? Thanks a lot

@Winbobob Winbobob force-pushed the zheweihu/improve-e2e-tests branch from e203396 to d7d0e7b Compare June 22, 2025 01:02
@Winbobob
Copy link
Contributor Author

/test unit-tests-arm64

@keithmattix keithmattix self-assigned this Jun 23, 2025
Copy link
Contributor
@keithmattix keithmattix left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member
@dhawton dhawton left a comment

Choose a reason for hiding this comment

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

Remove the release note. Release notes are only for changes the end users see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test and release release-notes-none Indicates a PR that does not require release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants
0