test: fix debug test crashes caused by sea tests #60807
Open
+17
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When we compile for debug on Windows we have the tests crashing with the error log shown below.
The root cause of the issue is that when the SEA tests are probing for parallel execution they call
context.GetVm('none', 'none').This call results with trying to use
Release\node.exethat is not created for debug-only builds.In this PR we record the first
--modepassed totools\test.pyand then we use it as a fallback when thecontext.GetVm('none', 'none')raises an exception.Since I do not know the full background why we use none/none and why
GetVmunconditionally returns the Release path in that case, this is the best solution that I could come with. Feel free to propose a better version.This PR and and PR #60806 finally unblock the test runs on Windows while working on the code.
The error log being addressed by this PR: