Skip to content

Update sonic-py-common, add missing dependency to redis-dump-load.#14347

Merged
qiluo-msft merged 2 commits intosonic-net:masterfrom
liuh-80:dev/liuh/fix-redis-dl-depency
Mar 23, 2023
Merged

Update sonic-py-common, add missing dependency to redis-dump-load.#14347
qiluo-msft merged 2 commits intosonic-net:masterfrom
liuh-80:dev/liuh/fix-redis-dl-depency

Conversation

@liuh-80
Copy link
Contributor

@liuh-80 liuh-80 commented Mar 20, 2023

Update sonic-py-common, add missing dependency to redis-dump-load.

Why I did it

The script sonic_db_dump_load.py in sonic-py-common is depends on redis-dump-load, however the dependency is missing.

How I did it

Add redis-dump-load dependency.

How to verify it

Pass all E2E test case.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

Description for the changelog

Update sonic-py-common, add missing dependency to redis-dump-load.

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@liuh-80 liuh-80 requested a review from qiluo-msft March 20, 2023 01:57
dependencies = [
'natsort==6.2.1', # 6.2.1 is the last version which supports Python 2
'pyyaml',
'redis-dump-load',
Copy link
Collaborator

@qiluo-msft qiluo-msft Mar 20, 2023

Choose a reason for hiding this comment

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

redis-dump-load

Thanks for the fixing!
Since we build redis-dump-load with patch, we never expect setup.py automatically download it from pypi. We enforce this rule by treating it as "sonic_dependencies". Could you follow the sample in https://github.com/sonic-net/sonic-buildimage/pull/13850/files #Closed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, also create a manually cherry-pick PR for 202211 and 202205: #14360

qiluo-msft pushed a commit that referenced this pull request Mar 23, 2023
…-load (#14360)

Update sonic-py-common, add missing dependency to redis-dump-load.
This is manually cherry-pick PR for #14347
After 202211, the redis-dump-load been patched by sonic, so can't cherry-pick master branch PR to 202211 branch.

#### Why I did it
The script sonic_db_dump_load.py in sonic-py-common is depends on redis-dump-load, however the dependency is missing.

#### How I did it
Add redis-dump-load dependency.

#### How to verify it
Pass all E2E test case.

#### Description for the changelog
Update sonic-py-common, add missing dependency to redis-dump-load.
@qiluo-msft qiluo-msft merged commit fb695fe into sonic-net:master Mar 23, 2023
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.

2 participants