Skip to content

Merge pull request #7550 from pytest-dev/release-6.0.0 #7556

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

Merged
merged 1 commit into from
Jul 29, 2020

Conversation

nicoddemus
Copy link
Member

No description provided.

@nicoddemus
Copy link
Member Author

(Going ahead and merge this to complete the release)

@nicoddemus nicoddemus merged commit df09a31 into pytest-dev:master Jul 29, 2020
@nicoddemus nicoddemus deleted the cherry-pick-release branch July 29, 2020 00:04
@nicoddemus
Copy link
Member Author

Oh I just realized the release process doesn't work from releases made directly from master, as is the case with major/minor releases... or did I miss something?

@bluetech
Copy link
Member

Not sure I understand, can you explain what doesn't work?

@nicoddemus
Copy link
Member Author

Sorry, should have been more specific: our master still contain the changelog entries from 6.0.0.

@bluetech
Copy link
Member

I think in the days of old (i.e. previous release) you cherry-picked the release commit from the stable branch to master. It's a bit annoying but I don't see a way around that.

@nicoddemus
Copy link
Member Author

nicoddemus commented Jul 29, 2020

Hmmm can't we always merge back from release -> master after each release (for example merge 6.0.x back into master after 6.0.0, 6.0.1, and so on)? The duplicated commits shouldn't cause problems.

@bluetech
Copy link
Member

I suspect they will cause problems -- sometimes things drift and the backport is not a clean application of the original commit. Is there a reason to prefer a merge over a cherry-pick?

@nicoddemus
Copy link
Member Author

Hmm I think the problem is that we explicitly discard the cherry-pick results for the changelog folder:

git fetch --all --prune
git checkout origin/master -b cherry-pick-release
git cherry-pick --no-commit -m1 origin/MAJOR.MINOR.x
git checkout origin/master -- changelog  # <- discards the changelog deletions
git commit  # no arguments

I guess it makes sense to keep those changes so they don't appear in the next major/minor again?

@bluetech
Copy link
Member

Hmm yes, I think this is just a mindless copy/paste (by me) from the old workflow. I think we should remove this line now.

@nicoddemus
Copy link
Member Author

No worries, let me amend that and fix the changelog entries (I will do a merge for now, but I agree in general the cherry-pick is the correct approach).

nicoddemus added a commit to nicoddemus/pytest that referenced this pull request Jul 29, 2020
nicoddemus added a commit to nicoddemus/pytest that referenced this pull request Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants