Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Many duplicate new module submissions #60

Closed
MichaelBaydoun opened this issue Apr 1, 2016 · 8 comments
Closed

Many duplicate new module submissions #60

MichaelBaydoun opened this issue Apr 1, 2016 · 8 comments
Assignees
Labels

Comments

@MichaelBaydoun
Copy link

Today a third new module pull request was submitted that duplicates the functionality of two previously submitted new modules
ansible/ansible-modules-extras#1939
ansible/ansible-modules-extras#1908
ansible/ansible-modules-extras#1352

Two ideas that could help:
Review/approve/merge new modules faster
Add language to the new module guidelines to look for duplicate pending merge requests

@gregdek
Copy link
Contributor

gregdek commented Apr 6, 2016

Some discussion about this on IRC today:

12:33 PM re dup prs etc... The bot could potentially compare a pr's diff (mainly which files changed) against existing prs and show them as potential dupes. Likely wouldn't catch new features/modules though...
12:34 PM afaict the github api doesn't have a great way to find pr's that change a particular file though. It's doable with local git against a checkout with the pull refs fetched though.
12:35 PM PRs list the files that are changed
12:35 PM I was debating writing a bot that would hold all files PRs are changing, so it could do cross referencing
12:35 PM the bot and triage.py seem to iterate all the prs and compare their changed files against the mantainers date.
12:36 PM I had though about using levenshtein distance to calculate similarity of changes...
12:39 PM though would be nice then when creating a PR, github listed all other PRs for files that are common
12:40 PM one problem with the way the bot works now, is that it chews up a lot of API requests. Would be better if it were a webhook instead.
12:41 PM so the more you try to do, the more likely you are to run out of API requests
12:46 PM I have some code that takes the diffs from prs and figures out the which lines would be changed when applied (without checking out the merge). prs could be compared for overlapping lines changed.

@MichaelBaydoun
Copy link
Author

Perhaps a note in module guidelines or contributions suggesting searching the existing pull requests to see if someone is already working on the module you are considering writing.

@gregdek
Copy link
Contributor

gregdek commented Jun 29, 2017

This is something we should put into the contributor guide. @gundalow do we have something like this?

@gundalow
Copy link
Contributor

PR flow chart
Do I need to raise a PR LINK: sivel's prbyfile LINK: How to review

@robynbergeron
Copy link
Contributor

Labelling for discussion in Community WG meeting today.

@gregdek
Copy link
Contributor

gregdek commented Sep 13, 2017

Now that we've cleaned up our contributing guidelines, we should be able to add this to the new documentation. I'll take this one. The simplest thing: "Add language to the new module guidelines to look for duplicate pending merge requests."

@gregdek gregdek assigned gregdek and unassigned gundalow Sep 13, 2017
@gregdek
Copy link
Contributor

gregdek commented May 22, 2018

@gregdek gregdek closed this as completed May 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants