Skip to content

Test against unstable hiredis-py #3617

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

uglide
Copy link
Contributor

@uglide uglide commented Apr 25, 2025

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.

uglide added 3 commits April 25, 2025 11:26
The guard was required to prevent cluster tests on RESP3 with hiredis-py before 3.1.0
@petyaslavova petyaslavova added the maintenance Maintenance (CI, Releases, etc) label Apr 29, 2025
@petyaslavova petyaslavova requested a review from Copilot May 7, 2025 15:37
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces integration tests to verify functionality against the unstable version of hiredis-py.

  • Adds a new GitHub Actions workflow (.github/workflows/hiredis-py-integration.yaml) to run integration tests with different Python and Redis versions.
  • Enhances the run-tests action (.github/actions/run-tests/action.yml) by including a new input for the hiredis branch and adding steps to checkout and install the unstable version of hiredis-py.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/hiredis-py-integration.yaml New workflow to run hiredis-py integration tests.
.github/actions/run-tests/action.yml Updated action inputs and installation steps for unstable hiredis-py.

@@ -40,8 +52,13 @@ runs:
pip uninstall -y redis # uninstall Redis package installed via redis-entraid
pip install -e .[jwt] # install the working copy
if [ "${{inputs.parser-backend}}" == "hiredis" ]; then
pip install "hiredis${{inputs.hiredis-version}}"
echo "PARSER_BACKEND=$(echo "${{inputs.parser-backend}}_${{inputs.hiredis-version}}" | sed 's/[^a-zA-Z0-9]/_/g')" >> $GITHUB_ENV
if [[ "${{inputs.hiredis-version}}" == "unstable" ]]; then
Copy link
Preview

Copilot AI May 7, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider using a consistent shell test syntax. Since other conditions in the file use '[ ... ]', using the same syntax across the file may improve maintainability, even if the current bash-specific syntax works correctly.

Suggested change
if [[ "${{inputs.hiredis-version}}" == "unstable" ]]; then
if [ "${{inputs.hiredis-version}}" = "unstable" ]; then

Copilot uses AI. Check for mistakes.

Copy link
Collaborator

Choose a reason for hiding this comment

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

The suggestion is missing one "=" sign

@petyaslavova
Copy link
Collaborator

@uglide how will the new workflow be triggered? Currently, I don't see it in the pipelines executed for the branch. Can you please provide some reference to another repo where similar workflow is used?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Maintenance (CI, Releases, etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants