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 ambient doc tests #15500

Merged
merged 5 commits into from
Jul 31, 2024
Merged

Fix ambient doc tests #15500

merged 5 commits into from
Jul 31, 2024

Conversation

craigbox
Copy link
Contributor

The "Extend waypoints with WebAssembly plugins" docs page had a flake where it would check for the Deployment created by a Gateway immediately after the gateway was created. It also depended on tests from the Getting Started guide, which has bitten us at least once.

I've refactored the tests to fix both problems, and updated the test docs to mention the ambient profile.

Further work may include setting up some helper scripts for labelling a namespace as ambient and cleaning up afterwards, but lots of the sidecar tests embed kubectl and istioctl as I have done here so we have precedent that we can iterate on later.

Closes #15498.

@craigbox craigbox requested review from a team as code owners July 31, 2024 09:30
@istio-testing istio-testing added the needs-rebase Indicates a PR needs to be rebased before being merged label Jul 31, 2024
@craigbox craigbox changed the title snip_annotate_bookinfo_gateway Fix ambient doc tests Jul 31, 2024
@istio-testing istio-testing added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 31, 2024
@istio-testing istio-testing removed the needs-rebase Indicates a PR needs to be rebased before being merged label Jul 31, 2024
@craigbox
Copy link
Contributor Author

/retest

Don't think you fixed authz-tcp sorry @bleggett

@bleggett
Copy link
Contributor

/retest

Don't think you fixed authz-tcp sorry @bleggett

I definitely didn't fix it, but I thought I had hacked around it, oh well.

@bleggett
Copy link
Contributor

/test doc.test.profile-default

@bleggett
Copy link
Contributor

Opened #15505

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.

1 small nit

grrr, I remember seeing that

Co-authored-by: Daniel Hawton <[email protected]>
@craigbox
Copy link
Contributor Author

1 small nit

grrr, I remember seeing that

@istio-testing istio-testing merged commit c6e477a into istio:master Jul 31, 2024
13 checks passed
@craigbox craigbox deleted the fix-ambient-tests branch July 31, 2024 22:58
wilsonwu added a commit to wilsonwu/istio.io that referenced this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix flaky test in /ambient/usage/extend-waypoint-wasm
5 participants