Today I made a commit to my pull request which was created way before this change. Now the code quality test is failing because of exit code 1 by authors_update.py. Can you please help, so that I can clear the tests
--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAHVvXxSMHwun7u6UtWkbb-4vaV9hHjgZa%3DmBi6iEToK4cD5RRg%40mail.gmail.com.
@Oscar the test is still failing with the same error
$ bin/authors_update.py
No changes made to AUTHORS.
On Thu, Aug 26, 2021 at 3:09 PM Chris Smith <smi...@gmail.com> wrote:
>
> > many PRs need to make changes to the end of the same file. A simple fix is to make it so that the changes are not at the end
>
> Can't you just put a decorator line (or comment?) on the last line so anyone's name would come before that?
I don't think that would fix it. Git can't automatically merge two
changes in the exact same place in a file, the end or otherwise.
On Mon, Aug 30, 2021 at 1:46 PM Oscar <oscar.j....@gmail.com> wrote:
>
> Okay so here's a proposal:
>
> List all authors in .mailmap which can be sorted alphabetically by primary name/email combination. New contributors have to add their name and email address in there (plus any alternate name/email combinations used in their commits). They should then run a script that sorts the file and commit and push that change to .mailmap. CI checks that the mailmap lists all authors and fails if not. Then at release time the AUTHORS file itself is updated keeping the ordering system that is already in use. On the release branch we can have CI fail if the AUTHORS file is not up to date but new contributors don't usually open PRs for the release branch so conflicts are unlikely. In future that would mean that merge conflicts around the AUTHORS file are unlikely and we would always have an accurate list of names of contributors.
>
> Does that sound reasonable?
I think so. As long as the script is idempotent so that you can always
just run the script to make sure everything is sorted properly. I do
think making the script interactive would be even better, so that
people don't have to figure out how .mailmap works, but this should at
least fix the merge conflict problems.