-
Notifications
You must be signed in to change notification settings - Fork 122
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
Add --bleeding-edge into pre-commit autoupdate #590
Add --bleeding-edge into pre-commit autoupdate #590
Conversation
Signed-off-by: SADIK KUZU <[email protected]>
Thanks for the PR. This is a good start, but it looks like a brute force fix for our problem. It looks like bleeding edge just uses the latest version of any dependency. Do we know which dependency is causing our issue. While "bleeding-edge" might fix the current issue... I think that in the future we might end up with other transient error. Also, I think that it's important to include the pre-commit update as part of our CI, to make sure we will not regress on this. That is, include the changes from #572 to check that this fixes the issue :) |
To demonstrate so, I ran such commands: git clone https://github.com/twisted/towncrier.git
cd towncrier
git checkout --track origin/571-pre-commit-hooks
git fetch origin HEAD --tags
git describe FETCH_HEAD --tags --abbrev=0 Then I got: When I go to towncrier 22.8.0 version, there is no |
On the other hand, |
590d237
to
0c8ca1e
Compare
@adiroiban hi, |
Ok 28.8.0 is an older version. But https://github.com/twisted/towncrier/tree/23.11.0 has that file.
We remove the branch that is used to do the release... so that we don't have too many branches in the auto-complete list This is why you have that warning. |
I have approved the CI. I only now saw that this PR is targeting the ohter 571 branch... sorry, I was not expecting this... and I was just doing all kind of experiments on my branch. |
Many thanks for the help here. I think I got this. So the issue is with
We release towncrier from a branch/tag and not from We then squash the branch...and the tag commit is lost. I think that the fix here, is to do a new towncrier release, in which we make sure we don't use a squash merge. |
Moreover, this pre-commit step is not necessary: Remaining next steps alone do right actions: |
Thanks for your help and feedback. You help was critical in finding the source of this bug. I don't think that we should merge this PR and use bleeding edge. Instead, we should fix the release process to add a note that release PR should not be squashed...and then do a new release without a squash. |
My pleasure 🙏🏼 ✨ Yes, we may close this PR. New release process will fix the issue. 👍🏼 |
For this |
The idea of the CI jobs was to do a full pre-commit cycle, similar to how it is used by developers, not only the auto-update step that is needed for this bug. |
Then it should be |
Bleeding edge isn't the solution here. |
Please add your feedback and suggestion to the #571 PR |
Description
Resolves #571 and #572
before:
after:
Checklist
src/towncrier/newsfragments/
. Describe yourchange and include important information. Your change will be included in the public release notes.
docs/tutorial.rst
is still up-to-date.docs/cli.rst
reflects those changes.docs/configuration.rst
reflects those changes.