-
Notifications
You must be signed in to change notification settings - Fork 769
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
Removes dead code. #300
Removes dead code. #300
Conversation
This also makes the old tests to follow the code path that actually happens in "production". Review status: 0 of 2 files reviewed at latest revision, all discussions resolved, some commit checks broke. Comments from the review on Reviewable.io |
I'm just worried that we're testing two methods at the same time 😕 Review status: 0 of 2 files reviewed at latest revision, all discussions resolved, some commit checks broke. Comments from the review on Reviewable.io |
I'm a bit unsure how it should be split, notice that MatchesSemanticTrigger_RegexTrigger_test also seems like an example of this, both string and regex matching requires the prepare step. Review status: 0 of 2 files reviewed at latest revision, all discussions resolved, some commit checks broke. Comments from the review on Reviewable.io |
Is true, and is also true that the Review status: 0 of 2 files reviewed at latest revision, all discussions resolved, some commit checks broke. Comments from the review on Reviewable.io |
☔ The latest upstream changes (presumably #292) made this pull request unmergeable. Please resolve the merge conflicts. |
Should I worry about this coverage thing? Review status: 0 of 2 files reviewed at latest revision, all discussions resolved, some commit checks broke. Comments from the review on Reviewable.io |
I mean, in this case. Review status: 0 of 2 files reviewed at latest revision, all discussions resolved, some commit checks broke. Comments from the review on Reviewable.io |
@oblitum In general, deleting code that had test coverage that was higher than the project average will always bring down the project average coverage. So don't worry about it. |
@Valloric ok, thanks. Review status: 0 of 2 files reviewed at latest revision, all discussions resolved, some commit checks broke. Comments from the review on Reviewable.io |
@oblitum have you rebased on top of the other PR you made? I think that this otherwise Review status: 0 of 2 files reviewed at latest revision, all discussions resolved, some commit checks broke. Comments from the review on Reviewable.io |
Reviewed 1 of 2 files at r1, 1 of 1 files at r2. Comments from the review on Reviewable.io |
Since regex triggers have been enabled, _StringTriggerMatches was actually not in use anymore since _PrepareTrigger always return regexes, making triggers never a instance of basestring.
@vheon did it again now. Review status: all files reviewed at latest revision, all discussions resolved, some commit checks pending. Comments from the review on Reviewable.io |
Reviewed 1 of 2 files at r1, 1 of 1 files at r2. Comments from the review on Reviewable.io |
Hm, we seem to be getting some flakiness from typescript tests... @homu r+ |
📌 Commit 9bceb9d has been approved by |
Removes dead code. Since regex triggers have been enabled, _StringTriggerMatches was actually not in use anymore since _PrepareTrigger always return regexes, making triggers never a instance of basestring. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/valloric/ycmd/300) <!-- Reviewable:end -->
☀️ Test successful - status |
I think we hit a threading bug in the completer even though we have a lock there 😕 |
I looked at this before, as I hit it too. It looks like we basically take concurrency down to 1 with the We don't lock the version of npm install -g typescript We could at least improve the diagnostics if it keeps happening. |
Flaky tests are a huge pet peeve of mine. I strongly believe such tests add negative value so I tend to either fix the flakiness behind them or delete the tests involved. So if this continues to happen and nobody tackles it before I get to it, I'll take a look at it and one of those two will happen. :) We can't have flaky tests. They make the whole test suite pointless. |
Since regex triggers have been enabled, _StringTriggerMatches was
actually not in use anymore since _PrepareTrigger always return
regexes, making triggers never a instance of basestring.