-
Notifications
You must be signed in to change notification settings - Fork 25
Verify deployments #511
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
Verify deployments #511
Conversation
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
Verified on a number of apps.
It also found a potential bug! When deploying a sanic api to Connect, we don't display anything at the root directory but we can hit the endpoint via curl so our current testing has been passing. I may need to set |
Also concerning the issue I hit above, I wonder if we want to make |
One more note... We may want to hold off on this or adjust the default behavior as I mentioned. |
Personally, I think there are lots of benefits to verifying such that it should be the default. But if we wanted to do a release now where it is opt-in, and then change the default to opt-out in a following release after we've had more time to catch issues, that seems reasonable. |
The verify check should honor |
How about we adjust the failure from an ERROR to a WARNING:
|
Notebooks should be OK, since we wait until the rendering is complete so the "verify" step is loading the rendered notebook HTML. You would need to set |
Okay all looks good. Also looks like my |
This PR introduces a new feature that verifies that content items are live and accessible after deployment. This is most useful for apps and APIs. Accessing the content causes Connect to launch a worker process to service the request; this will catch apps that fail to start up because of import errors or exceptions raised on import.
There is a new CLI flag
--no-verify
to prevent this behavior in cases where it's not wanted (for example, if app startup is expensive or might have side effects).Intent
Fixes #503
Type of Change
Automated Tests
There are integration tests that cover the new behavior and the flag.
Directions for Reviewers
Deploy all kinds of content, including some apps that fail to start. Check that the verification catches those. Also deploy with
--no-verify
and check that even faulty apps can be deployed without rsconnect detecting the error.Also deploy to a server with a path prefix (like Yeti or Colorado), since the path prefix is used when accessing the app.
Checklist