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: flakey TestWriteBackToInformer test #2621

Merged

Conversation

zachaller
Copy link
Collaborator

@zachaller zachaller commented Feb 23, 2023

This fixes the flakey unit test TestWriteBackToInformer I was able to easily reproduce the flake buy putting the test into a loop, when I switched out the code to use json marshaling it 3000 iterations passed.

This is possibly somewhat a hack solution for how we are using the fake client with informers. There could also be a bug upstream in k8s fake client.

Signed-off-by: zachaller <zachaller@users.noreply.github.com>
@github-actions
Copy link
Contributor

github-actions bot commented Feb 23, 2023

Go Published Test Results

1 859 tests   1 859 ✔️  2m 32s ⏱️
   113 suites         0 💤
       1 files           0

Results for commit d8c78f7.

♻️ This comment has been updated with latest results.

@codecov
Copy link

codecov bot commented Feb 23, 2023

Codecov Report

Base: 81.50% // Head: 81.52% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (d8c78f7) compared to base (14a2321).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2621      +/-   ##
==========================================
+ Coverage   81.50%   81.52%   +0.01%     
==========================================
  Files         131      131              
  Lines       19562    19562              
==========================================
+ Hits        15944    15947       +3     
+ Misses       2798     2795       -3     
  Partials      820      820              
Impacted Files Coverage Δ
rollout/templateref.go 82.98% <0.00%> (+1.54%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 23, 2023

E2E Tests Published Test Results

    2 files      2 suites   1h 39m 9s ⏱️
  96 tests   91 ✔️ 3 💤 2
194 runs  186 ✔️ 6 💤 2

For more details on these failures, see this check.

Results for commit d8c78f7.

♻️ This comment has been updated with latest results.

Signed-off-by: zachaller <zachaller@users.noreply.github.com>
Signed-off-by: zachaller <zachaller@users.noreply.github.com>
Signed-off-by: zachaller <zachaller@users.noreply.github.com>
@sonarcloud
Copy link

sonarcloud bot commented Feb 23, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
2.1% 2.1% Duplication

rollout/controller_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@leoluz leoluz left a comment

Choose a reason for hiding this comment

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

Added a comment.
Otherwise LGTM

Signed-off-by: zachaller <zachaller@users.noreply.github.com>
@sonarcloud
Copy link

sonarcloud bot commented Feb 23, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
2.1% 2.1% Duplication

Copy link
Contributor

@leoluz leoluz left a comment

Choose a reason for hiding this comment

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

LGTM

@zachaller zachaller merged commit 4b5d663 into argoproj:master Feb 23, 2023
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