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

Always log deployment URL #651

Merged
merged 1 commit into from
Dec 20, 2023
Merged

Always log deployment URL #651

merged 1 commit into from
Dec 20, 2023

Conversation

mmarchetti
Copy link
Contributor

Intent

When a deployment fails, we aren't telling the user where they can view the failed deployment to troubleshoot it.

This PR causes the CLI to always log the deployment's dashboard URL, even on failure, if it is known (the only case where it's not known is a new deployment where we didn't get to the create new deployment step).

This is also passed to the UI as an attribute on the publishing failure event.

Fixes #601
Fixes #605

Type of Change

    • Bug Fix
    • New Feature
    • Breaking Change
    • Documentation
    • Refactor
    • Tooling

Approach

Ensure that logAppInfo is called even on failure (and make it handle failed deployments, and add tests for it).

Automated Tests

Added tests for logAppInfo, which previously didn't have them.

Directions for Reviewers

Try to create or update with failures at various points in the sequence, for example a config file issue that will fail preflight, an unavailable python dependency in requirements.txt, or an app that won't start up. You should see a dashboard URL in the CLI output for all cases except create with a preflight failure (in that case, there is no Connect deployment to view).

@mmarchetti mmarchetti merged commit 3f9c5be into main Dec 20, 2023
22 checks passed
@mmarchetti mmarchetti deleted the mm-always-log-url branch December 20, 2023 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants