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

rlp e2e tests: fix sync issues #337

Merged
merged 2 commits into from
Nov 24, 2023
Merged

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 09:53
Copy link

codecov bot commented Nov 24, 2023

Codecov Report

Merging #337 (036f6eb) into main (099f4f2) will decrease coverage by 1.17%.
The diff coverage is 33.33%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #337      +/-   ##
==========================================
- Coverage   65.26%   64.10%   -1.17%     
==========================================
  Files          35       35              
  Lines        3792     3794       +2     
==========================================
- Hits         2475     2432      -43     
- Misses       1132     1163      +31     
- Partials      185      199      +14     
Flag Coverage Δ
integration 69.29% <100.00%> (-2.14%) ⬇️
unit 58.21% <0.00%> (-0.07%) ⬇️

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

Components Coverage Δ
api/v1beta1 (u) ∅ <ø> (∅)
pkg/common (u) 73.92% <ø> (ø)
pkg/istio (u) 30.24% <ø> (ø)
pkg/log (u) 31.81% <ø> (ø)
pkg/reconcilers (u) 33.68% <ø> (ø)
pkg/rlptools (u) 56.46% <0.00%> (-0.36%) ⬇️
controllers (i) 69.29% <100.00%> (-2.14%) ⬇️
Files Coverage Δ
controllers/ratelimitpolicy_istio_wasmplugin.go 77.77% <100.00%> (ø)
pkg/rlptools/wasm_utils.go 60.41% <0.00%> (-0.64%) ⬇️

... and 7 files with indirect coverage changes

blame running out of coffee
Copy link
Collaborator

@didierofrivia didierofrivia left a comment

Choose a reason for hiding this comment

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

So when we work on #87 we could stop relying on time based waiting assertions and check the status of the Wasmplugin. 🎖️


// Unfortunately, WasmPlugin does not have status yet
// Leaving this here for future use
//if !meta.IsStatusConditionTrue(wp.Status.Conditions, "Available") {
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍🏼

wpName := fmt.Sprintf("kuadrant-%s", gwName)
wasmPluginKey := client.ObjectKey{Name: wpName, Namespace: testNamespace}
wasmPluginKey := client.ObjectKey{Name: rlptools.WASMPluginName(gateway), Namespace: testNamespace}
Eventually(testWasmPluginIsAvailable(wasmPluginKey), time.Minute, 5*time.Second).Should(BeTrue())
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍🏼

@eguzki eguzki merged commit 5fc58e4 into main Nov 24, 2023
20 of 21 checks passed
@eguzki eguzki deleted the fix-rlp-e2e-test-race-condition branch November 24, 2023 10:40
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