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

test framework is fragile to file permissions changes (+x) #209

Closed
pcostell opened this issue Jul 1, 2015 · 8 comments
Closed

test framework is fragile to file permissions changes (+x) #209

pcostell opened this issue Jul 1, 2015 · 8 comments

Comments

@pcostell
Copy link
Contributor

pcostell commented Jul 1, 2015

No description provided.

@dhermes
Copy link
Contributor

dhermes commented Jul 1, 2015

See comments on #208 and #86 for context.

@pcostell
Copy link
Contributor Author

pcostell commented Jul 1, 2015

Bringing the conversation here:
In theory watching for drastic coverage changes could have caught this -- it would have dropped from ~65% to 55%.

@pcostell pcostell changed the title test_oauth2client doesn't run with the rest of the tests test framework is fragile to file permissions changes (+x) Jul 1, 2015
@dhermes
Copy link
Contributor

dhermes commented Jul 1, 2015

That's true. I was writing it off as one less line of code without any new coverage ((A - 1) / (B -1) < A / B) without actually looking at the difference between numbers.

A true solution would be 100% code coverage and having coveralls fail if it ever dropped.

@eamonnmcmanus
Copy link
Contributor

Actually @dhermes when you looked it really was just one less line of code. I added the regression test later at the request of @nathanielmanistaatgoogle and that's when I screwed up the permissions.

@dhermes
Copy link
Contributor

dhermes commented Jul 1, 2015

Yeah that's true. I think 100% code coverage makes it fool-proof. Finding a permission change among

screen_shot_020

is not an easy task

@eamonnmcmanus
Copy link
Contributor

Oh wow, those are octal permission masks. Live and learn.

@dhermes
Copy link
Contributor

dhermes commented Jul 1, 2015

Indeed, but no one would even think to look at them during a code review.

@dhermes dhermes mentioned this issue Jul 2, 2015
52 tasks
@theacodes
Copy link
Contributor

Thank you for creating this issue, however, this project is deprecatedand we will only be addressing critical security issues. You can read moreabout this deprecation here.

If you need support or help using this library, we recommend that you ask yourquestion on StackOverflow.

If you still think this issue is relevant and should be addressed, pleasecomment and let us know!

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

No branches or pull requests

4 participants