dify - ✅(Solved) Fix fix TestShardedRedisBroadcastChannelClusterIntegration test failed [1 pull requests, 1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
langgenius/dify#35813Fetched 2026-05-06 06:36:26
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
1
Author
Assignees
Timeline (top)
assigned ×1closed ×1commented ×1cross-referenced ×1

Error Message

ERROR api/tests/test_containers_integration_tests/libs/broadcast_channel/redis/test_sharded_channel.py::TestShardedRedisBroadcastChannelClusterIntegration::test_cluster_sharded_pubsub_delivers_message - redis.exceptions.ResponseError: CONFIG SET failed (possibly related to argument 'cluster-announce-ip') - Cluster announce IP must be a valid IPv4 or IPv6 address2026-05-06 01:06:48,813.813 INFO [MainThread] [conftest.py:74] - DifyTestContainers initialized - ready to manage test containers ====== 2389 passed, 8 skipped, 907 warnings, 1 error in 208.26s (0:03:28) ====== no error ERROR api/tests/test_containers_integration_tests/libs/broadcast_channel/redis/test_sharded_channel.py::TestShardedRedisBroadcastChannelClusterIntegration::test_cluster_sharded_pubsub_delivers_message - redis.exceptions.ResponseError: CONFIG SET failed (possibly related to argument 'cluster-announce-ip') - Cluster announce IP must be a valid IPv4 or IPv6 address2026-05-06 01:06:48,813.813 INFO [MainThread] [conftest.py:74] - DifyTestContainers initialized - ready to manage test containers ====== 2389 passed, 8 skipped, 907 warnings, 1 error in 208.26s (0:03:28) ======

Fix Action

Fixed

PR fix notes

PR #35814: fix: fix test_sharded_channel failed

Description (problem / solution / changelog)

[!IMPORTANT]

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

fix #35813

Screenshots

BeforeAfter
......

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran make lint && make type-check (backend) and cd web && pnpm exec vp staged (frontend) to appease the lint gods

Changed files

  • api/tests/test_containers_integration_tests/libs/broadcast_channel/redis/test_sharded_channel.py (modified, +9/-1)
RAW_BUFFERClick to expand / collapse

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.14.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

specified configuration file /home/runner/work/dify/dify/api/tests/integration_tests/vdb.env not exist ERROR api/tests/test_containers_integration_tests/libs/broadcast_channel/redis/test_sharded_channel.py::TestShardedRedisBroadcastChannelClusterIntegration::test_cluster_sharded_pubsub_delivers_message - redis.exceptions.ResponseError: CONFIG SET failed (possibly related to argument 'cluster-announce-ip') - Cluster announce IP must be a valid IPv4 or IPv6 address2026-05-06 01:06:48,813.813 INFO [MainThread] [conftest.py:74] - DifyTestContainers initialized - ready to manage test containers ====== 2389 passed, 8 skipped, 907 warnings, 1 error in 208.26s (0:03:28) ======

✔️ Expected Behavior

no error

❌ Actual Behavior

specified configuration file /home/runner/work/dify/dify/api/tests/integration_tests/vdb.env not exist ERROR api/tests/test_containers_integration_tests/libs/broadcast_channel/redis/test_sharded_channel.py::TestShardedRedisBroadcastChannelClusterIntegration::test_cluster_sharded_pubsub_delivers_message - redis.exceptions.ResponseError: CONFIG SET failed (possibly related to argument 'cluster-announce-ip') - Cluster announce IP must be a valid IPv4 or IPv6 address2026-05-06 01:06:48,813.813 INFO [MainThread] [conftest.py:74] - DifyTestContainers initialized - ready to manage test containers ====== 2389 passed, 8 skipped, 907 warnings, 1 error in 208.26s (0:03:28) ======

extent analysis

TL;DR

The issue is likely due to a missing configuration file and an invalid Redis cluster announce IP, which can be fixed by ensuring the existence of the vdb.env file and setting a valid IP address for the cluster-announce-ip configuration.

Guidance

  • Verify that the vdb.env file exists at the specified path /home/runner/work/dify/dify/api/tests/integration_tests/ and contains the required configuration settings.
  • Check the Redis configuration to ensure that the cluster-announce-ip is set to a valid IPv4 or IPv6 address.
  • Review the test setup to ensure that the vdb.env file is being properly created or copied to the correct location before running the tests.
  • Consider updating the test to handle the case where the vdb.env file does not exist or the cluster-announce-ip is not set.

Example

No code snippet is provided as it is not clearly supported by the issue.

Notes

The issue seems to be related to the test environment setup and configuration. Ensuring the existence of the vdb.env file and setting a valid cluster-announce-ip should resolve the issue. However, without more information about the test setup and configuration, it is difficult to provide a more detailed solution.

Recommendation

Apply workaround: Ensure the vdb.env file exists and contains the required configuration settings, and set a valid IP address for the cluster-announce-ip configuration. This should resolve the issue and allow the tests to run successfully.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING