-
Notifications
You must be signed in to change notification settings - Fork 196
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
fix(sdk): unable to use util.exec
in preflight
#7019
Conversation
Thanks for opening this pull request! 🎉
|
Console preview environment is available at https://wing-console-pr-7019.fly.dev 🚀 Last Updated (UTC) 2024-08-14 13:30 |
Co-authored-by: Elad Ben-Israel <[email protected]>
BenchmarksComparison to Baseline 🟥⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜
⬜ Within 1.5 standard deviations Benchmarks may vary outside of normal expectations, especially when running in GitHub Actions CI. Results
Last Updated (UTC) 2024-08-14 13:36 |
return { | ||
stdout: stdout.toString(), | ||
stderr: stderr.toString(), | ||
stderr: "", |
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.
Let's add a TODO comment or open an issue to note this limitation
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.
There is no real limitation I think- the stderr
is thrown in the catch statement if exists- and passed to the user :)
I think that it yields the same result of the promisify
function
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.
@tsuf239 I thought even if a command succeeds it can still emit to both stdout and stderr?
Thanks for contributing, @tsuf239! This PR will now be added to the merge queue, or immediately merged if |
Congrats! 🚀 This was released in Wing 0.83.1. |
fixes: #6915
Checklist
pr/e2e-full
label if this feature requires end-to-end testingBy submitting this pull request, I confirm that my contribution is made under the terms of the Wing Cloud Contribution License.