Skip to content

chore(ci): test on windows [3.6] #2634

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

Merged
merged 12 commits into from
Dec 3, 2020
Merged

Conversation

emadum
Copy link
Contributor

@emadum emadum commented Nov 24, 2020

Description

Run the test suite on Windows in Evergreen for the 3.6 branch.

patch build

NODE-1458

What changed?

  • .evergreen/install-dependencies.sh was updated to use nvm-windows instead of nvm when running in Windows environments.
  • only the unit and functional tests are run on Windows, manual tests may take a fair amount of work to get working and should be enabled on Windows as needed in future PRs.
  • skips domain socket related tests on Windows via the os: '!win32' metadata directive.
  • adds colors to test output in Evergreen logs 🌈
  • silences some helper tasks in Evergreen to reduce log clutter 🏎️
  • skips CI for changes to .md files 🏎️
  • adds 60 second timeout to test run. 🏎️
    currently, when a test run leaks resources it sits idle until reaching our 15 minute global evergreen task timeout and being killed. This PR adds a 60 second per-task idle timeout to the driver test run on evergreen, so if a test run finishes after 5 minutes but leaks resources, the task will finish due to the idle timeout in 6 minutes rather than 15 minutes.

Are there any files to ignore?

@emadum emadum marked this pull request as ready for review November 28, 2020 22:04
@emadum emadum requested review from mbroadst and nbbeeken November 30, 2020 13:54
Copy link
Contributor

@nbbeeken nbbeeken left a comment

Choose a reason for hiding this comment

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

Most excellent, good to have Windows on the CI matrix
Also just general great CI improvements the color makes the logs very friendly
Some questions and nits nothing blocking merging:

@@ -2346,7 +2351,7 @@ describe('Cursor', function() {
test.equal(null, err);

if (id === 99) {
setTimeout(() => client.close());
setTimeout(() => client.close(validator));
Copy link
Member

Choose a reason for hiding this comment

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

This looks like a bug to me. validator is incrementing the close count and is meant to do so in response to the stream closing, not the client. This is short circuiting that, and likely ending the test before confirming that the stream has indeed closed (or errored)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I made this change because the test was timing out; IIRC I tried passing done in instead of validator, but then was getting "done called twice" errors. I can take another look at this one.

@emadum emadum requested a review from mbroadst December 2, 2020 23:45
Copy link
Member

@mbroadst mbroadst left a comment

Choose a reason for hiding this comment

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

LGTM! Left one comment about documenting future work, but looks great to merge in

metadata: {
requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] }
},
metadata: { requires: { os: '!win32' } }, // leaks on windows
Copy link
Member

Choose a reason for hiding this comment

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

Can you make a ticket to track all of these tests which "leak on windows", and leave a reference to them in the code where the tests are skipped? This means that streams, or cursors (or both) are kind of broken on windows. Someone should look into that relatively soon

@emadum emadum merged commit 3f2f987 into 3.6 Dec 3, 2020
@emadum emadum deleted the NODE-1458/3.6/support-windows-evergreen branch December 3, 2020 18:59
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.

3 participants