Skip to content

Add buffer profile test (initial config test)#296

Closed
andriymoroz-mlnx wants to merge 2 commits intosonic-net:masterfrom
andriymoroz-mlnx:buffers_test_init
Closed

Add buffer profile test (initial config test)#296
andriymoroz-mlnx wants to merge 2 commits intosonic-net:masterfrom
andriymoroz-mlnx:buffers_test_init

Conversation

@andriymoroz-mlnx
Copy link
Contributor

No description provided.

@lguohan
Copy link
Contributor

lguohan commented Oct 6, 2017

@yxieca , please review.

@andriymoroz-mlnx
Copy link
Contributor Author

One of three test cases currently fails due to recent change in minigraph parser (missing information about neighbor type).

Copy link
Collaborator

@yxieca yxieca left a comment

Choose a reason for hiding this comment

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

  1. The comment on minigraph fileglob is not blocking, Please let me know if you can finish the change with this review?

  2. This test has a targeted devices in mind, can you make it more generic? For the reasons of:
    2.1. if there is new mellanox device not starting with msn27xx, can you include these devices in tests with minimum effort?
    2.2 if there is new other vendor's device and they provide the j2 template, can they use the test infrastructure with minimum effort?

It is ok for comment 2 to come later as an improvement change.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can these 3 files be picked up by fileglob or similar mechanism, instead of explicitly setting them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

2.1 the test can run on any device but will test msn27xx platform template only. Currently this is the only platform which uses generated buffers config and not static.
2.2 yes, with some updates it can be used for the other platforms

about fileglob: maybe, but in this test the order is important

Copy link
Collaborator

Choose a reason for hiding this comment

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

Andriy,

The ordering part is quite tricky. I am not confident that another developer changing it will understand the constraints clearly.

Do you think you can change the minigr list to a dictionary, you can explicitly name the comparison target in the dictionary?

Cheers,
Ying

@andriymoroz-mlnx
Copy link
Contributor Author

andriymoroz-mlnx commented Nov 2, 2017

Test needs to be updated after sonic-net/sonic-buildimage#1101 is merged
Upd: updated

@lguohan
Copy link
Contributor

lguohan commented Nov 6, 2017

@yxieca , can you review it again? It is updated.


- block:
- name: Copy test files to DUT
copy: src={{ item }} dest=/tmp/
Copy link
Contributor

Choose a reason for hiding this comment

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

why not copy the directory? directory_mode=yes?

- "{{ minigr }}"

- name: Compare generated buffers configuration with the expected
shell: diff /tmp/{{ (item | basename | splitext)[0]}}.json /tmp/{{ (item | basename).split('_')[0] }}.json
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you think you can merge this step with the previous step,execute generation and comparison in the same shell command to reduce number of ssh sessions needed for the test? If you do so, you can always generate target file with a same name and compare it to the right template.

Regards,
Ying

@liatgrozovik
Copy link

This test is no longer relevant as of changes done while this PR was waiting for merge.
As we are planning to change it to dynamic buffer configuration and to support port speed dynamic configuration as well, we should rewrite a test to cover the new mechanism.

kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
Signed-off-by: vaibhav-dahiya vdahiya@microsoft.com
the following commit is added in sonic-platform-common

fd8cf3a (HEAD -> 202012, origin/202012) [Credo][Ycable] fix incorrect uart statistics (sonic-net#296)

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…atically (sonic-net#16832)

#### Why I did it
src/sonic-snmpagent
```
* 77e9374 - (HEAD -> 202012, origin/202012) Fix backup port rfc2863 UT to 202012 branch issue (sonic-net#298) (12 hours ago) [Hua Liu]
* 2cb8241 - Add ifhighspeed UT (sonic-net#296) (3 days ago) [Hua Liu]
```
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
… automatically (sonic-net#16107)

src/sonic-platform-common

* 3b993c5 - (HEAD -> 202205, origin/202205) [Credo][Ycable] enhancement and error exception for some APIs (sonic-net#303) (7 hours ago) [Xinyu Lin]
* ab91fde - [ycable] add definitions of some new API's for Y-Cable infrastructure (sonic-net#301) (7 hours ago) [vdahiya12]
* 2b551f2 - [Credo][Ycable] fix incorrect uart statistics (sonic-net#296) (7 hours ago) [Xinyu Lin]
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…atically (sonic-net#16877)

src/sonic-snmpagent

* 17a8bb2 - (HEAD -> 202205, origin/202205) Add ifhighspeed UT (sonic-net#296) (5 minutes ago) [Hua Liu]
* b5a52ff - Fix key missing exception when invalied transiver info in STATE_DB (sonic-net#289) (5 minutes ago) [Hua Liu]
* 09bb0c2 - Fix FdbUpdater crash when SAI_FDB_ENTRY_ATTR_BRIDGE_PORT_ID attribute missing. (sonic-net#286) (5 minutes ago) [Hua Liu]
* 792e403 - Support interface speed for PortChannels (sonic-net#262) (5 minutes ago) [Lukas Stockner]
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
8b9cab7 2023-10-26 [201911] Fix IfHighSpeed UT issue on 201911 (sonic-net#299) 
622b771 2023-10-13 | Fix backup port rfc2863 UT to 202012 branch issue (sonic-net#298) [Hua Liu]
fa94798 2023-10-11 | Add ifhighspeed UT (sonic-net#296) [Hua Liu]
41789ca 2023-09-14 | Support interface speed for PortChannels (sonic-net#262) [Lukas Stockner]
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.

4 participants