Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix testing for pipeline consumer branch#1588

Merged
rjmholt merged 17 commits into
PowerShell:async-ps-consumerPowerShell/PowerShellEditorServices:async-ps-consumerfrom
rjmholt:pt-fix-cirjmholt/PowerShellEditorServices:pt-fix-ciCopy head branch name to clipboard
Oct 26, 2021
Merged

Fix testing for pipeline consumer branch#1588
rjmholt merged 17 commits into
PowerShell:async-ps-consumerPowerShell/PowerShellEditorServices:async-ps-consumerfrom
rjmholt:pt-fix-cirjmholt/PowerShellEditorServices:pt-fix-ciCopy head branch name to clipboard

Conversation

@rjmholt

@rjmholt rjmholt commented Oct 14, 2021

Copy link
Copy Markdown
Contributor

No description provided.

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

rjmholt commented Oct 19, 2021

Copy link
Copy Markdown
Contributor Author

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

@rjmholt

rjmholt commented Oct 20, 2021

Copy link
Copy Markdown
Contributor Author

Where are our tests??

@rjmholt

rjmholt commented Oct 26, 2021

Copy link
Copy Markdown
Contributor Author

Not yet able to reproduce the test hangs locally:
image

@andyleejordan

Copy link
Copy Markdown
Member

Interesting that it's just macOS and Ubuntu now.

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oops!!

@rjmholt

rjmholt commented Oct 26, 2021

Copy link
Copy Markdown
Contributor Author

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.

@andyleejordan andyleejordan left a comment

Copy link
Copy Markdown
Member

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).

var factory = new LoggerFactory();
_psesProcess = new PsesStdioProcess(factory, IsDebugAdapterTests);
await _psesProcess.Start().ConfigureAwait(false);
//Debugger.Launch();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Intentional?


namespace Microsoft.PowerShell.EditorServices.Test.Console
{
/*

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Intentional?

Copy link
Copy Markdown
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


namespace Microsoft.PowerShell.EditorServices.Test.Debugging
{
/*

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Intentional?

Copy link
Copy Markdown
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


namespace Microsoft.PowerShell.EditorServices.Test.Console
{
/*

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Intentional?

Copy link
Copy Markdown
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
Copy Markdown
Member

Choose a reason for hiding this comment

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

Intentional?

Copy link
Copy Markdown
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


namespace Microsoft.PowerShell.EditorServices.Test.Language
{
/*

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Intentional?

Copy link
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.