Skip to content

Fix testing for pipeline consumer branch #1588

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 17 commits into from
Oct 26, 2021

Conversation

rjmholt
Copy link
Contributor

@rjmholt rjmholt commented Oct 14, 2021

No description provided.

@rjmholt rjmholt marked this pull request as ready for review October 19, 2021 22:57
@rjmholt
Copy link
Contributor Author

rjmholt commented Oct 19, 2021

(Had to mark this as ready for review to run CI)

@rjmholt
Copy link
Contributor Author

rjmholt commented Oct 20, 2021

Where are our tests??

@rjmholt
Copy link
Contributor Author

rjmholt commented Oct 26, 2021

Not yet able to reproduce the test hangs locally:
image

@andyleejordan
Copy link
Member

Interesting that it's just macOS and Ubuntu now.

_pipelineThread.SetApartmentState(ApartmentState.STA);
if (VersionUtils.IsWindows)
{
_pipelineThread.SetApartmentState(ApartmentState.STA);
Copy link
Member

Choose a reason for hiding this comment

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

Oops!!

@rjmholt
Copy link
Contributor Author

rjmholt commented Oct 26, 2021

We're passing now!

I have disabled the LSP unit tests, but I think those should be re-enabled in a different PR since they'll represent a fair amount more work.

Copy link
Member

@andyleejordan andyleejordan left a comment

Choose a reason for hiding this comment

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

Just double-checking that all of these disabled tests are intentionally disabled, since many of them are not LSP unit tests (unless I misread).

@@ -44,6 +45,7 @@ public async Task InitializeAsync()
var factory = new LoggerFactory();
_psesProcess = new PsesStdioProcess(factory, IsDebugAdapterTests);
await _psesProcess.Start().ConfigureAwait(false);
//Debugger.Launch();
Copy link
Member

Choose a reason for hiding this comment

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

Intentional?

using Xunit;

namespace Microsoft.PowerShell.EditorServices.Test.Console
{
/*
Copy link
Member

Choose a reason for hiding this comment

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

Intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This I think no longer exists and should be brought back maybe. See #1583

using Xunit;

namespace Microsoft.PowerShell.EditorServices.Test.Debugging
{
/*
Copy link
Member

Choose a reason for hiding this comment

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

Intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Needs a host factory

using Microsoft.PowerShell.EditorServices.Test.Shared;
using Microsoft.PowerShell.EditorServices.Utility;
using Xunit;

namespace Microsoft.PowerShell.EditorServices.Test.Console
{
/*
Copy link
Member

Choose a reason for hiding this comment

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

Intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah these need to be converted to something like host tests

Assert.Equal(escapedPath, extensionEscapedPath);
}

[Trait("Category", "PathEscaping")]
Copy link
Member

Choose a reason for hiding this comment

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

Intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah these no longer apply because the method to test is gone

@@ -26,12 +27,13 @@

namespace Microsoft.PowerShell.EditorServices.Test.Language
{
/*
Copy link
Member

Choose a reason for hiding this comment

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

Intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Needs a host factory

@rjmholt rjmholt merged commit fbaff7c into PowerShell:async-ps-consumer Oct 26, 2021
@rjmholt rjmholt deleted the pt-fix-ci branch October 26, 2021 23:01
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