New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release 12.x #1896
Comments
To minimize the number of PRs like #1897 which merge commits from |
I noticed |
Hmm, it is running now, though it doesn't seem to know it's a breaking release. Did I mess up the semantic commit message? |
I opened #1898 to give this another try. |
That worked. 12.0.0-beta.1 is live: https://www.npmjs.com/package/nock/v/12.0.0-beta.1 |
I minimally checked this version in a PR and it seems to work: paulmelnikow/icedfrisby-nock#154 I'll open a PR for the release. |
When #1899 is ready to merge, does it need to be done using a merge commit to correctly preserve the notes needed for semantic-release? |
It looks like when I merged #1894 into beta as #1897 it's taking it as a different commit, so there are merge conflicts. To fix that I think I need to merge master into beta with a merge commit. It begs the question – will the same thing need to happen when it's merged back into master (i.e. a merge commit)? @gr2m what would you suggest? |
I think what I did in #1897 is wrong, and that the first thing that's needed is a merge commit from master into beta to pull in the changes that have been made. After that I guess it needs to be a merge commit from beta back to master? That's the only way I'm seeing, though I'm open to learning a different way this can be done. |
Merge commits are ok in this case. Also big +1 for short lived beta branches. I'd rather do 3 breaking releases instead of having a beta release phase that goes on for months |
I usually do the merges locally, so I don't need to change the settings, but that works too |
If possible, I'd vote for a "Rebase and Merge" on #1899 so the merge-in commits will be removed and the end master branch will be cleaner, while still maintaining the changes we want. |
At #1871 (comment) @gr2m mentioned that semantic-release is using notes on the commit. Will rebase and merge work with that, especially once we delete or move aside the beta branch? If that works, I'd prefer it too. |
I think rebasing & merging into master should be okay. The problem is that once you rebase I'd suggest to do the rebase and merge |
Okay. I think the rebase + merge button will do that. It'll pull in the merge commits. Does that sound good? Alternatively I can take your suggestion to do a manual rebase locally. If I do that I would want to check it in GitHub before merging it to master. Besides checking that I haven't made any merge mistakes, I think it's better that anyone can see what I'm proposing to do. I can push it to something named other than beta, so semantic-release will leave it alone until it's merged. |
yeah you can do that. |
Do that = push the rebase + merge button? |
Yes. Just be 100%, I understand you want to
|
No, the first option was:
The other one is:
|
I just ran a rebase of beta on master on my local. It was clean with no errors. I think you should just go with the first option. It's the easiest and should do the same job in the end. You can see the result here master...mastermatt:release-12x |
Huh, there are no merge commits. It looks cleaner than what's in #1899. |
Why don't we use rebase + merge on that? #1901 |
Using the Rebase and Merge option on 1899 would have the same effect. Merge commits and noop commits are removed as part of the Rebase. 1899 and 1901 are effectively identical now. |
Okay, well, let’s merge #1899 then. It’s always great to understand this stuff better! |
Welp, the commit history looks great, though it was released as 11.9.0 instead of 12.0.0 and I've no idea why. The same thing happened initially on the beta branch when I merged 6c504c3. Maybe it needs to be I guess we should publish a 11.9.1 which is the same as 11.8.2 (manually?) and then add a commit with the correct change entry to get the 12.x release out? Argh… |
Yes :( The First thing: set
I'd release a fix commit that reverts the changes, then deprecate 11.9.0. Then do the release for 12 proper. I can help with that on Friday. But I would revert the breaking change as soon as possible. Do you need help with that? |
Can you add me on npm? |
done |
This makes sense, though I also think it would be nice not to have the two revert commits in the main branch. The history is better as it is, it's only the release that's wrong. Could we do what you're suggesting as a maintenance release on an 11.x branch? Added: Either way the changelog is going to need to be fixed manually. |
So far it's not showing yet on the npm website. I don't see the Admin tab and I get a 403 when I update the dist-tag. I'll keep trying. Added: I see it here: https://www.npmjs.com/settings/paulmelnikow/packages. Clearly it's gonna take a minute to propagate. |
just fyi I run |
Where are we with this? Am I right that the hash of 11.9.0 should be retagged and published as 12.0.0 and 11.9.0 should be deleted? Don't we only have a couple of days to delete accident versions on npm? |
Let me push a fix patch version 11.9.1 and then look into beta, ok? |
Once #1905 is merged, I'll redo the |
If that's not a lot of work, then sure! |
Actually, I think we should just make a branch that's to be merged into master (using the rebase + merge button). I don't think there's any point running it through |
Agree |
Thanks @gr2m! I've tweaked the 12.0.0 release notes and I think we're back on track. |
I've opened a few PRs with breaking changes that I want to batch up for v12, though I suggest once that queue has been cleared we ship 12.x and resume working on improvements on master. In the past we used beta because we wanted to drop Node 6 and that would have severely held up development, though it would be a lot of overhead to maintain a beta and active branch and I don't think we have the capacity.
I like the idea of using short-lived beta branches this way: solely for batching up breaking changes; extra points if we've implemented the breaking changes it in a backward-compatible way with shims which can simply be removed.
The text was updated successfully, but these errors were encountered: