GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — WIP: Deprecate workflow-related keywords (workflow, sequence, parallel, and inlinescript) by KirkMunro · Pull Request #10318 · PowerShell/PowerShell Conversation
Contributor
PR SummaryCleanup of workflow code that has been deprecated. In particular:
The keywords in question have been preserved, but will now generate parser errors because they are deprecated. PR ContextSee issue #9570. PR Checklist
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Kirk Munro (KirkMunro)
requested review from
Paul Higinbotham (PaulHigin) and
Dongbo Wang (daxian-dbw)
as code owners
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Kirk Munro (@KirkMunro), your last commit had 2 failures in Expected a value, but got $null or empty. at <ScriptBlock>, /Users/vsts/agent/2.155.1/work/1/s/test/powershell/Modules/PowerShellGet/PowerShellGet.Tests.ps1: line 234 234: $installedScriptInfo | Should -Not -BeNullOrEmpty PowerShellGet - Script tests.Should install a script correctly to the required location with default CurrentUser scope Expected a value, but got $null or empty. at <ScriptBlock>, /Users/vsts/agent/2.155.1/work/1/s/test/powershell/Modules/PowerShellGet/PowerShellGet.Tests.ps1: line 207 207: $installedScriptInfo | Should -Not -BeNullOrEmpty
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Kirk Munro (@KirkMunro), your last commit had 2 failures in Expected a value, but got $null or empty. at <ScriptBlock>, D:\a\1\s\test\powershell\Modules\PowerShellGet\PowerShellGet.Tests.ps1: line 234 234: $installedScriptInfo | Should -Not -BeNullOrEmpty PowerShellGet - Script tests.Should install a script correctly to the required location with default CurrentUser scope Expected a value, but got $null or empty. at <ScriptBlock>, D:\a\1\s\test\powershell\Modules\PowerShellGet\PowerShellGet.Tests.ps1: line 207 207: $installedScriptInfo | Should -Not -BeNullOrEmpty
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Kirk Munro (@KirkMunro), your last commit had 2 failures in Expected a value, but got $null or empty. at <ScriptBlock>, /home/vsts/work/1/s/test/powershell/Modules/PowerShellGet/PowerShellGet.Tests.ps1: line 234 234: $installedScriptInfo | Should -Not -BeNullOrEmpty PowerShellGet - Script tests.Should install a script correctly to the required location with default CurrentUser scope Expected a value, but got $null or empty. at <ScriptBlock>, /home/vsts/work/1/s/test/powershell/Modules/PowerShellGet/PowerShellGet.Tests.ps1: line 207 207: $installedScriptInfo | Should -Not -BeNullOrEmpty
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was an error while loading. Please reload this page.
|
Steve Lee (@SteveL-MSFT) The two Pester errors that occur on each platform happen because Since I can use Longer term, we could also update PowerShellGet to recognize parser errors about deprecated keywords. The parser error that is being generated by the parser in this PR is very specific, and clearly identifies when a keyword is deprecated. The keyword token also has a flag indicating that it is deprecated. In the case where a deprecated keyword is found, PowerShellGet could simply ignore that error since it shouldn't care. You can see both the descriptive error id and the keyword Please let me know how you would like to proceed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
/cc Steve Lee (@SteveL-MSFT) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
If we do want these keywords deprecated, the simple solution for PowerShellGet is to check if a script/module has workflow in it before installing it, and prevent that installation from happening if that is the case in PowerShell 7+. That's logical, necessary, and the right thing to do. Users can still save the script, which does not do any parsing checks, and that is the most they would want to do in a version of PowerShell that doesn't support workflow anyway. They shouldn't be able to install a script that is incompatible even with -Force (why would I be able to install something I can't use -- installers prevent such things, and rightly so). Since that change should probably happen regardless, and since that change fixes these issues, we could move forward with little effort with that change plus splitting the tests in question into two, so that they test for success and failure when it comes to workflow. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Today the cleanup is not critical and we could do not break PowerShellGet in the PR. Although we need an understanding of how to proceed in future |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
For now, perhaps we should have an issue opened in PowerShellGet repo to produce an error if a script is incompatible. For this PR, we can wait on this since it's desirable, but not critical. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Issue PowerShell/PowerShellGet#528 has been logged so that the issue can be fixed in PowerShellGet. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -207,7 +207,7 @@ List<CompletionResult> ExecuteGetCommandCommand(bool useModulePrefix) | |||
| } | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Kirk Munro (@KirkMunro), your last commit had 2 failures in PowerShell-CI-macos
PowerShellGet - Script tests (Admin).Should install a script correctly to the required location with AllUsers scope
Expected a value, but got $null or empty. at <ScriptBlock>, /Users/vsts/agent/2.155.1/work/1/s/test/powershell/Modules/PowerShellGet/PowerShellGet.Tests.ps1: line 234 234: $installedScriptInfo | Should -Not -BeNullOrEmpty
PowerShellGet - Script tests.Should install a script correctly to the required location with default CurrentUser scope
Expected a value, but got $null or empty. at <ScriptBlock>, /Users/vsts/agent/2.155.1/work/1/s/test/powershell/Modules/PowerShellGet/PowerShellGet.Tests.ps1: line 207 207: $installedScriptInfo | Should -Not -BeNullOrEmpty
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -207,7 +207,7 @@ List<CompletionResult> ExecuteGetCommandCommand(bool useModulePrefix) | |||
| } | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Kirk Munro (@KirkMunro), your last commit had 2 failures in PowerShell-CI-linux
PowerShellGet - Script tests (Admin).Should install a script correctly to the required location with AllUsers scope
Expected a value, but got $null or empty. at <ScriptBlock>, /home/vsts/work/1/s/test/powershell/Modules/PowerShellGet/PowerShellGet.Tests.ps1: line 234 234: $installedScriptInfo | Should -Not -BeNullOrEmpty
PowerShellGet - Script tests.Should install a script correctly to the required location with default CurrentUser scope
Expected a value, but got $null or empty. at <ScriptBlock>, /home/vsts/work/1/s/test/powershell/Modules/PowerShellGet/PowerShellGet.Tests.ps1: line 207 207: $installedScriptInfo | Should -Not -BeNullOrEmpty
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -207,7 +207,7 @@ List<CompletionResult> ExecuteGetCommandCommand(bool useModulePrefix) | |||
| } | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Kirk Munro (@KirkMunro), your last commit had 2 failures in PowerShell-CI-windows
PowerShellGet - Script tests (Admin).Should install a script correctly to the required location with AllUsers scope
Expected a value, but got $null or empty. at <ScriptBlock>, D:\a\1\s\test\powershell\Modules\PowerShellGet\PowerShellGet.Tests.ps1: line 234 234: $installedScriptInfo | Should -Not -BeNullOrEmpty
PowerShellGet - Script tests.Should install a script correctly to the required location with default CurrentUser scope
Expected a value, but got $null or empty. at <ScriptBlock>, D:\a\1\s\test\powershell\Modules\PowerShellGet\PowerShellGet.Tests.ps1: line 207 207: $installedScriptInfo | Should -Not -BeNullOrEmpty
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I set WIP until we PowerShellGet issue will be resolved. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -207,7 +207,7 @@ List<CompletionResult> ExecuteGetCommandCommand(bool useModulePrefix) | |||
| } | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Kirk Munro (@KirkMunro), your last commit had 2 failures in PowerShell-CI-linux
PowerShellGet - Script tests (Admin).Should install a script correctly to the required location with AllUsers scope
Expected a value, but got $null or empty. at <ScriptBlock>, /home/vsts/work/1/s/test/powershell/Modules/PowerShellGet/PowerShellGet.Tests.ps1: line 234 234: $installedScriptInfo | Should -Not -BeNullOrEmpty
PowerShellGet - Script tests.Should install a script correctly to the required location with default CurrentUser scope
Expected a value, but got $null or empty. at <ScriptBlock>, /home/vsts/work/1/s/test/powershell/Modules/PowerShellGet/PowerShellGet.Tests.ps1: line 207 207: $installedScriptInfo | Should -Not -BeNullOrEmpty
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -207,7 +207,7 @@ List<CompletionResult> ExecuteGetCommandCommand(bool useModulePrefix) | |||
| } | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Kirk Munro (@KirkMunro), your last commit had 2 failures in PowerShell-CI-windows
PowerShellGet - Script tests (Admin).Should install a script correctly to the required location with AllUsers scope
Expected a value, but got $null or empty. at <ScriptBlock>, D:\a\1\s\test\powershell\Modules\PowerShellGet\PowerShellGet.Tests.ps1: line 234 234: $installedScriptInfo | Should -Not -BeNullOrEmpty
PowerShellGet - Script tests.Should install a script correctly to the required location with default CurrentUser scope
Expected a value, but got $null or empty. at <ScriptBlock>, D:\a\1\s\test\powershell\Modules\PowerShellGet\PowerShellGet.Tests.ps1: line 207 207: $installedScriptInfo | Should -Not -BeNullOrEmpty
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -207,7 +207,7 @@ List<CompletionResult> ExecuteGetCommandCommand(bool useModulePrefix) | |||
| } | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Kirk Munro (@KirkMunro), your last commit had 2 failures in PowerShell-CI-macos
PowerShellGet - Script tests (Admin).Should install a script correctly to the required location with AllUsers scope
Expected a value, but got $null or empty. at <ScriptBlock>, /Users/runner/runners/2.158.0/work/1/s/test/powershell/Modules/PowerShellGet/PowerShellGet.Tests.ps1: line 234 234: $installedScriptInfo | Should -Not -BeNullOrEmpty
PowerShellGet - Script tests.Should install a script correctly to the required location with default CurrentUser scope
Expected a value, but got $null or empty. at <ScriptBlock>, /Users/runner/runners/2.158.0/work/1/s/test/powershell/Modules/PowerShellGet/PowerShellGet.Tests.ps1: line 207 207: $installedScriptInfo | Should -Not -BeNullOrEmpty
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
These changes look good to me, as long as all tests continue to pass. Since these include a lot of parser/token changes I would like Dongbo Wang (@daxian-dbw) to also review them.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -207,7 +207,7 @@ List<CompletionResult> ExecuteGetCommandCommand(bool useModulePrefix) | |||
| } | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Kirk Munro (@KirkMunro), your last commit had 2 failures in PowerShell-CI-linux
PowerShellGet - Script tests (Admin).Should install a script correctly to the required location with AllUsers scope
Expected a value, but got $null or empty. at <ScriptBlock>, /home/vsts/work/1/s/test/powershell/Modules/PowerShellGet/PowerShellGet.Tests.ps1: line 234 234: $installedScriptInfo | Should -Not -BeNullOrEmpty
PowerShellGet - Script tests.Should install a script correctly to the required location with default CurrentUser scope
Expected a value, but got $null or empty. at <ScriptBlock>, /home/vsts/work/1/s/test/powershell/Modules/PowerShellGet/PowerShellGet.Tests.ps1: line 207 207: $installedScriptInfo | Should -Not -BeNullOrEmpty
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -207,7 +207,7 @@ List<CompletionResult> ExecuteGetCommandCommand(bool useModulePrefix) | |||
| } | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Kirk Munro (@KirkMunro), your last commit had 2 failures in PowerShell-CI-macos
PowerShellGet - Script tests (Admin).Should install a script correctly to the required location with AllUsers scope
Expected a value, but got $null or empty. at <ScriptBlock>, /Users/runner/runners/2.165.2/work/1/s/test/powershell/Modules/PowerShellGet/PowerShellGet.Tests.ps1: line 234 234: $installedScriptInfo | Should -Not -BeNullOrEmpty
PowerShellGet - Script tests.Should install a script correctly to the required location with default CurrentUser scope
Expected a value, but got $null or empty. at <ScriptBlock>, /Users/runner/runners/2.165.2/work/1/s/test/powershell/Modules/PowerShellGet/PowerShellGet.Tests.ps1: line 207 207: $installedScriptInfo | Should -Not -BeNullOrEmpty
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -207,7 +207,7 @@ List<CompletionResult> ExecuteGetCommandCommand(bool useModulePrefix) | |||
| } | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Kirk Munro (@KirkMunro), your last commit had 2 failures in PowerShell-CI-windows
PowerShellGet - Script tests (Admin).Should install a script correctly to the required location with AllUsers scope
Expected a value, but got $null or empty. at <ScriptBlock>, D:\a\1\s\test\powershell\Modules\PowerShellGet\PowerShellGet.Tests.ps1: line 234 234: $installedScriptInfo | Should -Not -BeNullOrEmpty
PowerShellGet - Script tests.Should install a script correctly to the required location with default CurrentUser scope
Expected a value, but got $null or empty. at <ScriptBlock>, D:\a\1\s\test\powershell\Modules\PowerShellGet\PowerShellGet.Tests.ps1: line 207 207: $installedScriptInfo | Should -Not -BeNullOrEmpty
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Kirk Munro (@KirkMunro) Please fix CI issues and remove |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 15 days. It will be closed if no further activity occurs within 10 days of this comment. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Aditya Patwardhan (@adityapatwardhan) Here are the problems with this PR:
That is why this was marked WIP: because it is dependent on an issue that I just discovered is missing. I'd like to know what happened to that issue, because issues should not be deleted. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
alerickson - Can you have a look why the issue in PowerShellGet disappeared? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Aditya Patwardhan (@adityapatwardhan) Kirk Munro (@KirkMunro) the name of the PSGet repository for versions below 3 is now called PowerShellGetv2, the issue is still there though: PowerShell/PowerShellGetv2/issues/528. We won't address non-security related issues in that repo, but I'll transfer the issue over to the new repo so we can check before installing scripts in v3. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Kirk Munro (@KirkMunro) I guess we will have to wait till the version of PSGet that fixes the issue is included in PowerShell release. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Closing. See #10238 (comment). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.