-
Notifications
You must be signed in to change notification settings - Fork 56
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
Refactor #54
Conversation
…ave to be denormalized.
…functionality from there. is_dependent is then obsolete and removed.
… get correct result.
# Conflicts: # t.py # test/test_core.py # testmon/testmon_core.py
Well it works fine with xdist as far as I can tell. Pretty cool! |
Cool! Getting an exception, likely because of an old format in
|
Sure, you have to delete .testmondata and start from scratch.
|
Yep, that worked - should be handled though automatically, shouldn't it? (or display some error that it has to be moved/deleted). Apart from that: it seems to behave better in my small testing. |
The db went from ~10 meg to ~70 meg in my case. It's fine, but something to just keep tabs on. Looking at just the modification times of files is the problem for me still I think. It would be better for my case if it could look at the git diff since the SHA the db is from. I know it might be a bit of a special case, but maybe it's worth having some different ways to calculate changed files? Git is pretty good at this... This change is pretty great in my testing, even for the special case I am trying to use testmon for. You should definitely merge this! |
Thanks for feedback. Yeah, I disabled the compression so it's easier to
poke around while debugging. I'm glad it's not a big problem for you.
So I guess the mtimes of the identical file/versions checked out from git
in different locations are different. It's trivial to add CRC/adler32
checksum implementation, no need for git dependency. I just didn't get
around to do it.
|
Ah, yea, that seems like a better solution. |
I'm going to continue writing my tooling here like it's already doing checksums on the files and eat the extra ~3 minutes of initial startup time I get because I don't have it for now I think. |
I think you would better of just implement the crc into testmon. I'm going
to work on it now for 20 minutes, and share with you where I left of.
|
Great! |
Actually, it's a can of worms. I pushed something but it's shows the need
to completely refactor the part of TestmonData into FileSystem and change a
lot of things, including fixing the test suite so that it doesn't assume
it's enough to change modified time of a file to force parsing...
|
Pity. Well, in any case, will you release a new version based on this branch in the mean time? |
The answer is yes clearly :P Thanks! |
Btw, wanted to say it works great now for our weird use case. Thanks again! |
This addresses issues: #53 #52 #51 #50 #32
partially #42 (poor mans solution)
With the limited test cases it worked and the performance was OK. If @blueyed @boxed tell me it works for them I'll merge and release.