Skip to content

[GCU E2E Testing] Improve Valid Platform Checker Setup#9878

Merged
isabelmsft merged 7 commits intosonic-net:masterfrom
isabelmsft:copy_file
Sep 18, 2023
Merged

[GCU E2E Testing] Improve Valid Platform Checker Setup#9878
isabelmsft merged 7 commits intosonic-net:masterfrom
isabelmsft:copy_file

Conversation

@isabelmsft
Copy link
Copy Markdown
Contributor

Description of PR

Summary:
Currently, GCU platform validator conf file is copied into sonic-mgmt repository. This PR improves the setup to directly read this file from the DUT instead of having two copies of the file (one in sonic-mgmt and one on the DUT).

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

Improve GCU E2E Testing Setup

How did you do it?

How did you verify/test it?

Ran test on physical DUT

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation


CONTAINER_SERVICES_LIST = ["swss", "syncd", "radv", "lldp", "dhcp_relay", "teamd", "bgp", "pmon", "telemetry", "acms"]
DEFAULT_CHECKPOINT_NAME = "test"
GCU_SONIC_DIR_PATH = "/usr/local/lib/python3.9/dist-packages/generic_config_updater"
Copy link
Copy Markdown
Contributor

@qiluo-msft qiluo-msft Sep 7, 2023

Choose a reason for hiding this comment

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

python3.9

Hardcoded python3 version is going break in next Debian version. Suggest find the path programmatically.

$ python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import generic_config_updater
>>> print(generic_config_updater.__path__)
['/usr/local/lib/python3.9/dist-packages/generic_config_updater']
``` #Closed

@isabelmsft isabelmsft merged commit 65b4124 into sonic-net:master Sep 18, 2023
@bingwang-ms
Copy link
Copy Markdown
Collaborator

@StormLiangMS Please help cherry-pick this PR to 2023 branch. It's a fix for the GCU test issue. Thanks!

@isabelmsft
Copy link
Copy Markdown
Contributor Author

@StormLiangMS Please help cherry-pick this PR to 2023 branch. It's a fix for the GCU test issue. Thanks!

ADO for cherry-pick: 25264431

@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202305: #10166

AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
qiluo-msft pushed a commit that referenced this pull request Feb 12, 2024
## Description of PR

Summary:
Fixes # (issue)

### Type of change

- [ ] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [x] Test case(new/improvement)

## Approach
#### What is the motivation for this PR?
ADO 17747379 to cherry-pick sonic-utilities PR to 202205 sonic-net/sonic-utilities#3051 requires 202205 sonic-mgmt test update.

This PR cherry-picks the following PRs: #7981, #9878 (reads RDMA GCU conf file from DUT instead of copy of conf file in sonic-mgmt), #10214 (fix pfcwd test), #10241 (ensure operation is valid), #10756 (empty string edge case)
#### How did you do it?
Ensure the feature and tests are stable on 202305 and master
#### How did you verify/test it?
Monitored test results on 202305 and master for all platforms, manually ran tests on Cisco and Mellanox DUTs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants