-
Notifications
You must be signed in to change notification settings - Fork 4.3k
chore(cli): tests involving promptly don't work on GitHub Actions #33381
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
Conversation
The `CliIoHost` tests using `promptly` don't run properly on GitHub Actions. The event emitting on `process.stdin` we used to do doesn't work on GitHub Actions. I don't know the reason, it might be a new Node version or something. Switching to a fake input stream (`streams.PassThrough`) seems to solve it on both platforms.
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.
(This review is outdated)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #33381 +/- ##
=======================================
Coverage 80.92% 80.92%
=======================================
Files 236 236
Lines 14256 14256
Branches 2491 2491
=======================================
Hits 11537 11537
Misses 2434 2434
Partials 285 285
Flags with carried forward coverage won't be shown. Click here to find out more.
|
mrgrain
left a comment
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.
I don't like mixing production code and testing infrastructure code.
Can we either:
- Monkey-patch
promptlyto use a testing stream (preferred) - make the the input stream a full feature of the
CliIoHost
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
|
Updated to restrict changes purely to testing code |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Comments on closed issues and PRs are hard for our team to see. |
The
CliIoHosttests usingpromptlydon't run properly on GitHub Actions. The event emitting onprocess.stdinwe used to do doesn't work on GitHub Actions. I don't know the reason, it might be a new Node version or something.Switching to a fake input stream (
streams.PassThrough) seems to solve it on both platforms.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license