Skip to content

Revert "Add redis db alias for easy accessing redis db"#26889

Draft
xwjiang-ms wants to merge 1 commit intomasterfrom
revert-25600-eruan-alias
Draft

Revert "Add redis db alias for easy accessing redis db"#26889
xwjiang-ms wants to merge 1 commit intomasterfrom
revert-25600-eruan-alias

Conversation

@xwjiang-ms
Copy link
Copy Markdown
Contributor

Reverts #25600 for platform_tests/counterpoll/test_counterpoll_watermark.py test_counterpoll_queue_watermark_pg_drop failure

Copilot AI review requested due to automatic review settings April 19, 2026 11:38
@xwjiang-ms xwjiang-ms requested a review from lguohan as a code owner April 19, 2026 11:38
@xwjiang-ms xwjiang-ms marked this pull request as draft April 19, 2026 11:38
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown
Contributor

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 reverts the previously added Redis DB alias generation (and its supporting Python helper) to address a platform test failure in platform_tests/counterpoll/test_counterpoll_watermark.py related to queue watermark/PG drop.

Changes:

  • Removes the sonic-db-aliases.py helper script used to derive DB ID/port from SonicDBConfig.
  • Removes the bash.bashrc startup logic that generated redis-* aliases via the helper script.
  • Removes the image build step that installed sonic-db-aliases.py into /usr/local/bin.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
files/scripts/sonic-db-aliases.py Deleted the helper script that queried swsscommon.SonicDBConfig for DB ID/port.
files/image_config/bash/bash.bashrc Deleted shell startup function that generated redis-* aliases at login.
files/build_templates/sonic_debian_extension.j2 Removed installation/copy step for the deleted helper script.

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.

3 participants