-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Becoming a contributor
`This document provides general information about the ways of contribution to the SONiC Community.
SONiC community welcomes new members to join this open source community project and contribute for SONiC development.
-
Please get familiar with our governance document
-
Members are expected to follow the code of conduct and agree.
-
Members are welcome to join the mailing list and start attending the weekly discussion on the ongoing activities to contribute.
-
Members are welcome to join the sub work groups and contribute.
-
Members shall go through the SONiC webpage and SONiC Wiki and familiarize themselves about the basics.
We welcome everyone to contribute to SONiC project. A Contribution License Agreement(CLA) is required before you making a contribution to the open source project.
Please follow the process and sign the CLA here. Thanks for your support.
Following are the way of contributions and its process for the community.
Community members or the SONiC partners are welcome to contribute in all of the following development process. The ways in which the members can contribute are explained in detail in the following sub sections.
- Development
- Reviews
- Testing
- Bug Fixing
- Presentation and demos
- Documentation
Members can contribute by owning and develop a feature for SONiC or enhance an existing feature/sub-features. Members have to inform the community about ownership of feature development/enhancement and ensure that the feature is added to the roadmap. Members should also provide a rough plan about the design document availability date and code availability date in advance and also identify reviewer(s). Members shall do the design, coding & testing by following the process explained in this document and ensure that the feature is merged before the release.
Members can contribute by owning up the reviews for the design documents, code, test cases/scripts and any documents that are prepared for SONiC. Members can join the design review meetings and provide review comments during the discussion and/or provide the review comments on the pull request raised by the authors. Members are welcome to complete the review cycle on time so that the features planned in the roadmap are completed before the release.
Members are welcome to test SONiC in their own platforms and raise issues in the appropriate SONiC repositories. Members can also contribute by reviewing the existing test cases and adding new test cases to the sonic-mgmt repository.
Members are welcome to fix the bugs present in SONiC. They are requested to join the issue triage sub group and contribute for root cause analysis as well as in review.
Regular workshops and OCP meetings are happening for SONiC. Members are welcome to participate and contribute for technical presentation and demos that can be used during the workshop. Partners are welcome to set up booths at the OCP summits with their platforms running SONiC.
Members are welcome to review the existing documents in SONiC and also help in enhancing the existing technical documents like Config guide, CLI guide, Wiki pages, etc., Members are welcome to capture the SONiC deployment scenarios as well as the use cases in a document and add it to the SONiC Wiki library.
- Create the file as MD (markdown) format;
- Send as a pull request to https://github.com/Azure/SONiC/pulls;
- Go through community design review;
- Once approved, the doc will be merged to https://github.com/Azure/SONiC repo;
- The doc will be published on SONiC WiKi;
- Code the feature and raise a pull request
- Pull request for the code should be raised from appropriate repository.
- Available repository for code are sonic-buildimage, sonic-utilities, sonic-swss, sonic-build-system, etc.,
- Members should inform the community if a new repository is created the feature.
- Code has to be in file format such as python, C/C++, ruby, etc.,
- Go through community for code review.
- Once approved, the code will be merged to https://github.com/Azure/SONiC repo.
Repositories
Members should pull a separate private branch from the master branch in an appropriate repository. There are various code repository available such as sonic-buildimage, sonic-utilities, sonic-swss, sonic-build-system etc. Members should ensure that the owned feature is updated in the right repository to add the development code and its corresponding HLD document.
- The community will follow the roadmap for release and would be updated periodically.
- The release tracking will be followed for all the ongoing feature on the release and its corresponding HLD discussion will be happening every week.
- A member should ensure the active involvement in the discussion.
- The release tracking sheet should be updated periodically to ensure the status of the ongoing release.
- Release notes will be issued upon successful release for the completed features.
- Any feature that is not completed before the branching will be considered for next release.
- For further details about the SONiC release train click here
Find below the steps to raise a Pull Request for the HLD document as well as for the development Code.
- Fork the repository in which you want to make the changes. For example, if you want to make changes in sonic-buildimage, go to https://github.com/Azure/sonic-buildimage and click "Fork". If you have already forked that repository, you can either rebase your forked repository (to sync it to the latest repo), or, you can delete your forked repository and fork afresh.
- Clone your forked repository and go to the base directory Example: https://github.com/Your_Username/sonic-buildimage.git cd sonic-buildimage
- Create a private branch in your forked repository. Use simple meaningful branchnames. Example: git checkout -b your_branchname
- Do "push origin". Example: git push origin your_branchname
- Do necessary changes in the files. You can add new files, or delete old files or modify existing files. Ensure that the code/doc is reviewed (and tested if required) before pushing the changes to repository.
- Do "git status" to check the list of files that are added/modified/deleted. Ensure that no other unwanted files are shown in the diff.
- Do "git add ." to add all the changes for commit.
- Do git commit -m "your explanation about the change". Example: git commit -m "Added code for CLI commands for management VRF feature"
- Push the changes to your forked repository. This will push all your changes to your branch inside your forked repository. Example: git push --set-upstream origin your_branchname
- Go to your repository in the webpage (example: https://github.com/Your_Username/sonic-buildimage) where you will see the option for creating the pull request. It will show the recent push that you had done and it will have an option for "Compare And Pull Request". Click the same and create the pull request.
- Provide all details in the pull request and raise it.
- Follow-up with community for review. Address review comments and follow-up with repository owners for merging the pull request.
- Use HLD PR to track all the related code PRs, example - PR#806
- Issues should be filed under https://github.com/Azure/sonic-buildimage/issues;
- Please fill the template as
- Description
- Steps to reproduce the issue:
- Describe the results you received:
- Describe the results you expected:
- Attach debug file
- Submit
- Members shall join the Biweekly Issue Traige meeting and contribute towards raising and resolving the issues.
- Create the file as MD (markdown) format;
- Send as a pull request to https://github.com/Azure/SONiC/pulls;
- Go through community design review;
- Once approved, the doc will be merged to https://github.com/Azure/SONiC repo;
- The doc will be published on SONiC WiKi;
-
For Users
-
For Developers
-
Subgroups/Working Groups
-
Presentations
-
Join Us