-
Notifications
You must be signed in to change notification settings - Fork 154
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
[flakiness] kubernetes_secrets provider unit tests #7057
[flakiness] kubernetes_secrets provider unit tests #7057
Conversation
This pull request does not have a backport label. Could you fix it @pkoutsovasilis? 🙏
|
buildkite test this |
017b6f2
to
d63b1a3
Compare
💛 Build succeeded, but was flaky
Failed CI StepsHistory
|
|
created a new issue to capture a new Flaky test here. The other failures are already reported thus I will retry |
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
* fix: loosen up redundant time constraints in unit-test * fix: correct unit-test name * fix: add debug logs for Fetch when cache is disabled (cherry picked from commit 02fae02) # Conflicts: # internal/pkg/composable/providers/kubernetessecrets/kubernetes_secrets.go # internal/pkg/composable/providers/kubernetessecrets/kubernetes_secrets_test.go
* fix: loosen up redundant time constraints in unit-test * fix: correct unit-test name * fix: add debug logs for Fetch when cache is disabled (cherry picked from commit 02fae02)
* fix: loosen up redundant time constraints in unit-test * fix: correct unit-test name * fix: add debug logs for Fetch when cache is disabled (cherry picked from commit 02fae02)
* fix: loosen up redundant time constraints in unit-test * fix: correct unit-test name * fix: add debug logs for Fetch when cache is disabled (cherry picked from commit 02fae02)
* fix: loosen up redundant time constraints in unit-test * fix: correct unit-test name * fix: add debug logs for Fetch when cache is disabled (cherry picked from commit 02fae02) Co-authored-by: Panos Koutsovasilis <panos.koutsovasilis@elastic.co>
* fix: loosen up redundant time constraints in unit-test * fix: correct unit-test name * fix: add debug logs for Fetch when cache is disabled (cherry picked from commit 02fae02) Co-authored-by: Panos Koutsovasilis <panos.koutsovasilis@elastic.co>
* fix: loosen up redundant time constraints in unit-test * fix: correct unit-test name * fix: add debug logs for Fetch when cache is disabled (cherry picked from commit 02fae02) Co-authored-by: Panos Koutsovasilis <panos.koutsovasilis@elastic.co>
* fix: loosen up redundant time constraints in unit-test * fix: correct unit-test name * fix: add debug logs for Fetch when cache is disabled (cherry picked from commit 02fae02) # Conflicts: # internal/pkg/composable/providers/kubernetessecrets/kubernetes_secrets.go # internal/pkg/composable/providers/kubernetessecrets/kubernetes_secrets_test.go
What does this PR do?
This PR introduces the following fixes and improvements:
Loosens Time Constraints in Unit Tests (needed for certain type of CI runners):
TTLDelete
value in test configurations was increased from2s
to10s
, ensuring tests have more leeway in processing cache expiration.waitForSignal
value was adjusted from1s
to2s
to reduce test flakiness.Adds Debug Logging for Fetch When Cache is Disabled: relevant comment
Fixes a Typo in a Unit Test Name: relevant comment
"key in secret not found"
was incorrectly named and is now corrected to"key in secret found"
.Why is it important?
Fixes a test failure (
Test_Run/secret_no-update_and_no-signal
) that caused CI flakinessChecklist
./changelog/fragments
using the changelog tool.Disruptive User Impact
No expected impact on users. These changes are limited to debugging logs and test improvements.
How to test this PR locally
Related issues