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

chore: bump gotestsum and fix flakey test causing nil channel send #2934

Merged
merged 5 commits into from
Aug 9, 2023

Conversation

zachaller
Copy link
Collaborator

@zachaller zachaller commented Aug 4, 2023

gotestsum now fails on nil pointers by default which is why this test issue is being fixed here as well

Change order of defer to prevent using closed channel

So deferes are called in a last-in-first-out order this means,
that we would close the channel before canceling the context which could
lead to a nil pointer usage. Let's just manually control order. We will also deregister the callbacks.

@codecov
Copy link

codecov bot commented Aug 4, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (e1c6136) 81.74% compared to head (d770d5b) 81.74%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2934   +/-   ##
=======================================
  Coverage   81.74%   81.74%           
=======================================
  Files         134      134           
  Lines       20367    20367           
=======================================
  Hits        16649    16649           
  Misses       2861     2861           
  Partials      857      857           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2023

Go Published Test Results

2 040 tests   2 040 ✔️  2m 40s ⏱️
   118 suites         0 💤
       1 files           0

Results for commit d770d5b.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2023

E2E Tests Published Test Results

    4 files      4 suites   3h 39m 26s ⏱️
102 tests   90 ✔️   6 💤   6
426 runs  384 ✔️ 24 💤 18

For more details on these failures, see this check.

Results for commit d770d5b.

♻️ This comment has been updated with latest results.

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 changed the title chore: bump gotestsum chore: bump gotestsum and fix flakey test causing nil channel send Aug 8, 2023
Signed-off-by: zachaller <zachaller@users.noreply.github.com>
So deferes are called in a last-in-first-out order this means,
that we would close the channel before canceling the context which could
lead to a nil pointer usage. Let's just manually control order.

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>
Signed-off-by: zachaller <zachaller@users.noreply.github.com>
@sonarcloud
Copy link

sonarcloud bot commented Aug 8, 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
16.2% 16.2% Duplication

@zachaller zachaller merged commit 2684a5c into argoproj:master Aug 9, 2023
22 checks passed
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