Add wikis. authored by Gaba's avatar Gaba
# NetworkTeam's Gitlab Code Review Workflow
This is how the network team uses Gitlab to do code reviews.
### Marking something for review
When you write code that you need reviewed, you create a Gitlab Merge Request and a Github Pull Request (for CI to work until we get GL CI). Within that MR, you reference the GH PR. Then you are done.
### Assigning reviews
When asn and David assign reviews for little-t-tor we check for unassigned GL Merge requests in the components of little-t-tor, chutney and sbws. When we want to assign a merge request to Alice, we change the "Assigned" field of the MR to Alice.
Here are the relevant queries we use:
- little-t-tor: https://gitlab.torproject.org/tpo/core/tor/-/merge_requests
- chutney: https://gitlab.torproject.org/tpo/core/chutney/-/merge_requests
- sbws: https://gitlab.torproject.org/tpo/network-health/sbws/-/merge_requests?scope=all&utf8=%E2%9C%93&state=opened&assignee_id=None
### Finding your reviews
To find your reviews you use this query:
ahf:
https://gitlab.torproject.org/groups/tpo/-/merge_requests?scope=all&utf8=%E2%9C%93&state=opened&assignee_username=ahf
nickm:
https://gitlab.torproject.org/groups/tpo/-/merge_requests?scope=all&utf8=%E2%9C%93&state=opened&assignee_username=nickm
asn:
https://gitlab.torproject.org/groups/tpo/-/merge_requests?scope=all&utf8=%E2%9C%93&state=opened&assignee_username=asn
dgoulet:
https://gitlab.torproject.org/groups/tpo/-/merge_requests?scope=all&utf8=%E2%9C%93&state=opened&assignee_username=dgoulet
[
Also until we finish reviewing all the old tickets (from the pre-MR era) please also check the following links:
ahf:
https://gitlab.torproject.org/tpo/core/tor/-/issues?scope=all&utf8=%E2%9C%93&state=opened&label_name[]=Needs%20Review&assignee_username=ahf
nickm:
https://gitlab.torproject.org/tpo/core/tor/-/issues?scope=all&utf8=%E2%9C%93&state=opened&label_name[]=Needs%20Review&assignee_username=nickm
asn:
https://gitlab.torproject.org/tpo/core/tor/-/issues?scope=all&utf8=%E2%9C%93&state=opened&label_name[]=Needs%20Review&assignee_username=asn
dgoulet:
https://gitlab.torproject.org/tpo/core/tor/-/issues?scope=all&utf8=%E2%9C%93&state=opened&label_name[]=Needs%20Review&assignee_username=dgoulet
]
### Doing reviews
#### Reviewing your reviews (happy path)
When you do your reviews, the happy path is that the patch was good and
you merge it, close the MR and the gitlab issue.
#### Reviewing your reviews (sad path)
If the patch you are reviewing needs revisions, you need to change the Assignee of the MR back to the patch author. This signals to the patch author that revisions need to be done (plus also adds it into their TODO list)
#### Revising your branches
If a branch needs to get revised, the author revises it, pushes the revised branch, and switches the Assignee field back to the reviewier (effectively also adding it to the reviewer's TODO list).
### TODO
Backports?
\ No newline at end of file