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 integration tests: wait for route to be accepted #339

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

eguzki
Copy link
Contributor

@eguzki eguzki commented Nov 24, 2023

No description provided.

@eguzki eguzki requested a review from a team as a code owner November 24, 2023 15:50
Copy link

codecov bot commented Nov 24, 2023

Codecov Report

Merging #339 (eb0403c) into main (050f417) will increase coverage by 0.42%.
The diff coverage is 0.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #339      +/-   ##
==========================================
+ Coverage   65.28%   65.70%   +0.42%     
==========================================
  Files          35       35              
  Lines        3794     3797       +3     
==========================================
+ Hits         2477     2495      +18     
+ Misses       1123     1114       -9     
+ Partials      194      188       -6     
Flag Coverage Δ
integration 71.27% <ø> (+0.89%) ⬆️
unit 59.40% <0.00%> (-0.11%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
api/v1beta1 (u) ∅ <ø> (∅)
pkg/common (u) 76.92% <ø> (ø)
pkg/istio (u) 30.24% <ø> (ø)
pkg/log (u) 31.81% <ø> (ø)
pkg/reconcilers (u) 33.33% <0.00%> (-0.36%) ⬇️
pkg/rlptools (u) 56.46% <ø> (ø)
controllers (i) 71.27% <ø> (+0.89%) ⬆️
Files Coverage Δ
pkg/reconcilers/targetref_reconciler.go 30.68% <0.00%> (-0.50%) ⬇️

... and 5 files with indirect coverage changes

@eguzki eguzki force-pushed the fix-rlp-integration-tests branch from b8ac79d to eb230e8 Compare November 24, 2023 23:20
@eguzki eguzki changed the title rlp integration tests: wait for route to be accepted integration tests: wait for route to be accepted Nov 26, 2023
@eguzki eguzki changed the title integration tests: wait for route to be accepted fix integration tests: wait for route to be accepted Nov 26, 2023
@@ -282,6 +272,7 @@ var _ = Describe("AuthPolicy controller", func() {
}
err = k8sClient.Create(context.Background(), otherRoute)
Expect(err).ToNot(HaveOccurred())
Eventually(testRouteIsAccepted(client.ObjectKeyFromObject(otherRoute)), time.Minute, 5*time.Second).Should(BeTrue())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

@maleck13 maleck13 left a comment

Choose a reason for hiding this comment

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

looks good to me. One suggestion may be (in a diff pr) to have a set of common timeouts defined and re-used

@eguzki
Copy link
Contributor Author

eguzki commented Nov 27, 2023

One suggestion may be (in a diff pr) to have a set of common timeouts defined and re-used

I was thinking exactly the same.

@eguzki
Copy link
Contributor Author

eguzki commented Nov 27, 2023

I run the integration tests few times and they did not fail. Hopefully, no more flaky tests for a while at least

Screenshot 2023-11-27 at 10-45-11 fix integration tests wait for route to be accepted · Kuadrant_kuadrant-operator@eb0403c

@eguzki eguzki merged commit c79563f into main Nov 27, 2023
20 of 21 checks passed
@eguzki eguzki deleted the fix-rlp-integration-tests branch November 27, 2023 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants