UNPKG

11.8 kBMarkdownView Raw
1
2# Team best practices
3
4This document aims to address contibutors best practices of the following repositories:
5 - remix-ide https://github.com/ethereum/remix-ide
6 - remix https://github.com/ethereum/remix
7 - remix-tests https://github.com/ethereum/remix-tests
8 - remixd https://github.com/ethereum/remixd
9
10This document is not in its final version, **a team meeting which aim to address new/old best practices, feedback, workflows, all kind of issues related to how the team work together occurs every 2 weeks.**
11This document link to other specialised best practices (like coding best practices).
12
13Related links:
14 - Remix basic FAQ: https://hackmd.io/KVooMJhWRImCGq6zkDgW9A
15 - Remix weekly agenda: https://hackmd.io/2nJJZmMPQwCN4qwkxmfXVQ?edit
16 - Remix live: remix.ethereum.org
17 - Remix alpha live: remix-alpha.ethereum.org
18 - Remix-ide NPM module: https://www.npmjs.com/package/remix-ide
19 - Remix-lib NPM module: https://www.npmjs.com/package/remix-lib
20 - Remix-solidity NPM module: https://www.npmjs.com/package/remix-solidity
21 - Remix-debug NPM module: https://www.npmjs.com/package/remix-debug
22 - Remix documentation: http://remix.readthedocs.io/en/latest/
23 - General gitter channel: https://gitter.im/ethereum/remix
24 - Dev gitter channel: https://gitter.im/ethereum/remix-dev
25 - Huboard (task management tool): https://huboard.com/ethereum/remix-ide
26
27---
28
29# Team communication
30
31 ### 1) Team meetings:
32
33 - A regular standup - each Tuesday 4pm CET - which aim to
34 - Update every contributor on what others are doing.
35 - Update the prioritised issues / PRs list.
36 - Address little issues (possibly related to the current ongoing milestone).
37 - High level demo, explanation about specific points of the codebase or Ethereum related things.
38
39 - A milestone standup - scheduled before the beginning of each milestone, roughly on a monthly basis - which aim to define what will be included in the **next milestone** and who will work on what. This standup also help to set a clear long term vision.
40
41 - A retrospective standup - every 2 weeks - which aim to talk about **best practices in general**: what is good, what is bad, how we can improve workflows.
42
43 - A tour standup - on a monthly basis and just after a milestone finished - which aim to demo, **explain in details** features, bug fixes or any part of the codebase.
44
45
46 ### 2) Group meetings:
47
48 - When a story / bug fix is divided in parts, there should be a kickstart meeting with all the developers involved, so that all the devs have an good overview / understanding on:
49 - How the story fits into the Ethereum tech.
50 - How the backend (if any) works / will work (could be a smart contract).
51 - How the frontend works / will work.
52 - What is the general vision of the UX design for this particular story.
53 Later progress and discussion is updated directly on the issue or pull request (Github).
54
55
56---
57
58# Prerequisites:
59
60Before starting coding, we should ensure all devs / contributors are aware of:
61- Where the codebase is.
62- How to setup and get started (always up to date).
63- How to run tests.
64- Where to find documentation.
65- How to reach us through the communication channels - https://gitter.im/ethereum/remix, https://gitter.im/ethereum/remix-dev.
66- The following best practices:
67
68---
69
70# Story / Bug fix
71
72- Prioritised list of PRs / issues are tracked in the Remix huboard.
73- Every story can be executed by a single developer or a group of 2 or more developers (depending on the size and complexity)
74- Each dev should take the part he/she feels the most confortable with.
75- Later progress and discussion is updated directly on the issue or pull request (github).
76- When a developer or team decides on the story they want to work on (at the start of milestone for instance), they assign themselves to the issue.
77- The issue whould be moved in Huboard to the column named `working` when the work actually starts.
78- Updates of the documentation should be done together with the story.
79
80---
81
82# Pull Requests
83
84 ### 1) PR Creator:
85
86 - It is recommended to use the emoji responses to signal agreement or that you've seen a comment and will address it rather than replying. This reduces github inbox spam.
87 - Mark unfinished pull requests with the `Work in Progress` label
88 - Large pull requests (above 200-400 lines of code changed) cannot be effectively reviewed and should be split into smaller pieces.
89 - Code should comply to the `JavaScript standard style` - https://www.npmjs.com/package/standard
90 - You should not expect complete review on a pull request which is not passing CI.
91 - You can obviously ask for feedback on your approach.
92 - You should assign a reviewer.
93 - Pull requests should be used as a reference to update coding best practices whenever it is needed.
94
95 ### 2) Review:
96
97 - Everyone is free to review any pull request.
98 - You should add the label "change requested" or "accepted".
99 - When reviewing people's code consider the following two comments.
100 > I don't like the name of this function.
101
102 vs.
103
104 > What do you think about changing the name of this function to ....
105
106 Your feedback will often be better received if you pose it in the form of a question.
107
108 - Pull request should be reviewed to comply to coding best practices.
109 - You should take the responsability of the PR you are reviewing.
110 - You should make sure the app is viable after the PR is being merged.
111 - Ideally You should have enough knowledge to be able to fix related bugs.
112
113 ### 3) Merge:
114
115 - Merging is possible after Review and Tests are ok and when the PR is approved.
116 - If possible the build of the dev branch (master) should be triggered in the Travis CI.
117 - After a merge and master being built in Travis, it is highly recommended to check the new code in `remix-alpha.ethereum.org`
118
119---
120
121# Milestone
122
123 - A milestone is small and contains **only** items we are sure to finish.
124 - The end of a milestone trigger a new release.
125 - Milestone items and duration should take in account time spent in bugs fixing and support.
126 - The team should commit to the milestone duration.
127 - If a dev finish early he/she can help other to push remaining tasks.
128 - If a dev finish early he/she can work on specifying / integrating the next milestone.
129 - A milestone duration is fixed at the start of the milestone (but should not exceed 1 month).
130 - Progress and issues regarding a milestone are discussed on regular standups.
131
132---
133
134# Releases
135
136 ### 1) Process:
137 - Should be documented and updated.
138 - A new release is triggered:
139 - after an important bug fix
140 - at the end of a milestone
141 - Pushing `remix-alpha.ethereum.org` should be done very frequently (if possible after each feature / bug fix completion.
142 - We can release an `m.m.m-alpha.x` (whenever we need to release and for whatever reasons) being in between a feature / bug fix completion.
143 - We release an `m.m.x` whenever there is a bug fix.
144 - We release an `m.x.0` whenever there is a new feature.
145 - We release an `x.0.0` after each milestone we consider being an important progress.
146 - We release an `x.0.0` if there's an API breaking change in one of our libraries.
147 - After a new release we should stay in alert for possible regression and better not release Friday at 5pm :)
148
149 ### 2) Community:
150 - Before the official release, we should select a group of power users and invite them to test and give feedbacks.
151 - Users need to know upfront a new release is coming and we should prepare them for it by showcasing some new features they can expect and when it will happen (fixed date, published at least 1 week in advance).
152 - Whenever we have a new release we have to communicate this efficiently (twitter, reddit, ...).
153
154---
155
156# Maintenance
157
158
159### 1) Bugs:
160- A critical bug should get the label `Blocker`, and every effort should be put to fix it.
161- Addressing a non critical and non planned bug can be done:
162  - After having notified in the `remix-dev` channel if the bug does not involves UX or public API changes.
163 - After a dev meeting (e.g the regular standup) if the bug involves any UX or public API changes.
164
165### 2) Support:
166
167- We should all keep an eye on the public non dev channel and file user feedback.
168
169### 3) Documentation:
170
171- The documentation is done / updated just after the feature / release in a team effort.
172- Documentation work is filable as a github issue.
173- It is encouraged to find and link associated doc produced by the community (blog posts, videos, tutorials, ...)
174
175---
176
177# Coding best practices
178
179 - https://github.com/ethereum/remix-ide/blob/master/best-practices.md
180
181---
182
183
184## Best practices to address later
185
186### meeting:
187 - Find a good calendar we can use to schedule meetings.
188 - Retrospective meeting: Someone can be responsible to record the findings (of the retrospective meeting) so we can review them in the following meeting and see if they were addressed or not, and if not discuss why and take new actions. If the issue was addressed then it can be discarded.
189 - pair programming meetings
190
191### merge process:
192 - All the contributors of the feature should be able to merge.
193 - Review should have 3 phases (1. code should work, 2. code should fit with current best practices, 3. update documentation)
194 - We should have a dedicated person to only do browser frontend tests and make it easy for others to run them
195
196### release process:
197
198 - We release an `x.0.0` if there's a fundamental change in our UX design, which means users will need to readapt the way they use the app
199 - after a week finishes, we publish/release a new version as **remix-beta.ethereum.org** and inform users so early adopters can test. after another week, when then next finished work is released as **remix-beta.ethereum.org**, the previous one becomes **remix.ethereum.org** and all users can start using it
200 - a bot to automatically notify users about upcoming features on all channels whenever **remix-beta.ethereum.org** is updated
201 - in case it's a major version increase - this announcement should be specially marked so ppl can check early instead of being confronted with drastic changes when **remix.ethereum.org** updates
202### maintenance:
203 - Setting up a "bug" time where we each take a bug for which:
204 - We feel confortable to deal with
205 or
206 - We don't feel confortable but interested in fixing it - that will need the help of another dev
207### documentation:
208 - We set up a special day where we address all the necessary documentation work in a team effort.
209 - Change to markdown or gitbook
210
211### support:
212 - Remix channel - we rotate and each day one or two are responsible for support (It would also be important to know for those of us who are contracted, how this can be billed.). If they don't know the answer they ping team member who they think could answer. That team member checks the support chat that day only if she/he is mentioned.
213 - We should have a FAQ where basic answer are written down so we can drop the link regularly in the channel
214 - People should be pointed to the appropriate `best practice.md` files by team members
215
216### code best practices:
217 - for code quality: use codeclimate and address issues
218 - defining all global variables on top of the page
219 - 80-10 characters per line
220 - alphabetically list dependencies and separate npm from local for better readability
221 - Use code documentation tool
222 - Write modular code.
223### community
224 - This should be a Remix team work, from time to time (maybe once every 6 months) we could also invite other EF members for a focus group. And every 6 months we could also organize a focus group of selected users from Remix channel.
225### security
226 - https://github.com/pipermerriam/ethereum-dev-tactical-manual/blob/master/opsec.md
227### bug bounty program
228 - https://github.com/pipermerriam/ethereum-dev-tactical-manual/blob/master/bug-bounty-program.md
229