Open Source 2
Open Source 2
ASSIGNMENT-2
Submitted By-
Shawayar Fatma
2022MT93760
1
Code Review Policy For Collaborative White Board For
Developers
Implementing a code review policy speci ically for an open-source collaborative whiteboard
project brings unique challenges and bene its. Open-source projects often have contributors
from diverse backgrounds, varying skill levels, and time zones, which requires a structured
yet welcoming review policy. Here’s how to tailor an e ective code review process for such a
project.
2
f
f
f
f
f
f
f
f
f
ff
• Continuous Integration/Continuous Deployment (CI/CD): Set up a CI/CD pipeline
(e.g., with GitHub Actionsor GitLab CI/CD) to automatically run tests, linters, and
build checks on every pull request.
• Code Formatting: Use Prettier or ESLint to automatically format and lint code,
ensuring consistency without manual intervention.
• Automated Security Scans: Open-source projects can bene it from tools like Snyk or
CodeQL to identify security vulnerabilities. This is essential for a collaborative
whiteboard, where user data and real-time interactions must be secure.
3
f
f
f
f
f
f
f
f
7. Setting Code Review Turnaround Times
Setting expectations around response times is crucial to keep the open-source project
moving forward while respecting contributor availability:
• Initial Review Response: Aim for an initial review within 1-3 days. This responsiveness
can encourage continued engagement and reduce contributor churn.
• Clarify High-Priority Issues: For urgent bug ixes or critical feature updates, establish a
policy for faster review turnaround, ideally within 24 hours. Mark these issues or PRs
with a high-priority label.
Contributor submits a pull request (PR) with a clear title, description, and relevant issue links.
Automated checks (e.g., CI/CD pipelines, code quality scans, linting) run, ensuring the PR
meets baseline standards.
4
f
f
ff
f
Assignment of Reviewers:
CODEOWNERS or maintainers assign relevant reviewers based on the code area affected.
Reviewer completes an initial review within the target turnaround time (e.g., 1-3 days).
Code Review:
Reviewer examines code quality, security, functionality, and adherence to guidelines. They
leave constructive feedback, marking blocking versus non-blocking comments.
Contributor addresses the feedback, @mentions the reviewer to notify them of updates.
Approval and Merge:
Once the PR meets the quality standards and required approvals, a maintainer or lead
approves the PR.
The PR is merged into the main branch if all tests and checks pass.
Periodic Retrospective:
Review the code review process periodically with contributors to gather feedback and
improve the process.
In Summary