Skip to content
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

fix caching of file-categorization logic #1044

Merged
merged 1 commit into from Dec 23, 2017

Conversation

bukzor
Copy link
Contributor

@bukzor bukzor commented Dec 20, 2017

fixes #1041

Copy link
Member

@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first priority is the legal issue noted below; please sort this out before continuing.

After that, check the Travis build for comments - you'll need to add a release file and work out why we're now getting unicode errors.

CONTRIBUTING.rst Outdated
@@ -163,6 +163,7 @@ their individual contributions.
* `Alex Stapleton <https://www.github.com/public>`_
* `Alex Willmer <https://github.com/moreati>`_ (alex@moreati.org.uk)
* `Ben Peterson <https://github.com/killthrush>`_ (killthrush@hotmail.com_)
* `Buck Evan, copyright Google LLC <https://github.com/bukzor>`_
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From CONTRIBUTING.rst:

It's important to make sure that you own the rights to the work you are submitting. If it is done on work time, or you have a particularly onerous contract, make sure you've checked with your employer.

@DRMacIver can confirm, but I don't think we can accept a patch owned by (eg) Google without some documentation proving it's licensed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine as long as @bukzor has filled out the necessary internal paperwork RE open source contributions, which we can take his word on.

Copy link
Member

@Zac-HD Zac-HD Dec 21, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never having worked at Google, I'll take your word for it! @bukzor, that means it's just the test and whitespace issue to go 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm an agent of the company in this respect. I verify that I put my copyrighted work under your license just as your other contributors do.

Strictly FYI: Because this project is under MPL, it falls into the category of "no approval necessary" projects. Google only asks that I use my @google.com email for commits, and any contributor-copyright is labelled as "Google LLC".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Zac-HD: Github says you've requested changes, but the "view changes" button 404s for me. I don't think I can get out of this state without your help.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat - it's always nice to hear about sensible IP policies!

I suspect rebasing broke the link; Github really seems to discourage it 😢 (or they just can't be bothered supporting it...). You've made all the changes I'd request now anyway ✨

Copy link
Member

@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉

And, belatedly, thanks so much for the pull - it's all too easy for small sources of slowness to build up unchecked, so the profiling, reporting, and fix are all truly appreciated 😄

@Zac-HD Zac-HD merged commit 3793dd2 into HypothesisWorks:master Dec 23, 2017
@bukzor
Copy link
Contributor Author

bukzor commented Dec 23, 2017

This should really have a regression test, especially since it's obviously already regressed once. I can contribute one if you sketch how it would work. Or, pointing out an existing similar test would be enough too.

@Zac-HD
Copy link
Member

Zac-HD commented Dec 24, 2017

This should really have a regression test, especially since it's obviously already regressed once.

It's never really regressed - this was created a few months ago when we added coverage-guided testing, and was broken in the same way for as long as it's existed. A test that checks something is in the cache after running would be possible, but IMO is on the wrong side of the power/fragility/risk tradeoff to be worth writing.

@DRMacIver
Copy link
Member

DRMacIver commented Dec 24, 2017

I actually agree this should have a regression test (I think the only reason not to write regression tests is when it would be really difficult or expensive to do so, and even then I'm not happy). I'd meant to comment that on the original pull request - generally speaking the right place and time to write a regression test is before you fix the bug! - but forgot to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

escalation.belongs_to cache is broken
3 participants