You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

180 lines
14 KiB

  1. # Breaking Changes
  2. This document describes QMK's Breaking Change process. A Breaking Change is any change which modifies how QMK behaves in a way that in incompatible or potentially dangerous. We limit these changes so that users can have confidence that updating their QMK tree will not break their keymaps.
  3. This also includes any keyboard moves within the repository.
  4. The breaking change period is when we will merge PRs that change QMK in dangerous or unexpected ways. There is a built-in period of testing so we are confident that any problems caused are rare or unable to be predicted.
  5. Practically, this means QMK merges the `develop` branch into the `master` branch on a 3-month cadence.
  6. ## What has been included in past Breaking Changes?
  7. * [2024 Feb 25](ChangeLog/20240225.md)
  8. * [2023 Nov 26](ChangeLog/20231126.md)
  9. * [2023 Aug 27](ChangeLog/20230827.md)
  10. * [Older Breaking Changes](breaking_changes_history.md)
  11. ## When is the next Breaking Change?
  12. The next Breaking Change is scheduled for May 26, 2024.
  13. ### Important Dates
  14. * 2024 Feb 25 - `develop` is tagged with a new release version. Each push to `master` is subsequently merged to `develop` by GitHub actions.
  15. * 2024 Apr 28 - `develop` closed to new PRs.
  16. * 2024 Apr 28 - Call for testers.
  17. * 2024 May 5 - Last day for merges -- after this point `develop` is locked for testing and accepts only bugfixes
  18. * 2024 May 19 - `develop` is locked, only critical bugfix PRs merged.
  19. * 2024 May 23 - `master` is locked, no PRs merged.
  20. * 2024 May 26 - Merge `develop` to `master`.
  21. * 2024 May 26 - `master` is unlocked. PRs can be merged again.
  22. ## What changes will be included?
  23. To see a list of breaking changes merge candidates you can look at the [`core` label](https://github.com/qmk/qmk_firmware/pulls?q=is%3Aopen+label%3Acore+is%3Apr). This label is applied whenever a PR is raised or changed, but only if the PR includes changes to core areas of QMK Firmware. A PR with that label applied is not guaranteed to be merged in the current cycle. New changes might be added between now and when `develop` is closed, and it is generally the responsibility of the submitter to handle conflicts. There is also another label used by QMK Collaborators -- `breaking_change_YYYYqN` -- which signifies to maintainers that it is a strong candidate for inclusion, and should be prioritized for review.
  24. If you want your breaking change to be included in this round you need to create a PR and have it accepted by QMK Collaborators before `develop` closes. After `develop` closes, new submissions will be deferred to the next breaking changes cycle.
  25. The simpler your PR is, the easier it is for maintainers to review, thus a higher likelihood of a faster merge. Large PRs tend to require a lot of attention, refactoring, and back-and-forth with subsequent reviews -- with other PRs getting merged in the meantime larger unmerged PRs are far more likely to be susceptible to conflicts.
  26. Criteria for acceptance:
  27. * The PR is complete and ready to merge
  28. * GitHub checks for the PR are green whenever possible
  29. * A "red" check may be disregarded by maintainers if the items flagged are unrelated to the change proposed in the PR
  30. * Modifications to existing files should not need to add license headers to pass lint, for instance.
  31. * If it's not directly related to your PR's functionality, prefer avoiding making a change.
  32. Strongly suggested:
  33. * The PR has a ChangeLog file describing the changes under `<qmk_firmware>/docs/Changelog/20240526`.
  34. * This should be in Markdown format, with a name in the format `PR12345.md`, substituting the digits for your PRs ID.
  35. * One strong recommendation that the ChangeLog document matches the PR description on GitHub, so as to ensure traceability.
  36. ## Checklists
  37. This section documents various processes we use when running the Breaking Changes process.
  38. ### 4 Weeks Before Merge
  39. * `develop` is now closed to new PRs, only fixes for current PRs may be merged
  40. * Post call for testers: message `@Breaking Changes Updates` on `#qmk_firmware` in Discord:
  41. * `@Breaking Changes Updates -- Hey folks, last day for functional PRs to be raised against qmk_firmware for this breaking changes cycle is today.`
  42. ### 2 Weeks Before Merge
  43. * `develop` is now closed to existing PR merges, only bugfixes for previous merges may be included
  44. * Post call for testers: message `@Breaking Changes Updates` on `#qmk_firmware` in Discord.
  45. * `@Breaking Changes Updates -- Hey folks, last day for functional PRs to be merged into qmk_firmware for this breaking changes cycle is today. After that, we're handling bugfixes only.`
  46. ### 1 Week Before Merge
  47. * `develop` is now closed to PR merges, only critical bugfixes may be included
  48. * Announce that master will be closed from <2 Days Before> to <Day of Merge> -- message `@Breaking Changes Updates` on `#qmk_firmware` in Discord:
  49. * `@Breaking Changes Updates -- Hey folks, last day for functional PRs to be merged into qmk_firmware for this breaking changes cycle is today. After that, we're handling bugfixes only.`
  50. ### 2 Days Before Merge
  51. * `master` is now closed to PR merges
  52. * Announce that master is closed for 2 days
  53. * `@Breaking Changes Updates -- Hey folks, the master branch of qmk_firmware is now locked for the next couple of days while we prepare to merge the newest batch of changes from develop.`
  54. ### Day Of Merge
  55. * `qmk_firmware` git commands
  56. * `git checkout develop`
  57. * `git pull --ff-only`
  58. * Edit `readme.md`
  59. * Remove the notes about `develop`
  60. * Roll up the ChangeLog into one file.
  61. * `git commit -m 'Merge point for <DATE> Breaking Change'`
  62. * `git push upstream develop`
  63. * GitHub Actions
  64. * Create a PR for `develop`
  65. * **Turn off 'Automatically delete head branches' for the repository** -- confirm with @qmk/directors that it is done before continuing
  66. * `qmk_firmware` git commands
  67. * `git checkout master`
  68. * `git pull --ff-only`
  69. * `git merge --no-ff develop`
  70. * `git tag <next_version>` # Prevent the breakpoint tag from confusing version incrementing
  71. * `git push upstream <next_version>`
  72. * `git push upstream master`
  73. ## Post-merge operations
  74. ### Updating the `develop` branch
  75. This happens immediately after the previous `develop` branch is merged to `master`.
  76. * `qmk_firmware` git commands
  77. * `git checkout master`
  78. * `git pull --ff-only`
  79. * `git checkout develop`
  80. * `git pull --ff-only`
  81. * `git merge --no-ff master`
  82. * Edit `readme.md`
  83. * Add a big notice at the top that this is a testing branch. See previous revisions of the `develop` branch.
  84. * Include a link to this document
  85. * `git commit -m 'Branch point for <DATE> Breaking Change'`
  86. * `git tag breakpoint_<YYYY>_<MM>_<DD>`
  87. * `git push upstream breakpoint_<YYYY>_<MM>_<DD>`
  88. * `git push upstream develop`
  89. * All submodules under `lib` now need to be checked against their QMK-based forks:
  90. * `git submodule foreach git log -n1`
  91. * Validate each submodule SHA1 matches the qmk fork, e.g. for ChibiOS:
  92. * Go to [qmk/ChibiOS](https://github.com/qmk/ChibiOS)
  93. * Compare the commit hash in the above output to the commit hash in the repository
  94. * If there's a mismatch, that repository needs to have its `qmk-master` branch updated to match (otherwise Configurator won't work):
  95. * `cd lib/chibios`
  96. * `git fetch --all`
  97. * `git checkout qmk-master`
  98. * `git reset --hard <commit hash>`
  99. * `git push origin qmk-master --force-with-lease`
  100. * Announce that both `master` and `develop` are now unlocked -- message `@Breaking Changes Updates` on `#qmk_firmware` in Discord:
  101. * `@Breaking Changes Updates -- Hey folks, develop has now been merged into master -- newest batch of changes are now available for everyone to use!`
  102. * (Optional) [update ChibiOS + ChibiOS-Contrib on `develop`](chibios_upgrade_instructions.md)
  103. ### Set up Discord events for the next cycle
  104. * Update this file with the new dates: `docs/breaking_changes.md`
  105. * Create Events on the QMK Discord - "Somewhere Else" => "GitHub":
  106. * Event #1:
  107. | Field | Value |
  108. |-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  109. | Topic | Last `develop` functionality PRs to be raised |
  110. | Start Date | ((5 weeks before merge)), 12:00am |
  111. | End Date | ((4 weeks before merge)), 12:00am |
  112. | Description | This is the last window for functional PRs to be raised against `develop` for the current breaking changes cycle. After ((4 weeks before merge)), any new PRs targeting `develop` will be deferred to the next cycle. |
  113. * Event #2:
  114. | Field | Value |
  115. |-------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  116. | Topic | Last `develop` functionality PRs to be merged |
  117. | Start Date | ((4 weeks before merge)), 12:00am |
  118. | End Date | ((2 weeks before merge)), 12:00am |
  119. | Description | This is the last window for functional PRs to be merged into `develop` for the current breaking changes cycle. After ((2 weeks before merge)), only bugfix PRs targeting `develop` will be considered for merge. |
  120. * Event #3:
  121. | Field | Value |
  122. |-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  123. | Topic | `develop` closed for merges |
  124. | Start Date | ((2 weeks before merge)), 12:00am |
  125. | End Date | ((day of merge)), 12:00am |
  126. | Description | This is the deadline for functionality bugfix PRs to be merged into `develop` for the current breaking changes cycle. After ((1 week before merge)), only critical bugfix PRs targeting `develop` will be considered for merge. |
  127. * Event #4:
  128. | Field | Value |
  129. |-------------|----------------------------------------------------------------------------------------------------------------------|
  130. | Topic | `master` closed for merges |
  131. | Start Date | ((2 days before merge)), 12:00am |
  132. | End Date | ((day of merge)), 12:00am |
  133. | Description | This is the period that no PRs are to be merged to `master`, so that the merge of `develop` into `master` is stable. |
  134. * Event #5:
  135. | Field | Value |
  136. |-------------|--------------------------------------------------------------------------------------------------------------------------------------------|
  137. | Topic | `develop` merges to `master` |
  138. | Start Date | ((day of merge)), 12:00am |
  139. | End Date | ((day of merge)), 11:45pm |
  140. | Description | At some point, QMK will merge `develop` into `master` and everyone will be able to reap the benefits of the newest batch of functionality. |