Skip to content

Add method to side-step Milestone.labels issue #767

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

Closed
wants to merge 3 commits into from

Conversation

sigmavirus24
Copy link
Owner

We still can't figure out why our integration test for Milestone.labels
sometimes completely ignores Betamax and hits GitHub's API. To side-step
consistently failing tests, let's generate unique User-Agent strings to
see if we can side-step the ratelimit problem on Travis CI.

We still can't figure out why our integration test for Milestone.labels
sometimes completely ignores Betamax and hits GitHub's API. To side-step
consistently failing tests, let's generate unique User-Agent strings to
see if we can side-step the ratelimit problem on Travis CI.
@sigmavirus24 sigmavirus24 force-pushed the side-step-milestone-labels branch from 253fd07 to dfc8b5f Compare January 7, 2018 12:53
It seems interacting with the cassette to start with causes the test to
pass... So let's only look at it when we want to see what was going on
when it failed.
@sigmavirus24
Copy link
Owner Author

https://travis-ci.org/sigmavirus24/github3.py/jobs/326035335 I was beginning to think that dfc8b5f had "fixed" the issue by touching the cassette prior to a test run. Luckily not. So now I'm wondering if there's something wrong with the code and how we use a session such that we're side-stepping Betamax.

@sigmavirus24
Copy link
Owner Author

I was looking in all the wrong places. I did some debugging to see if there was a fundamental logic error in the GitHubCore or GitHubIterator objects and found that in fact, that issue.milestone.session was different from issue.session which was surprising. That led to me finding the bug which is now fixed in #770. 🎉

@sigmavirus24 sigmavirus24 deleted the side-step-milestone-labels branch January 7, 2018 13:11
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.

2 participants