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

deflake tracking-redir-broken test #1628

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

ranshid
Copy link
Member

@ranshid ranshid commented Jan 27, 2025

This address 2 issues:

  1. It is possible (somehow) that the inner server client (r) was not working resp 3 when entering this test.
    this makes sure it does.

  2. in case the test failed it might leave the redirection client closed. there is a cross test assumption it should be open, so moved most of the assert checks to the end of the test.

example fail: https://github.com/valkey-io/valkey/actions/runs/12979601179/job/36195523412

This address 2 issues:

1. It is possible (somehow) that the inner server client (r)
was not working resp 3 when entering this test.
this makes sure it does.

2. in case the test failed it might leave the redirection client closed.
there is a cross test assumption it should be open, so moved most of the
assert checks to the end of the test.

Signed-off-by: Ran Shidlansik <[email protected]>
Copy link

codecov bot commented Jan 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.85%. Comparing base (2d0b8e3) to head (73ab499).
Report is 14 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #1628      +/-   ##
============================================
- Coverage     70.94%   70.85%   -0.09%     
============================================
  Files           121      121              
  Lines         65132    65174      +42     
============================================
- Hits          46207    46180      -27     
- Misses        18925    18994      +69     

see 24 files with indirect coverage changes

Comment on lines -250 to -252
assert {$res >= 0}
# Consume PING reply
assert_equal PONG [r read]
Copy link
Member

Choose a reason for hiding this comment

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

why this fail? Because the r is not in resp3?

Copy link
Member Author

Choose a reason for hiding this comment

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

I suspect that it did somehow. maybe the 'r' is disconnected and reconnected at some point

Copy link
Member

Choose a reason for hiding this comment

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

let's give it a try.

@ranshid ranshid merged commit 230efa4 into valkey-io:unstable Jan 28, 2025
49 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