Skip to content

Fixing get-help on Linux - #1695

Merged
Andy Jordan (andyleejordan) merged 4 commits into
masterfrom
frangom/helpsystem
Aug 10, 2016
Merged

Andy Jordan (andyleejordan) merged 4 commits into
masterfrom
frangom/helpsystem

Conversation

@Francisco-Gamino

@Francisco-Gamino Francisco Gamino (Francisco-Gamino) commented Aug 9, 2016 •

Copy link
Copy Markdown
Contributor

@adityapatwardhan

Aditya Patwardhan (adityapatwardhan) commented Aug 9, 2016 •

Copy link
Copy Markdown
Member

Describe 'Basic help system tests' -Tags "CI" {

Does this need to be in CI scope? #Closed


Refers to: test/powershell/engine/HelpSystem.Tests.ps1:1 in 529594e. [](commit_id = 529594eb5efb8b249101e28dae6cf204dc69fc6b, deletion_comment = False)

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.

Add a UNIX specific test for validating the case sensitivity code that was added for file paths.

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.

Aditya Patwardhan (@adityapatwardhan) Without this fix, get-help will not work on Linux (the Microsoft.PowerShell.*xml files meet this criteria already).

@adityapatwardhan

Copy link
Copy Markdown
Member

🕐

@andyleejordan

Copy link
Copy Markdown
Member

Aditya Patwardhan (@adityapatwardhan) all tests should begin at CI scope until found to be overly slow and low risk.

Especially considering we have 13 non CI test regressions already.

@adityapatwardhan

Copy link
Copy Markdown
Member

LGTM

Comment thread src/ResGen/project.json Outdated

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.

Spacing.

@Francisco-Gamino

Copy link
Copy Markdown
Contributor Author

Aditya Patwardhan (@adityapatwardhan) --For the Windows scenario, we need to install the help files for Microsoft.PowerShell.Core. Should I added the files via nuget package (this is the Linux scenario because update-help does not work)? or should I call update-help -module microsoft.powershell.core?

@Francisco-Gamino

Copy link
Copy Markdown
Contributor Author

Aditya Patwardhan (@adityapatwardhan) The main issue on Linux is that update-help does not work, so this is the reason why we created the nuget package with the help files. For windows on the other hand, I was thinking to download the help content for Microsoft.PowerShell.Core and check in with the tests. Then, when the tests are run, on Windows, we will call update-help -sourcepath . This way, we do not have to make a call outside. Thoughts?

@rkeithhill

Copy link
Copy Markdown
Collaborator

So how does .NET Core restore NuGet pkgs? I know they don't use nuget.exe because I've seen issues on why that isn't cross-plat. But somewhere, someone on .NET Core has implemented the ability to at least pull pkgs from NuGet. Any chance the team could get their hands on that code?

@andyleejordan

Copy link
Copy Markdown
Member

Keith Hill (@rkeithhill) That's the funny thing, it does use NuGet! The command is dotnet restore but it actually invokes NuGet underneath, which is indeed cross platform.

@andyleejordan Andy Jordan (andyleejordan) mentioned this pull request Aug 10, 2016
20 tasks done
@Francisco-Gamino

Copy link
Copy Markdown
Contributor Author

Aditya Patwardhan (@adityapatwardhan) I've update the tests to install the help content using -sourcepath for CI, and update-help making a call to the download center for Feature tests.

@adityapatwardhan

Copy link
Copy Markdown
Member

LGTM

@Francisco-Gamino

Copy link
Copy Markdown
Contributor Author

Andy Jordan (@andschwa) could you please integrate this PR when you have a moment? Thanks!

Comment thread src/ResGen/project.json
},

"runtimes": {
"ubuntu.16.04-x64": { },

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.

Thanks 😄

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.

you're welcome :)

@andyleejordan

Copy link
Copy Markdown
Member

Checked with Francisco Gamino (@Francisco-Gamino) about the binary file. It's a quarter of a megabyte and unlikely to change frequently, so I'm okay committing it. It's a test asset that does not need to kept up-to-date and is simply to ensure CI can pass without fail (i.e. no transient networking problems).

@andyleejordan

Copy link
Copy Markdown
Member

:shipit:

@andyleejordan
Andy Jordan (andyleejordan) deleted the frangom/helpsystem branch August 10, 2016 22:01
@TravisEz13 Travis Plunk (TravisEz13) added Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept and removed Review - Waiting on Author labels May 27, 2020
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants