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

CLI: Improve modern logs for create stack #10053

Merged
merged 5 commits into from Oct 5, 2021
Merged

CLI: Improve modern logs for create stack #10053

merged 5 commits into from Oct 5, 2021

Conversation

medikoo
Copy link
Contributor

@medikoo medikoo commented Oct 4, 2021

Addresses: #9860

  • Ensured no resources progress on create stack (as it's only about addition of deployment bucket)
  • Ensured empty line at the end of the output (from the google doc feedback)

@codecov
Copy link

codecov bot commented Oct 4, 2021

Codecov Report

Merging #10053 (2c35848) into master (9b5e6b1) will not change coverage.
The diff coverage is 72.72%.

❗ Current head 2c35848 differs from pull request most recent head 26f9ce8. Consider uploading reports for the commit 26f9ce8 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##           master   #10053   +/-   ##
=======================================
  Coverage   85.53%   85.53%           
=======================================
  Files         333      333           
  Lines       13473    13473           
=======================================
  Hits        11524    11524           
  Misses       1949     1949           
Impacted Files Coverage Δ
scripts/serverless.js 56.07% <33.33%> (ø)
lib/plugins/aws/lib/monitorStack.js 93.54% <85.71%> (ø)
lib/cli/handle-error.js 85.71% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9b5e6b1...26f9ce8. Read the comment docs.

if ((completedResources.size || inProgressResources.size) && action !== 'create') {
const progressMessagePrefix = (() => {
if (action === 'update') return 'Updating';
if (action === 'delete') return 'Deleting';
Copy link
Contributor

Choose a reason for hiding this comment

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

It should result in Removing instead of Deleting to be consistent with our wording (it has been changed in one of recent PRs)

Copy link
Contributor

@pgrzesik pgrzesik left a comment

Choose a reason for hiding this comment

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

One minor change, otherwise looks good 👍

@@ -901,5 +909,6 @@ const processSpanPromise = (async () => {
});
} finally {
clearTimeout(keepAliveTimer);
log.notice(); // Ensure breathing line at the end of output
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we have that in? I generally like the idea and I think we could use it in more places, but I remember that e.g. @mnapoli mentioned that we should not do it as people might have terminals configured to automatically print/render empty line after commands.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, I just assumed it's good to have that (design docs are not explicit on intention, as they do not show prompt after finalized output). Anyway let's first clarify with @mnapoli

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As we discussed on Slack, currently there's an agreement to add this in (but it's possible we'll revert that)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually reverting that (following further discission on slack)

Copy link
Contributor

@pgrzesik pgrzesik left a comment

Choose a reason for hiding this comment

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

Looks great 👍

@medikoo medikoo merged commit 7c91cde into master Oct 5, 2021
@medikoo medikoo deleted the 1004-improve-logs branch October 5, 2021 12:56
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.

None yet

2 participants