Add buffer profile test (initial config test)#296
Add buffer profile test (initial config test)#296andriymoroz-mlnx wants to merge 2 commits intosonic-net:masterfrom
Conversation
|
@yxieca , please review. |
|
One of three test cases currently fails due to recent change in minigraph parser (missing information about neighbor type). |
6919771 to
f339ef8
Compare
yxieca
left a comment
There was a problem hiding this comment.
-
The comment on minigraph fileglob is not blocking, Please let me know if you can finish the change with this review?
-
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.
There was a problem hiding this comment.
Can these 3 files be picked up by fileglob or similar mechanism, instead of explicitly setting them?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
|
Test needs to be updated after sonic-net/sonic-buildimage#1101 is merged |
Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
f339ef8 to
8759898
Compare
|
@yxieca , can you review it again? It is updated. |
|
|
||
| - block: | ||
| - name: Copy test files to DUT | ||
| copy: src={{ item }} dest=/tmp/ |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
|
This test is no longer relevant as of changes done while this PR was waiting for merge. |
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>
…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] ```
… 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]
…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]
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]
No description provided.