jeffh/sniffer

git can cause sniffer to go BONKERS

derek-adair opened this issue · 4 comments

Perhaps there is nothing to be done about this, but there seems to be some funny behavior with certain git actions. I rebased something the other day, and it re-ran my test suite about 4-5 times.

I'm running django 1.8, python 3.4 and selenium 2.45, i believe I am using the latest pypi sniffer (0.3.5). I will continue to provide more meaningful details and perhaps compile a list of behaviors for you. For now, this is all i got!

jeffh commented

Yeah. Sniffer currently doesn't ignore watching repository directory. Sounds like a great enhancement though.


Sent from my iPhone

On Wed, May 6, 2015 at 10:43 AM, Derek notifications@github.com wrote:

Perhaps there is nothing to be done about this, but there seems to be some funny behavior with certain git actions. I rebased something the other day, and it re-ran my test suite about 4-5 times.

I'm running django 1.8, python 3.4 and selenium 2.45, i believe I am using the latest pypi sniffer (0.3.5). I will continue to provide more meaningful details and perhaps compile a list of behaviors for you. For now, this is all i got!

Reply to this email directly or view it on GitHub:
#28

The main symptom is when i rebase. Something about when I am in the middle of squashing / merging. This may not even be practical to switch. Seems like I just may need to cancel the sniffer loop and restart it.

So, its probably rather impractical enhancement; solved w/ a manual workaround or directory structure change (e.g. not have my code in my root git dir)

jeffh commented

Sniffer could support it by ignoring dotfiles (anything that prefixes with a period). I don't think that would be surprising behavior, but I could be wrong about that.

Jeez, i'd never thought of something that obvious and simple. I'll probably figure out a way to manually ignore the .git dir for now.