Skip to content
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

Merged
merged 1 commit into from
Jul 18, 2024
Merged

cli-test: Update for Windows e2e tests #1844

merged 1 commit into from
Jul 18, 2024

Conversation

vegeris
Copy link
Contributor

@vegeris vegeris commented Jul 10, 2024

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

Copy link

codecov bot commented Jul 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.73%. Comparing base (178223c) to head (9a12202).

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              
Flag Coverage Δ
cli-hooks 94.94% <ø> (ø)
cli-test ?
oauth 76.53% <ø> (ø)
socket-mode 59.59% <ø> (ø)
web-api 96.57% <ø> (ø)
webhook 95.27% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@vegeris vegeris force-pushed the evegeris_windows_cci branch 4 times, most recently from 877051e to 9a12202 Compare July 10, 2024 19:04
@vegeris vegeris force-pushed the evegeris_windows_cci branch 2 times, most recently from 125462c to aa29a2f Compare July 18, 2024 17:47
@vegeris vegeris changed the title WIP | Update for Windows Update for Windows e2e tests Jul 18, 2024
@vegeris vegeris force-pushed the evegeris_windows_cci branch from aa29a2f to 34f29a1 Compare July 18, 2024 18:17
@vegeris vegeris marked this pull request as ready for review July 18, 2024 18:58
@@ -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;
Copy link
Contributor Author

@vegeris vegeris Jul 18, 2024

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol windows

@vegeris vegeris requested a review from filmaj July 18, 2024 19:02
Copy link
Contributor

@filmaj filmaj left a 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!

packages/cli-test/src/cli/commands/platform.ts Outdated Show resolved Hide resolved
packages/cli-test/src/cli/commands/platform.ts Outdated Show resolved Hide resolved
@@ -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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol windows

@vegeris vegeris force-pushed the evegeris_windows_cci branch from 34f29a1 to 507fac8 Compare July 18, 2024 19:23
@vegeris vegeris merged commit ea00fc6 into main Jul 18, 2024
19 of 28 checks passed
@vegeris vegeris changed the title Update for Windows e2e tests cli-test: Update for Windows e2e tests Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants