Skip to content

Conversation

AndreasArvidsson
Copy link
Member

@AndreasArvidsson AndreasArvidsson commented Apr 21, 2025

Original problem is that test run crashes on windows with false negative.
https://github.com/cursorless-dev/cursorless/actions/runs/14509376075/job/40704611423?pr=2893

It appears that it's vscode.window.showTextDocument in our openNewEditor utility that causes this. It's not always on the same test case. By default it crashes in the scope tests, but if I disable the scope test the same error occurs in our recorded tests that of course uses the same openNewEditor function. I can't recreate this locally. Looks like a memory leak or similar.

In this pull request I managed to get the notebook tests more reliable though so I think that is words merging and I will continue working on the crashing problem.
Continues here #2901

@AndreasArvidsson AndreasArvidsson requested a review from a team as a code owner April 21, 2025 16:12
useLegacyVscode || os.platform() === "win32"
? undefined
: [`--crash-reporter-directory=${crashDir}`, `--logsPath=${logsDir}`],
launchArgs: ["--force-node-api-uncaught-exceptions-policy=true"],
Copy link
Member

Choose a reason for hiding this comment

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

This seems like a good thing but curious what prompted it

Copy link
Member Author

Choose a reason for hiding this comment

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

Test-electron crashes on windows with edit code 0. So ci pass even though the tests crashes.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like this argument isn't available in electron. Electron apparently enforces note options quite strictly.

@AndreasArvidsson AndreasArvidsson marked this pull request as draft April 21, 2025 17:40
@AndreasArvidsson AndreasArvidsson changed the title Trying to fix windows crash in CI Fix windows crash in CI Apr 22, 2025
@AndreasArvidsson AndreasArvidsson changed the title Fix windows crash in CI Fix windows notebook crash Apr 22, 2025
@AndreasArvidsson AndreasArvidsson changed the title Fix windows notebook crash Make notebook tests more reliable Apr 22, 2025
@AndreasArvidsson AndreasArvidsson marked this pull request as ready for review April 22, 2025 09:16
@AndreasArvidsson AndreasArvidsson merged commit 810ad4f into main Apr 26, 2025
15 checks passed
@AndreasArvidsson AndreasArvidsson deleted the winCi branch April 26, 2025 14:22
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