-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dash-pipeline] Refactor Makefiles #432
Conversation
kcudnik
commented
Sep 1, 2023
- compile everything with host user id and group
- reduce number of required libs
- simplify Makefiles
- make proper dependencies
* compile everything with host user id and group * reduce number of required libs * simplify Makefiles * make proper dependencies
@chrispsommers can you take a look at this error https://github.com/sonic-net/DASH/actions/runs/6052818653/job/16427025685?pr=432#step:15:275 ?? i have no clue why this fails, make docker-saithrift-client passes locally on my machine, make all, run-server and run all tests, all that passes, but here im a little bit lost |
from previous logs seeems like setup.py from saithrift-0.9 and from thrift-0.11.0 was executed ok, and is missing from /SAI/test/ptf, no, but there is no SAI/ptf dir, only SAI/SAI/test/ptf, and it contains setup.py, maybe directory is wrong mounted ? since previously docker-saithrift-client was downloaded and not built from scratch, and somehow this PR triggered to rebuild it Found it: ahh i missed ptf submodule init damn :D |
btw. those ptf tests, wait for 5 seconds and retry 10x times, which is hudge waist of time:
468 time.sleep(5) opencomputeproject/SAI#1677 @ravi861 please explain this sleeps if they are needed, they slow down out tests, waiting and retrying all time https://github.com/opencomputeproject/SAI/pull/1677/files#diff-79e5a6916a2dff14d4fe5f385b6d5bb183adad2f4e9ec02d3ced4c3030b73940R318 |
@ravi861 Please look into these sleeps, it's made the tests take very very long. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see comments, I'm unsure of the side-effect of adding SUDOs to makefiles.
should be none, if something appears, we will update |
@kcudnik A simple solution for this in dash repo without affecting SAI is to add a fixed API impl in get port attribute SAI_PORT_ATTR_OPER_STATUS as UP always here. |
this seems like a workaround to me, but also it may not be that simple since bmv2 uses actual eth ports to forward trafiic so the status could be bound to them too |
From what I know, bmv2 works using veth pairs which are usually always brought up because bmv2 itself expects them to be up before it initializes. |
True, the veth ports are already up before the bmv2 swtich is run. |
ok, i can add code that will always return true, on each port, but then could be modified to reflect actual interface status, let see if that will help to speed up test execution |
Speeds up ptf test execution, since all ports are already up
@chrispsommers please review and merge when ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, excellent improvements!
|
* main: (75 commits) [dash-SAI] Enable warnings as errors (sonic-net#466) [SAI] wrong code generated in libsai sonic-net#415 (sonic-net#463) Fix incorrect IP in SONiC-DASH HLD VNET to VNET example. (sonic-net#459) DASH pipeline packet flow update proposal. (sonic-net#449) [libsai] Add attr name logging when doing get api (sonic-net#451) Build libsai deb packages in github workflow (sonic-net#450) Add Private Link mapping (sonic-net#327) [SAI] Update SAI submodule to the latest origin/master (sonic-net#446) [dash] Add libsai-debs target to create libsai debian packages (sonic-net#444) update p4 compile dependancy to avoid parallel docker runs (sonic-net#443) [dash] Refactor libsai (sonic-net#438) [dash] Update SAI to latest v1.13 (sonic-net#435) [dash-pipeline] Refactor Makefiles (sonic-net#432) Remove ACL tags from BM (sonic-net#425) [submodule] Update SAI submodule to origin/master (sonic-net#431) [sai-api-gen] Write files only when changes are detected (sonic-net#429) Adds SAI_ROUTE_ENTRY_ATTR_PACKET_ACTION api to dash_underlay_routing (sonic-net#422) [SAI] Add missing check for api initialized [SAI] Print oids in hex form [SAI] Change asserts to return error codes and add missing switch api ...