-
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
feat(sdk): stream logs in wing test
#6205
Conversation
Thanks for opening this pull request! 🎉
|
Console preview environment is available at https://wing-console-pr-6205.fly.dev 🚀 Last Updated (UTC) 2024-04-12 22:23 |
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.
Stoked for this. We should check that the output looks legible for the following cases
- long/multiline
- color disabled (e.g. NO_COLOR env set)
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-04-12 22:28 |
Signed-off-by: monada-bot[bot] <[email protected]>
tools/hangar/__snapshots__/test_corpus/valid/resource.test.w_test_sim.md
Outdated
Show resolved
Hide resolved
❌ Unstable Self-Mutation ❌Self-mutation has run twice in a row. There may be a something non-deterministic in the build or test process.
|
Signed-off-by: monada-bot[bot] <[email protected]>
Signed-off-by: monada-bot[bot] <[email protected]>
Signed-off-by: monada-bot[bot] <[email protected]>
Thanks for contributing, @Chriscbr! This PR will now be added to the merge queue, or immediately merged if |
Congrats! 🚀 This was released in Wing 0.70.6. |
This PR introduces log streaming for the
wing test
command is used with the simulator. By default, anylog
statements printed by the user will be automatically streamed while the tests are running. (The first line of each log includes a string identifying which test it's associated with). More granular trace events from the individual resources can be displayed with the--debug
flag.The order of logs can vary and they each include timestamps, so the
--no-stream
flag can be passed to fall back to the old output style. This is used within the monorepo in places where we're snapshotting CLI output for catching regressions.log-streaming.mov
Closes #2096
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.