Akihiro Ota | 6160020 | 2020-05-06 01:58:37 | [diff] [blame] | 1 | # Accessibility Release Notes |
| 2 | |
| 3 | ## TL;DR |
| 4 | Any change to accessibility-related files requires specifying an **AX-Relnotes** |
Akihiro Ota | 2df15b9 | 2020-05-07 01:46:21 | [diff] [blame] | 5 | field within the commit message, which describes the user-impacts the change |
| 6 | will have. Please see below for some examples of what this could look like: |
Akihiro Ota | 6160020 | 2020-05-06 01:58:37 | [diff] [blame] | 7 | |
| 8 | * 'AX-Relnotes: ChromeVox now supports ...' |
| 9 | * 'AX-Relnotes: Fixed an issue where ... happened because of ...' |
| 10 | * 'AX-Relnotes: n/a', if the change has no user-facing effects. |
| 11 | |
| 12 | If your change has user-impact, but is behind a feature flag, please use ‘n/a’. |
| 13 | At the time you remove the feature flag, the AX-Relnotes should mention that the |
| 14 | feature is being launched. |
| 15 | |
| 16 | ## What Are Release Notes |
Akihiro Ota | 2df15b9 | 2020-05-07 01:46:21 | [diff] [blame] | 17 | Every release cycle, the Chrome & Chrome OS Accessibility Team compiles release |
Akihiro Ota | 6160020 | 2020-05-06 01:58:37 | [diff] [blame] | 18 | notes for users, which detail any user-facing changes that have been made in |
| 19 | the upcoming release. These help our users stay informed about the features |
Akihiro Ota | 2df15b9 | 2020-05-07 01:46:21 | [diff] [blame] | 20 | and bugs our team works on, and are utilized by multiple testing teams. |
Akihiro Ota | 6160020 | 2020-05-06 01:58:37 | [diff] [blame] | 21 | |
| 22 | ## The Release Notes Process |
| 23 | Release notes are a collaborative effort and usually involve two or three team |
Akihiro Ota | 2df15b9 | 2020-05-07 01:46:21 | [diff] [blame] | 24 | members who own the process. The process is as follows: |
Akihiro Ota | 6160020 | 2020-05-06 01:58:37 | [diff] [blame] | 25 | 1. One owner generates a list of commits for the release and pastes the output |
Akihiro Ota | 17080229 | 2021-04-16 17:29:17 | [diff] [blame] | 26 | in a shared Google Document. For more details on how to generate this list, see |
| 27 | the how-to section below. |
Akihiro Ota | 6160020 | 2020-05-06 01:58:37 | [diff] [blame] | 28 | 2. The commits are split evenly among the owners. |
| 29 | 3. Each owner parses their assigned commits, removing irrelevant information, |
| 30 | summarizing important content, contacting developers for clarification, and |
| 31 | categorizing commits with user-impact. |
| 32 | 4. Once all commits have been categorized or deleted, one owner forwards the |
| 33 | release notes to the team's PgMs. |
| 34 | 5. The PgMs take a final pass over the document, then forward it to relevant |
| 35 | stakeholders. |
| 36 | |
Akihiro Ota | 17080229 | 2021-04-16 17:29:17 | [diff] [blame] | 37 | ## How to generate a list of accessibility-related commits |
| 38 | There are a few prerequisites needed before you can generate a list of |
| 39 | accessibility-related commits. Run the following commands: |
| 40 | |
| 41 | ``` |
| 42 | $ gcert # login with your ldap and password. |
| 43 | $ git clone "sso://team/chrome-a11y-core/release-notes" |
| 44 | $ cd release-notes |
| 45 | $ pip3 install -t lib/ -r requirements.txt |
| 46 | ``` |
| 47 | |
| 48 | Now that you've cloned the repository and installed requirements, there is one |
| 49 | final step needed before you can generate commits. The team-milestone-stats |
| 50 | script relies on a json file that isn't committed to the repository for security |
| 51 | reasons. Please follow the below steps to add the json file: |
| 52 | |
| 53 | 1. Create a new file named 'chrome-accessibility-749c56b5a435.json' in the same |
| 54 | directory as the team-milestone-stats script; leave this open for editing. |
| 55 | 2. In a browser, visit valentine.corp.google.com |
| 56 | 3. Search for "Chrome release notes json key" |
| 57 | 4. Copy the secret to your clipboard using the 'copy to clipboard' button |
| 58 | 5. Paste the secret into the new json file. Then save and close the file. |
| 59 | |
| 60 | Please reach out to akihiroota@, meredithl@, or chrishall@ if you run into |
| 61 | any problems during this process. Note: Please do not share this file with |
| 62 | anyone outside of Google. |
| 63 | |
| 64 | At this point, you can generate a list of commits with a single command: |
| 65 | |
| 66 | ``` |
| 67 | $ python3 team-milestone-stats.py <path-to-chromium-src> <target-milestone> --html --file |
| 68 | ``` |
| 69 | |
| 70 | The above command will run a script to generate a list of accessibility-related |
| 71 | commits for the specified milestons. The '--html' parameter specifies that we |
| 72 | want to generate an HTML file, and the '--file' parameter specifies that we want |
| 73 | to save the generated output into a file, as opposed to standard terminal |
| 74 | output. |
| 75 | |
| 76 | To get the contents of the file into a Google Doc: |
| 77 | 1. Go to docs.google.com |
| 78 | 2. Select the file picker, which should have a tooltip with the title 'Open file |
| 79 | picker'. |
| 80 | 3. Navigate to the 'Upload' tab. |
| 81 | 4. Upload the html file that was generated by the script. |
| 82 | |
| 83 | At this point, you should be all set. Please see bullet #2 in the |
| 84 | 'Release Notes Process' section for further instructions. |
| 85 | |
Akihiro Ota | 6160020 | 2020-05-06 01:58:37 | [diff] [blame] | 86 | ## Why AX-Relnotes |
Akihiro Ota | 2df15b9 | 2020-05-07 01:46:21 | [diff] [blame] | 87 | We require our developers to include an AX-Relnotes field in their commit |
| 88 | messages to make the release notes process more distributed and accurate. |
| 89 | Developers have the most context about how their changes affect users, and |
| 90 | having developers summarize their changes saves time and effort for the |
| 91 | release notes owners. |
Akihiro Ota | 6160020 | 2020-05-06 01:58:37 | [diff] [blame] | 92 | |
| 93 | ## Questions? |
Akihiro Ota | 2df15b9 | 2020-05-07 01:46:21 | [diff] [blame] | 94 | If you have any questions regarding accessibility release notes that have not |
Akihiro Ota | 6160020 | 2020-05-06 01:58:37 | [diff] [blame] | 95 | been answered in this document, please contact a member of |
| 96 | ui/accessibility/OWNERS. |