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

Add functionality to delete applications #457

Merged
merged 11 commits into from
Apr 15, 2018
Merged

Conversation

JayShenoy
Copy link
Contributor

No description provided.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@dcrankshaw
Copy link
Contributor

@JayShenoy can you delete all the cmake files you committed? This PR has 13,000 files and over a million lines of code.

@JayShenoy
Copy link
Contributor Author

My mistake, I just removed that mess

@JayShenoy
Copy link
Contributor Author

@dcrankshaw The frontend and management tests now all pass, but the integration tests are failing because of issues with Docker that I believe are local to my machine.

@dcrankshaw
Copy link
Contributor

jenkins add to whitelist

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1252/
Test FAILed.

Copy link
Contributor

@dcrankshaw dcrankshaw left a comment

Choose a reason for hiding this comment

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

This looks great. Very nice work. I'll merge once the tests pass.

Copy link
Contributor

@simon-mo simon-mo left a comment

Choose a reason for hiding this comment

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

@JayShenoy Great work. A quick question: does this PR intend to just delete applications? Is it suppose to do any clean up between app_model links.

For example, if I registered an application simple-app, and deploy model sum-model linking to simple-app, right now if I delete simple-app, the model container will not be deleted. This is intentional?

Thanks for the great work!

logger.error(msg)
raise ClipperException(msg)
else:
logger.info("Application {app} was successfully deleted").format(
Copy link
Contributor

Choose a reason for hiding this comment

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

This line will error:

    logger.info("Application {app} was successfully deleted").format(
AttributeError: 'NoneType' object has no attribute 'format'

default_output = "DEFAULT"
slo_micros = 30000
app_name = "testapp"
self.clipper_conn.register_application(app_name, input_type,
Copy link
Contributor

Choose a reason for hiding this comment

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

This line will error:

Traceback (most recent call last):
  File "clipper_admin_tests.py", line 88, in test_delete_application_correct
    self.clipper_conn.register_application(app_name, input_type,
NameError: global name 'input_type' is not defined

@@ -80,6 +80,18 @@ def test_link_not_registered_model_to_app_fails(self):
self.clipper_conn.link_model_to_app(app_name, not_deployed_model)
self.assertTrue("No model with name" in str(context.exception))

def test_delete_application_correct(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

You also need to add this test function to SHORT_TEST_ORDERING list below:

SHORT_TEST_ORDERING = [

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh good catch!

@dcrankshaw
Copy link
Contributor

@simon-mo Yeah that behavior is correct. Deleting an application should not delete any models.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1288/
Test FAILed.

@JayShenoy
Copy link
Contributor Author

@simon-mo This PR is purely intended to delete applications. I believe someone else is working on deleting models.

@dcrankshaw I have made the necessary revisions.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1297/
Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1338/
Test FAILed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1341/
Test PASSed.

@JayShenoy
Copy link
Contributor Author

Bless up 🙏

@dcrankshaw
Copy link
Contributor

Nice job!

@dcrankshaw dcrankshaw merged commit 1f294d7 into ucbrise:develop Apr 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants