Skip to content

Commit e9662f7

Browse files
committed
Final wording adjustments
1 parent 6955405 commit e9662f7

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

docs/source/new-contributor-guide.md

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Welcome to **ExecuTorch** — a runtime for efficient deployment of PyTorch AI m
44

55
If you're new to ExecuTorch, open-source projects, or GitHub, this guide is for you. We're excited to have you on board!
66

7-
If you have any questions, issues comments, or just want to say hello to our community, please feel free to introduce yourselves on our **[Discord Server](https://discord.com/invite/Dh43CKSAdc)**. We'd love to speak with you.
7+
If you have any questions, issues, comments, or just want to say hello to our community, please feel free to introduce yourselves on our **[Discord Server](https://discord.com/invite/Dh43CKSAdc)**. We'd love to speak with you.
88

99
---
1010

@@ -14,7 +14,7 @@ If you have any questions, issues comments, or just want to say hello to our com
1414

1515
This guide assumes a basic knowledge of Git, and how to run Git commands in your terminal. If you've never used Git before, you can read [this quick guide](https://www.freecodecamp.org/news/learn-the-basics-of-git-in-under-10-minutes-da548267cc91/), [git guide](https://rogerdudler.github.io/git-guide/), [cheat sheet](https://towardsdatascience.com/git-commands-cheat-sheet-software-developer-54f6aedc1c46/), the [Setup Git](https://docs.github.com/en/get-started/git-basics/set-up-git) page from GitHub’s documentation, or watch one of the many tutorials on YouTube.
1616

17-
Git is a powerful version control system for coding projects — it enables you to collaborate, record code changes, and avoid losing hours of work when you make a mistake. It is essential for projects like ExecuTorch, with large codebases and many collaborators. Without it, the complexity of tracking everyone's changes, reviewing their code, and identifying bugs quickly becomes unmanageable.
17+
Git is a powerful version control system for coding projects — it enables you to collaborate, record code changes, and avoid losing hours of work when you make a mistake. It is essential for projects like ExecuTorch with large codebases and many collaborators. Without it, the complexity of tracking everyone's changes, reviewing their code, and identifying bugs, quickly becomes unmanageable.
1818

1919
Git is an industry standard in the coding world, and particularly in open-source. It can take a while to get used to at first, but we promise you it's well worth the effort! We believe that learning Git can make you a significantly stronger and more effective developer.
2020

@@ -56,7 +56,7 @@ Before you can start writing any code, you need to get a copy of ExecuTorch code
5656

5757
![](./_static/img/new-contributor-guide/how_to_fork1.png)
5858

59-
This will take you to another page - click `Create fork`:
59+
This will take you to another page. Click `Create fork`:
6060

6161
![](./_static/img/new-contributor-guide/how_to_fork2.png)
6262

@@ -79,7 +79,7 @@ Before you can start writing any code, you need to get a copy of ExecuTorch code
7979
Assuming you're in the same directory you cloned into, run:
8080
8181
```bash
82-
cd executorch # enter the cloned project
82+
cd executorch # enter the cloned project
8383
git remote add upstream https://github.com/pytorch/executorch.git
8484
```
8585
@@ -104,7 +104,7 @@ Before you can start writing any code, you need to get a copy of ExecuTorch code
104104
105105
* The `upstream` entries show the main ExecuTorch repository. If you want to sync the latest changes from there, you can run `git fetch upstream`.
106106
107-
Let's sync from both your fork _and_ the main ExecuTorch branch, to get the latest changes from each of them. To do this, run:
107+
Let's sync from both your fork _and_ the main ExecuTorch branch, getting the latest changes from each of them. To do this, run:
108108

109109
```bash
110110
git fetch --all --prune
@@ -114,7 +114,7 @@ Before you can start writing any code, you need to get a copy of ExecuTorch code
114114

115115
![](./_static/img/new-contributor-guide/synced_fork.png)
116116

117-
However, ExecuTorch updates frequently - if it's been a while you visited your fork, you might not have the latest version anymore. It's important to keep your fork as up-to-date as possible. Otherwise, the code changes you're making might fix your issue for an old version of the codebase, but _not_ for the current version.
117+
However, ExecuTorch updates frequently if it's been a while you visited your fork, you might not have the latest version anymore. It's important to keep your fork as up-to-date as possible. Otherwise, the code changes you're making might fix your issue for an old version of the codebase, but _not_ fix it for the current version.
118118
119119
GitHub will tell you if your fork is out-of-date. To synchronise the necessary changes, click `Sync fork`, then `Update branch` as shown:
120120
@@ -161,7 +161,7 @@ Great job — you're all set up. Now you can actually start coding!
161161
2. Make your changes. For bugfixes, we recommend a test-driven workflow:
162162
- Find a test case that demonstrates your bug.
163163
- Verify that your new test case fails on the `main` branch.
164-
- Add that example as an automated test, and assert the expected, failing results. If you can, try to make this test as minimal as possible to reduce interference with some other issue.
164+
- Add that example as an automated test, and assert the expected failing results. If you can, try to make this test as minimal as possible to reduce interference with some other issue.
165165
166166
Once you have a failing test, you can keep working on the issue and running the test until it passes.
167167
@@ -182,7 +182,9 @@ Great job — you're all set up. Now you can actually start coding!
182182
* [[ET-VK][ez] Allow logit linear layer to be lowered to Vulkan](https://github.com/pytorch/executorch/pull/9951/commits/3fdd8cab8c58db0be666f3454c41f73ad5964743)
183183
* [Allow emitting mutable buffer names in schema](https://github.com/pytorch/executorch/pull/9935/commits/773a34725afea6c0bf1b99d02a9cefb91c4960e1)
184184
185-
4. When you are done making changes and the test case you added is passing, [run the same tests](https://github.com/pytorch/executorch/blob/main/CONTRIBUTING.md#testing) you ran at the end of the [Prepare Your Workspace](#prepare-your-workspace) section. If any fail now that were working previously, it means your changes have broken some existing functionality. You'll need to dig back into your code to figure out what's gone wrong.
185+
4. When you are done making changes and the test case you added is passing, [run the same tests](https://github.com/pytorch/executorch/blob/main/CONTRIBUTING.md#testing) you ran earlier (at the end of the [Prepare Your Workspace](#prepare-your-workspace) section).
186+
187+
If any tests fail now which were working before, it means your changes have broken some existing functionality. You'll need to dig back into your code to figure out what's gone wrong.
186188
187189
5. Once your new test _and_ the old tests are all working as intended, upload/push these changes to your fork:
188190
@@ -211,8 +213,6 @@ Once you've successfully finished local development, it's time to send out your
211213
212214
In the description, you’ll describe all the changes you’ve made.
213215
214-
Ensure that all tests are passing. If not, click on a failing test to see what went wrong and make the required changes.
215-
216216
3. If you want to submit your PR right away, you can go ahead and click the Green `Create pull request` button. However, please note that this will immediately notify all reviewers. We strongly recommend creating a Draft PR first. This will allow you to perform some extra checks first:
217217
218218
* You can get some early feedback on your PR without notifying everybody.
@@ -221,17 +221,17 @@ Once you've successfully finished local development, it's time to send out your
221221
222222
* Creating it will start CI (["Continuous Integration"](https://en.wikipedia.org/wiki/Continuous_integration)) checks to verify that all tests pass under various configurations. If some tests fail, you can fix them before creating the final PR.
223223
224-
To do submit a draft, click the arrow next to the `Create Pull Request` button:
224+
To do submit a draft, click the arrow next to the `Create Pull Request` button, then click `Create draft pull request` in the dropdown menu:
225225
226226
![](./_static/img/new-contributor-guide/how_to_draft_pr1.png)
227227
228-
Then click `Create draft pull request` in the dropdown menu. This will change the green button's text to `Draft pull request`:
228+
This will change the green button's text to `Draft pull request`:
229229
230230
![](./_static/img/new-contributor-guide/how_to_draft_pr2.png)
231231
232232
Click it to create your draft PR.
233233
234-
4. After you click the `Draft pull request` button, it will take you to your Draft PR page. It might look something like this:
234+
4. This will take you to your Draft PR page. It might look something like this:
235235
236236
![](./_static/img/new-contributor-guide/how_to_draft_pr3.png)
237237
@@ -257,9 +257,13 @@ Once you've successfully finished local development, it's time to send out your
257257
258258
* At the end of your Draft PR, you'll see something like this:
259259
260-
![](./_static/img/new-contributor-guide/end_of_draft_pr.png)
260+
![](./_static/img/new-contributor-guide/end_of_draft_pr1.png)
261+
262+
This is a summary of all the CI checks and requirements which need to be satisfied before your PR can be merged. Ensure that all tests are passing. If not, click on a failing test to see what went wrong and make the required changes.
261263
262-
This is a summary of all the CI checks and requirements which need to be satisfied before your PR can be merged. Once you're happy with your draft, you can click the `Ready for review` button to create your PR.
264+
Once you're happy with your draft, you can click the `Ready for review` button to create your PR:
265+
266+
![](./_static/img/new-contributor-guide/end_of_draft_pr2.png)
263267
264268
5. Now you've created your PR, it's time for your changes to be reviewed by the ExecuTorch community and maintainers.
265269
@@ -268,3 +272,5 @@ Once you've successfully finished local development, it's time to send out your
268272
Those reviewers/maintainers are here to finetune your contribution and eventually catch some issues before we merge the PR. We aim for this process to be pleasing on both sides: we try to give and get the best.
269273
270274
Once the reviewers are happy, one of our core contributors will merge your PR. Congratulations — you're now an official ExecuTorch contributor!
275+
276+
Great job making it to the end of our guide — we hope you enjoy contributing. Once again, please check out **[Discord Server](https://discord.com/invite/Dh43CKSAdc)** if you want to say hello, ask any questions, or talk about any and all things ExecuTorch. We look forward to receiving your contributions!

0 commit comments

Comments
 (0)