-
Notifications
You must be signed in to change notification settings - Fork 663
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
ci: add windows testing to CI by lifting OS into its own test matrix … #2081
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2081 +/- ##
==========================================
- Coverage 91.83% 91.83% -0.01%
==========================================
Files 38 38
Lines 10264 10263 -1
Branches 646 646
==========================================
- Hits 9426 9425 -1
Misses 826 826
Partials 12 12
Flags with carried forward coverage won't be shown. Click here to find out more. |
…enting user agent
…ndows, since Windows does not support this option.
waitForOutputSpy.rejects(); | ||
await assert.rejects(platform.runStop({ proc: fakeProcess, waitForShutdown: true })); | ||
it('non-Windows only: should reject if waitForShutdown=true and waitForOutput rejects', async () => { | ||
if (process.platform !== 'win32') { |
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.
The reason we don't run this test on Windows is that this code-under-test also doesn't run on Windows
assert.equal(error.code, ErrorCode.RequestError); | ||
assert.equal(error.original.config.timeout, timeoutOverride); | ||
assert.equal(error.original.isAxiosError, true); | ||
assert.instanceOf(error, Error); | ||
assert.isTrue((logger.warn as sinon.SinonStub).calledOnce, 'expected Logger to be called once'); |
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.
Moved this assert down, as it flaked a few times on Windows in CI.. next time it does, I want to make sure these other assertions about the state of the error execute.
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.
Thanks for adding Windows testing! Let's give this matrix a run! 🧪 ✨
// User Agent value is different across platforms. | ||
// on mac this is: @slack:web-api/7.7.0 node/18.15.0 darwin/23.6.0 | ||
// on windows this is: @slack:web-api/7.7.0 cmd.exe /22.10.0 win32/10.0.20348 |
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.
Thanks for the detailed documentation. These kinda of notes help future maintainers a lot!
Co-authored-by: Michael Brooks <[email protected]>
web-api
needs changing, asprocess.title
can return a wide variety of results, including it can be completely overridden!cli-test
functionality is skipped on Windows (graceful shutting down of processes / lack of interrupt signal support on Windows), so the relevant test executing this branch of code also needs to be skipped on windows.