-
Notifications
You must be signed in to change notification settings - Fork 111
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
Print error and continue dev on log streaming subscription failure #4001
Conversation
1b7fbd4
to
1636ad8
Compare
Thanks for your contribution! Depending on what you are working on, you may want to request a review from a Shopify team:
|
We detected some changes at either packages/*/src or packages/cli-kit/assets/cli-ruby/** and there are no updates in the .changeset. |
Makes sense to me, but we should add a test to cover this |
Coverage report
Test suite run success1691 tests passing in 789 suites. Report generated by 🧪jest coverage report action from 6dff09a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once we have test coverage
1636ad8
to
513cfe3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking the time to write up the test 👍
513cfe3
to
6dff09a
Compare
WHY are these changes introduced?
Fixes https://github.com/Shopify/shopify-functions/issues/220
In cases where we encounter an error creating an app log streaming subscription (e.g. the user doesn't have the necessary permissions), the CLI prints the error and continues. This leads to a downstream error halting the
dev
process.WHAT is this pull request doing?
This PR updates the logic such that when there is an error subscribing, the error is printed out and the
dev
process continues.How to test your changes?
SHOPIFY_CLI_ENABLE_APP_LOG_POLLING=1
and the organization beta flag offapp dev
and see that an error message is printed, butdev
continuesScreenshots
Checklist
I've made sure that any changes toThis link is dead 😢dev
ordeploy
have been reflected in the internal flowchart.