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 #2581 UnixDomainSocketConnection' object has no attribute '_command_packer' #2583

Merged
merged 3 commits into from Feb 8, 2023

Conversation

prokazov
Copy link
Contributor

@prokazov prokazov commented Feb 8, 2023

Pull Request check-list

Please make sure to review and check all of these items:

  • Does $ tox pass with this change (including linting)?
  • Do the CI tests pass with this change (enable it first in your forked repo and wait for the github action build to finish)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
  • Is there an example added to the examples folder (if applicable)?
  • Was the change added to CHANGES file?

NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.

Description of change

Apparently there is no end-to-end tests for Unix sockets
so automation didn't catch it. I assume that setting up
the domain sockets reliably in dockerized/tox environment is not that easy.
Added test for pack_command specifically.

…command_packer' .

Apparently there is no end-to-end tests for Unix sockets
 so automation didn't catch it.  I assume that setting up
domain sockets reliably  in dockerized environment is not
very trivial.
Added test for pack_command specifically.
Locally:
" congratulations :)"
hiredis doesn't treat memoryviews differently.
@codecov-commenter
Copy link

codecov-commenter commented Feb 8, 2023

Codecov Report

Base: 92.28% // Head: 92.27% // Decreases project coverage by -0.02% ⚠️

Coverage data is based on head (b6664d3) compared to base (5cb5712).
Patch coverage: 100.00% of modified lines in pull request are covered.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2583      +/-   ##
==========================================
- Coverage   92.28%   92.27%   -0.02%     
==========================================
  Files         115      115              
  Lines       29736    29744       +8     
==========================================
+ Hits        27442    27446       +4     
- Misses       2294     2298       +4     
Impacted Files Coverage Δ
redis/connection.py 86.78% <100.00%> (+0.01%) ⬆️
tests/test_connection.py 98.34% <100.00%> (+0.10%) ⬆️
tests/test_asyncio/test_search.py 98.29% <0.00%> (-0.35%) ⬇️
tests/test_cluster.py 96.64% <0.00%> (-0.22%) ⬇️
tests/test_asyncio/test_cluster.py 97.60% <0.00%> (+0.12%) ⬆️

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.

@dvora-h dvora-h merged commit 2b470cb into redis:master Feb 8, 2023
40 checks passed
@woutdenolf
Copy link
Contributor

I can confirm this fixes the issue.

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.

None yet

4 participants