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

Update 'Publish-TestResults' to make AzDO fail the task when any tests failed#9457

Merged
adityapatwardhan merged 2 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
daxian-dbw:FixTestdaxian-dbw/PowerShell:FixTestCopy head branch name to clipboard
Apr 25, 2019
Merged

Update 'Publish-TestResults' to make AzDO fail the task when any tests failed#9457
adityapatwardhan merged 2 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
daxian-dbw:FixTestdaxian-dbw/PowerShell:FixTestCopy head branch name to clipboard

Conversation

@daxian-dbw

@daxian-dbw daxian-dbw commented Apr 24, 2019

Copy link
Copy Markdown
Member

PR Summary

Update Publish-TestResults to make AzDO fail the task when any tests failed

PR Checklist

@TravisEz13 TravisEz13 closed this Apr 24, 2019
@TravisEz13 TravisEz13 reopened this Apr 24, 2019
@TravisEz13 TravisEz13 added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Apr 24, 2019
@TravisEz13 TravisEz13 added this to the 6.2.1-consider milestone Apr 24, 2019
@daxian-dbw daxian-dbw changed the title Fix the failed test and update 'Publish-TestResults' to make AzDO fail the task when any tests failed Update 'Publish-TestResults' to make AzDO fail the task when any tests failed Apr 24, 2019
@daxian-dbw

daxian-dbw commented Apr 24, 2019

Copy link
Copy Markdown
Member Author

The test continue to fail after correcting the syntax error and typo, see https://powershell.visualstudio.com/PowerShell/_build/results?buildId=21547

  Describing Set-Location
+++++?!!Set-Location : Cannot find path '/tmp/74ca5482-1fdf-4e94-9335-729ac707fdd7/teST' because it does not exist.
At /home/vsts/work/1/s/test/powershell/Modules/Microsoft.PowerShell.Management/Set-Location.Tests.ps1:87 char:11
+         { Set-Location (Join-Path $TestDrive $dir) } | Should -Throw  ...
+           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (/tmp/74ca5482-1fdf-\u20265-729ac707fdd7/teST:String) [Set-Location], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
 

    [-] Should use actual casing of folder on case-sensitive filesystem: <dir> 59ms
      Expected an exception, with FullyQualifiedErrorId 'PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand' to be thrown, but no exception was thrown.
      87:         { Set-Location (Join-Path $TestDrive $dir) } | Should -Throw -ErrorId "PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand"
      at <ScriptBlock>, /home/vsts/work/1/s/test/powershell/Modules/Microsoft.PowerShell.Management/Set-Location.Tests.ps1: line 87

This now looks like a code issue introduced in #9250. I cannot revert #9250 cleanly because that PR was merged by "create a merge commit".
@SteveL-MSFT Could you please take a quick look to see if you can fix the code issue?

@SteveL-MSFT

Copy link
Copy Markdown
Member

@daxian-dbw not sure how that test got past CI with the other PR, but pushed a fix

@daxian-dbw

Copy link
Copy Markdown
Member Author

@SteveL-MSFT Yeah, that was weird. The test failed but the build was successful. That's why @TravisEz13 suggested the changes in this PR to make sure build fails when any tests fail.

@daxian-dbw daxian-dbw closed this Apr 25, 2019
@daxian-dbw daxian-dbw reopened this Apr 25, 2019
@daxian-dbw daxian-dbw closed this Apr 25, 2019
@daxian-dbw daxian-dbw reopened this Apr 25, 2019
@adityapatwardhan adityapatwardhan merged commit 687697b into PowerShell:master Apr 25, 2019
@daxian-dbw daxian-dbw deleted the FixTest branch April 25, 2019 21:01
TravisEz13 added a commit that referenced this pull request Apr 27, 2019
* return correct casing of filesystem path during normalization

* handle UNC case

* handle case to add trailing separator back

* add support for NTFS streams syntax

* add case-sensitive test

* only apply correct casing to directories

* handle 8.3 path syntax

* fix short path processing

* Remove elements which do not work on earlier version on Windows PowerShell (#9411)

* Use `Environment.NewLine` for new lines in `ConsoleHost` code (#9392)

* Run CodeFormatter for Eventing (#9394)

* Run CodeFormatter for MarkdownRender (#9398)

* Run CodeFormatter for Security module (#9399)

* Run CodeFormatter for WSMan.Runtime (#9401)

* Run CodeFormatter for WSMan.Management (#9400)

* Allow CI to run on branches with this name pattern: feature* (#9415)

* Run CodeFormatter with BraceNewLine,UsingLocation,FormatDocument,NewLineAbove rules (#9393)

* Build(deps): Bump NJsonSchema from 9.13.30 to 9.13.34 (#9421)

* Build(deps): Bump NJsonSchema from 9.13.34 to 9.13.35 (#9429)

Bumps [NJsonSchema](https://github.com/rsuter/NJsonSchema) from 9.13.34 to 9.13.35.
- [Release notes](https://github.com/rsuter/NJsonSchema/releases)
- [Commits](https://github.com/rsuter/NJsonSchema/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Build(deps): Bump Newtonsoft.Json (#9431)

Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.1 to 12.0.2.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](JamesNK/Newtonsoft.Json@12.0.1...12.0.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Build(deps): Bump Newtonsoft.Json from 12.0.1 to 12.0.2 (#9434)

Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.1 to 12.0.2.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](JamesNK/Newtonsoft.Json@12.0.1...12.0.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Add Preview assets for msix (#9375)

* Adding tests for `Remove-Module` (#9276)

* Build(deps): Bump gulp from 4.0.0 to 4.0.1 in /test/common/markdown (#9441)

* Move warning message to EndProcessing so it only shows up once (#9385)

* Run Codeformatter for SMA (#9402)

* Fix the failed test and update 'Publish-TestResults' to make AzDO fail the task when any tests failed (#9457)

* Enable building on Kali Linux (#9471)

* Build test packages for windows, linux-x64, linux-arm, linux-arm64 and macOS (#9476)

* Build(deps): Bump NJsonSchema from 9.13.35 to 9.13.36 (#9478)

* Update Release_Process.md

Add item for global tool


Co-authored-by: Steve Lee <slee@microsoft.com>
Co-authored-by: Steve Lee (POWERSHELL) <slee@ntdev.microsoft.com>
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
Co-authored-by: Ilya <darpa@yandex.ru>
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
Co-authored-by: null <dependabot[bot]@users.noreply.github.com>
Co-authored-by: pougetat <thomas.pouget-abadie@ensimag.grenoble-inp.fr>
Co-authored-by: Andrew <anmenaga@microsoft.com>
@TravisEz13 TravisEz13 modified the milestones: 6.2.1-consider, 6.2.1 May 13, 2019
TravisEz13 pushed a commit that referenced this pull request May 13, 2019
…l the task when any tests failed (#9457)

# Conflicts:
#	test/powershell/Modules/Microsoft.PowerShell.Management/Set-Location.Tests.ps1
TravisEz13 added a commit to TravisEz13/PowerShell that referenced this pull request May 14, 2019
…' to make AzDO fail the task when any tests failed (PowerShell#9457)"

This reverts commit 3fc464d.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

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