Skip to content

Conversation

vladvildanov
Copy link
Collaborator

Pull Request check-list

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

  • Do tests and lints pass with this change?
  • 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

Please provide a description of the change here.

@vladvildanov vladvildanov merged commit 72cdaf6 into master Feb 11, 2025
35 checks passed
@vladvildanov vladvildanov deleted the vv-entraid-test-infra branch February 11, 2025 11:15
vladvildanov added a commit that referenced this pull request Feb 11, 2025
* test: Updated CredentialProvider test infrastructure * Added linter exclusion * Updated dev dependency * Codestyle fixes * Updated async test infra * Added missing constant
vladvildanov added a commit that referenced this pull request Feb 11, 2025
* Fixed flacky TokenManager test (#3468) * Fixed flacky TokenManager test * Fixed additional flacky test * Removed token count assertion * Skipped test on version 3.9 * Fix incorrect attribute reuse (#3456) add CacheEntry Co-authored-by: zhousheng06 <zhousheng06@meituan.com> Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com> * Expand type for EncodedT (#3472) As of PEP 688, type checkers will no longer implicitly consider bytearray to be compatible with bytes * Moved self._lock initialisation to Pool constructor (#3473) * Moved self._lock initialisation to Pool constructor * Added test case * Codestyle fixes * Added correct annotations * DOC-4423: add TCEs for various command pages (#3476) Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com> * DOC-4345 added testable JSON search examples for home page (#3407) * DOC-4345 added testable JSON search examples for home page * DOC-4345 avoid possible non-deterministic results in tests * DOC-4345 close connection at end of example * DOC-4345 remove unnecessary blank lines * Adding unit text fixes to improve compatibility with MacOS. (#3486) * Adding unit text fixes to improve compatibility with MacOS. * Applying review comments * Unifying the exception msg validation pattern for both test_connection.py files --------- Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com> * Add return type to `close` functions (#3496) * Add types to ConnectionPool.from_url (#3495) Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com> * Add types to execute method of pipelines (#3494) Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com> * DOC-4796 fixed capped lists example (#3493) Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com> * typing for client __init__ (#3357) * typing for client __init__ * typing with string literals * retry_on_error more specific typing * retry typing * fix lint --------- Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com> * test: Updated CredentialProvider test infrastructure (#3502) * test: Updated CredentialProvider test infrastructure * Added linter exclusion * Updated dev dependency * Codestyle fixes * Updated async test infra * Added missing constant * Updated package version * Updated testing versions and docs * Updated server versions * Fixed test --------- Co-authored-by: zs-neo <48560952+zs-neo@users.noreply.github.com> Co-authored-by: zhousheng06 <zhousheng06@meituan.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: David Dougherty <dwdougherty@gmail.com> Co-authored-by: andy-stark-redis <164213578+andy-stark-redis@users.noreply.github.com> Co-authored-by: petyaslavova <petya.slavova@redis.com> Co-authored-by: Patrick Arminio <patrick.arminio@gmail.com> Co-authored-by: Artur Mostowski <artur.mostowski@protonmail.com>
@akx
Copy link
Contributor

akx commented Feb 21, 2025

@vladvildanov Since redis-entraid requires redis==5.3.0b4, this makes the test suite inadvertently always install it, see e.g.

 Collecting redis~=5.3.0b3 (from redis-entraid==0.3.0b1->-r dev_requirements.txt (line 19)) Downloading redis-5.3.0b4-py3-none-any.whl.metadata (9.2 kB) 

in https://github.com/redis/redis-py/actions/runs/13260275313/job/37018078706?pr=3502.

As far as I can tell, this means that CI runs since this PR was merged (self-merged, without approval from anyone else? 😑) will not have actually necessarily tested code from the Git repo, but from that PyPI package.

I noticed this via #2930 (comment).

@vladvildanov
Copy link
Collaborator Author

@akx Not sure if you're right, just did a small test by making a test fail, the test case that is a part of GitHub repo, but not a part of PyPi package (~=5.3.0b3). So the CI actually running tests against repo.

https://github.com/redis/redis-py/actions/runs/13452667006/job/37589873057?pr=3520

@akx
Copy link
Contributor

akx commented Feb 21, 2025

@vladvildanov See the comment in #2930. It is certainly pulling version information from the inadvertently installed redis package.

@akx
Copy link
Contributor

akx commented Feb 21, 2025

Anyway, I made a PR to fix this. #3521

@petyaslavova petyaslavova added the maintenance Maintenance (CI, Releases, etc) label Apr 4, 2025
petyaslavova pushed a commit to Kakadus/redis-py that referenced this pull request May 13, 2025
* test: Updated CredentialProvider test infrastructure * Added linter exclusion * Updated dev dependency * Codestyle fixes * Updated async test infra * Added missing constant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Maintenance (CI, Releases, etc)

3 participants