Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

[READY] Add shutdown handler #39

Merged
merged 1 commit into from Oct 9, 2017
Merged

[READY] Add shutdown handler #39

merged 1 commit into from Oct 9, 2017

Conversation

micbou
Copy link
Collaborator

@micbou micbou commented Sep 20, 2017

Adding a shutdown endpoint makes it possible to cleanly exit JediHTTP on Windows. This is implemented the same way as in ycmd. See PR ycm-core/ycmd#282 for more detail.

I made the following changes to the setup and teardown methods of the end-to-end tests:

  • start the server with logging level set to debug;
  • wait for the server to be ready before each test;
  • use the new shutdown handler to stop the server after each test;
  • write the output of the server to nosetests stdout at the end of each test.

This change is Reviewable

@micbou
Copy link
Collaborator Author

micbou commented Oct 9, 2017

@vheon You seem to be busy so I'll go ahead and merge this PR and #40.

@zzbot r+


Reviewed 7 of 7 files at r1, 1 of 1 files at r2, 2 of 2 files at r3.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@zzbot
Copy link
Collaborator

zzbot commented Oct 9, 2017

📌 Commit 430fe64 has been approved by micbou

@zzbot
Copy link
Collaborator

zzbot commented Oct 9, 2017

⌛ Testing commit 430fe64 with merge 8f2e44c...

zzbot added a commit that referenced this pull request Oct 9, 2017
[READY] Add shutdown handler

Adding a `shutdown` endpoint makes it possible to cleanly exit JediHTTP on Windows. This is implemented the same way as in ycmd. See PR ycm-core/ycmd#282 for more detail.

I made the following changes to the setup and teardown methods of the end-to-end tests:
 - start the server with logging level set to `debug`;
 - wait for the server to be ready before each test;
 - use the new `shutdown` handler to stop the server after each test;
 - write the output of the server to nosetests stdout at the end of each test.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/vheon/jedihttp/39)
<!-- Reviewable:end -->
@zzbot
Copy link
Collaborator

zzbot commented Oct 9, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: micbou
Pushing 8f2e44c to master...

@zzbot zzbot merged commit 430fe64 into vheon:master Oct 9, 2017
@micbou micbou deleted the shutdown branch October 10, 2017 15:30
zzbot added a commit to ycm-core/ycmd that referenced this pull request Oct 18, 2017
[READY] Update JediHTTP

Include [Jedi 0.11.0](https://github.com/davidhalter/jedi/blob/master/CHANGELOG.rst#0110-2017-09-20).

Update descriptions in `GoToReferences` test.

Use the new shutdown handler introduced in PR vheon/JediHTTP#39 to stop JediHTTP.

Catch exception from shutdown request in semantic completers (when appropriate) so that cleaning up is done even if the request failed.

Fix `TypeError` exception trying to remove the `None` logfile when stopping the server with the `StopServer` subcommand then restarting it with `RestartServer`.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/ycmd/856)
<!-- Reviewable:end -->
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants