Skip to content

Unset the active_clients_file before new test is assigned#2339

Merged
hpatro merged 1 commit intovalkey-io:unstablefrom
sarthakaggarwal97:fix-testfile-bug
Jul 10, 2025
Merged

Unset the active_clients_file before new test is assigned#2339
hpatro merged 1 commit intovalkey-io:unstablefrom
sarthakaggarwal97:fix-testfile-bug

Conversation

@sarthakaggarwal97
Copy link
Contributor

With the change #2276, there are some cases where the the active_clients_file is not set.

can't unset "::active_clients_file(sock11d811610)": no such element in array
    while executing
"unset ::active_clients_file($fd)"
    (procedure "read_from_test_client" line 22)
    invoked from within
"read_from_test_client sock11d811610"

It is because when the test is done, we were unsetting the active_clients_file after the new task was assigned. Ideally we should unset it before that since the first task is assigned via ready state. make test is consistently passing now.

@sarthakaggarwal97 sarthakaggarwal97 requested a review from hpatro July 10, 2025 17:31
@codecov
Copy link

codecov bot commented Jul 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.48%. Comparing base (6e24028) to head (9da391a).
Report is 3 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #2339      +/-   ##
============================================
+ Coverage     71.44%   71.48%   +0.04%     
============================================
  Files           123      123              
  Lines         67092    67094       +2     
============================================
+ Hits          47932    47961      +29     
+ Misses        19160    19133      -27     

see 10 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hpatro hpatro merged commit e9edba4 into valkey-io:unstable Jul 10, 2025
51 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