Upgrade Mastodon: Difference between revisions
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
all branches refer to those in [https://github.com/NeuromatchAcademy/mastodon NeuromatchAcademy/mastodon] unless specified otherwise. | all branches refer to those in [https://github.com/NeuromatchAcademy/mastodon NeuromatchAcademy/mastodon] unless specified otherwise. | ||
* [https://github.com/NeuromatchAcademy/mastodon/ | * Sync the <code>[https://github.com/NeuromatchAcademy/mastodon/tree/glitch-soc-main glitch-soc-main]</code> branch to <code>glitch-soc/mastodon:main</code>: Open the branch page and click "sync fork" | ||
* Resolve conflicts, ensuring that [[Mastodon/Hacking|changes we have made locally]] are preserved when possible. | ** If there are any local changes that make a conflict, they can be discarded - this branch is supposed to just be a local copy of the upstream <code>main</code> branch that ''doesn't'' reflect our local changes, we will handle that in the next step. | ||
[[File:Upgrading-sync-branch.png|class=img-responsive]] | |||
* [https://github.com/NeuromatchAcademy/mastodon/compare/merge-upstream...NeuromatchAcademy:mastodon:glitch-soc-main Create a pull request] from <code>glitch-soc-main</code> to <code>merge-upstream</code> | |||
** Resolve conflicts, ensuring that [[Mastodon/Hacking|changes we have made locally]] are preserved when possible. | |||
** If it is not possible to preserve a hack, eg. because the relevant feature has been deprecated, update the corresponding feature page and include that in the pull request description | ** If it is not possible to preserve a hack, eg. because the relevant feature has been deprecated, update the corresponding feature page and include that in the pull request description | ||
* | ** Don't try and fix failing tests here - that would edit the <code>glitch-soc-main</code> branch, which will then be overwritten on the next fork fix. | ||
* | |||
== Discord == | == Discord == | ||
Line 31: | Line 35: | ||
https://discord.com/channels/1049136631065628772/1049184335514828860/1109355378178789396 | https://discord.com/channels/1049136631065628772/1049184335514828860/1109355378178789396 | ||
|Link=https://discord.com/channels/1049136631065628772/1052452072806686751/1109356466130931765 | |Link=https://discord.com/channels/1049136631065628772/1052452072806686751/1109356466130931765 | ||
}} | }} |
Revision as of 22:56, 19 September 2023
Up to: Tech WG
Stages
Merging
all branches refer to those in NeuromatchAcademy/mastodon unless specified otherwise.
- Sync the
glitch-soc-main
branch toglitch-soc/mastodon:main
: Open the branch page and click "sync fork"- If there are any local changes that make a conflict, they can be discarded - this branch is supposed to just be a local copy of the upstream
main
branch that doesn't reflect our local changes, we will handle that in the next step.
- If there are any local changes that make a conflict, they can be discarded - this branch is supposed to just be a local copy of the upstream
- Create a pull request from
glitch-soc-main
tomerge-upstream
- Resolve conflicts, ensuring that changes we have made locally are preserved when possible.
- If it is not possible to preserve a hack, eg. because the relevant feature has been deprecated, update the corresponding feature page and include that in the pull request description
- Don't try and fix failing tests here - that would edit the
glitch-soc-main
branch, which will then be overwritten on the next fork fix.
Discord
Tech WG/Ops Diary#23-05-19: We are attempting to Upgrade Mastodon to 4.1.2 and also merge in Exclusive Lists, wish us luck.
We begin with what is probably the worst way to do it based on the conversation in <#1049184335514828860> , specifically:
- main -> dev,
- upstream -> dev,
- dev -> pr,
- pr -> dev,
- dev -> main
https://discord.com/channels/1049136631065628772/1049184335514828860/1109355378178789396