-
Notifications
You must be signed in to change notification settings - Fork 662
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-test: Update for Windows e2e tests #1844
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1844 +/- ##
==========================================
+ Coverage 81.85% 88.73% +6.88%
==========================================
Files 35 18 -17
Lines 7781 6232 -1549
Branches 318 298 -20
==========================================
- Hits 6369 5530 -839
+ Misses 1400 690 -710
Partials 12 12
Flags with carried forward coverage won't be shown. Click here to find out more. |
877051e
to
9a12202
Compare
125462c
to
aa29a2f
Compare
aa29a2f
to
34f29a1
Compare
@@ -203,6 +203,9 @@ export const shell = { | |||
}, | |||
assembleShellEnv: function assembleShellEnv(): Record<string, string | undefined> { | |||
const spawnedEnv = { ...process.env }; | |||
if (process.platform === "win32"){ | |||
spawnedEnv.PATH = process.env.PATH; |
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.
IIRC Without this the process couldn't find cmd.exe on the path for some reason
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.
lol windows
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.
Left a couple of suggestions re: comments but feel free to merge otherwise! Thank you!
@@ -203,6 +203,9 @@ export const shell = { | |||
}, | |||
assembleShellEnv: function assembleShellEnv(): Record<string, string | undefined> { | |||
const spawnedEnv = { ...process.env }; | |||
if (process.platform === "win32"){ | |||
spawnedEnv.PATH = process.env.PATH; |
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.
lol windows
34f29a1
to
507fac8
Compare
Summary
Windows e2e tests can be seen running successfully in CCI consuming these changes: https://app.circleci.com/pipelines/github/slackapi/slack-cli/6390/workflows/31d009e1-6a81-46d2-bec6-c7ace7268fe0/jobs/15343 (failing 'copy artifacts' steps unrelated)
Sanity checked that the Unix e2e tests still pass here: https://app.circleci.com/pipelines/github/slackapi/platform-devxp-test/395/workflows/9cedbc0e-db05-4bf3-bad9-a188d28583c8/jobs/625?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-checks-link&utm_content=summary
Requirements