Commit Graph
7009 Commits
Author SHA1 Message Date
dependabot[bot] 0ea1c4fd93 Build(deps): Bump System.Net.Http.WinHttpHandler from 4.5.2 to 4.5.3 (#9367)
Bumps [System.Net.Http.WinHttpHandler](https://github.com/dotnet/corefx) from 4.5.2 to 4.5.3.
- [Release notes](https://github.com/dotnet/corefx/releases)
- [Commits](https://github.com/dotnet/corefx/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-17 08:05:15 +05:00
Steve LeeandTravis Plunk 9a2ed974fd Fix skipping of tests in RemoteSession.Basic.Tests.ps1 (#9304)
Moved check if able to write to $PSHome as way to skip test to `BeforeAll` which already contained a check if running on Windows.

## PR Context

As part https://github.com/PowerShell/PowerShell/pull/9279, tests were updated to be skipped if the test requires writing to `$PSHome` but is not able to.  However, these tests already had a skip mechanism in place so the additional check caused the test to run when it should have skipped.

Co-authored-by: Travis Plunk <github@ez13.net>
2019-04-15 14:29:52 -07:00
Steve LeeandTravis Plunk efe9f99f1a Update tests to account for when $PSHOME is readonly (#9279)
Co-Authored-By: SteveL-MSFT <slee@microsoft.com>


Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2019-04-15 14:29:42 -07:00
Travis Plunk 5f53274ba7 Mark tests in macOS CI which use applescript as pending/inconclusive (#9352)
Mark tests in macOS CI which use applescript as pending/inconclusive

# Conflicts:
#	build.psm1
2019-04-15 13:21:49 -07:00
Aditya Patwardhan 276c84d171 Add AcessToken variable to jobs that perform signing (#9351) 2019-04-15 13:20:06 -07:00
Aditya Patwardhan 921dec58ac Create test package for macOS on release builds (#9344) 2019-04-15 13:19:44 -07:00
Travis Plunk 20419b86eb Update repo for Ubuntu 14.04 EOL (#9324)
Update repo for Ubuntu 14.04 EOL
  - also remove a missed instance of Fedora 27

# Conflicts:
#	README.md
2019-04-15 13:19:01 -07:00
Travis Plunk 340f66ca6e Add component detection to all jobs (#8964)
Add component detection to all jobs.
2019-04-15 13:17:35 -07:00
Travis Plunk 7b40c5e17d Make sure non-Windows CI fails when a test fails (#9303)
Make sure non-Windows CI fails when a test fails

## PR Context

We discovered that some tests were failing after a PR and the CI was not failing

# Conflicts:
#	tools/ci.psm1
2019-04-15 13:17:06 -07:00
Aditya Patwardhan ac76c65ff1 Move artifacts to artifact staging directory before uploading (#9273) 2019-04-15 13:11:09 -07:00
Aditya Patwardhan 370f5a7eb1 Merged PR 7747: Update the changelog with release date v6.2.0 2019-03-28 18:48:25 +00:00
Aditya Patwardhan 513029a356 Update release date 2019-03-28 10:35:44 -07:00
Travis Plunk a79bda1116 Merged PR 7680: 6.2.0 Changelog
draft changelog
2019-03-27 21:10:59 +00:00
Travis Plunk 1fd69de8e9 Fix spelling 2019-03-26 11:24:08 -07:00
Travis Plunk 194bb3915e Address PR Feedback 2019-03-26 11:19:27 -07:00
Travis Plunk e9a3899516 draft changelog 2019-03-25 17:44:57 -07:00
Paul Higinbotham fc87a3b0a5 Add psremoting enable/disable cmdlet warning messages (#9203)
Adds warning messages to the Enable-PSRemoting and Disable-PSRemoting cmdlets that informs the user that the cmdlets only affect PSCore6 remoting endpoint configurations and not Windows PowerShell configurations.

PR Context
As documented, Enable-PSRemoting and Disable-PSRemoting affects all PowerShell remoting on a Windows system, and Windows users will likely expect the cmdlets to continue working this way in PSCore6. However, these cmdlets currently affect only PSCore6 remoting endpoints when run in PSCore6 and have no effect on Windows remoting endpoints.
2019-03-25 10:02:34 -07:00
dependabot[bot] 52ff03f392 Build(deps): Bump NJsonSchema from 9.13.26 to 9.13.27 (#9196)
Bumps [NJsonSchema](https://github.com/rsuter/NJsonSchema) from 9.13.26 to 9.13.27.
- [Release notes](https://github.com/rsuter/NJsonSchema/releases)
- [Commits](https://github.com/rsuter/NJsonSchema/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-25 10:01:45 -07:00
Travis Plunk 566f4da5b5 Make Linux CI parallel (#9209)
Make the Linux CI build once and then run the tests on 4 different machines, by tag.

## PR Context

Running in parallel allows us to run all tests in about the same amount of clock time
2019-03-25 10:01:24 -07:00
Steve LeeandTravis Plunk 9e608ac55f Enable SecureString cmdlets for non-Windows (#9199)
On Unix systems, fallback to plaintext manipulation instead of using the DPAPI which is not available.

## PR Context

Currently, existing scripts that use SecureString cmdlets fail with an error complaining about crypt32.dll not being available.  This change allows these cmdlets to be used, but there is no encryption of the string.
.Net already [states](https://docs.microsoft.com/en-us/dotnet/api/system.security.securestring?view=netcore-2.1#remarks) that the contents of a SecureString are not encrypted on .Net Core.

Fix https://github.com/PowerShell/PowerShell/issues/1654

Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2019-03-25 10:01:11 -07:00
dependabot[bot] d4eed9ea2a Build(deps): Bump Microsoft.PowerShell.Native from 6.2.0-rc.1 to 6.2.0 (#9200) 2019-03-25 10:00:57 -07:00
Travis Plunk f581ea657d Add Obsolete message to Send-MailMessage (#9178)
Add Obsolete message to Send-MailMessage

## PR Context

See https://github.com/PowerShell/PowerShell-RFC/pull/160

Co-authored-by: Steve Lee <slee@microsoft.com>
Co-authored-by: Ilya <darpa@yandex.ru>
# Conflicts:
#	test/powershell/Modules/Microsoft.PowerShell.Utility/Send-MailMessage.Tests.ps1
2019-03-25 10:00:42 -07:00
Aditya Patwardhan 6be91aade6 Fix Restart-Computer to work on localhost when WinRM is not present (#9160) 2019-03-21 14:30:44 -07:00
Paul Higinbotham 6ea736c7c3 Fix for FormatTable remote deserialization regression (#9116) 2019-03-21 14:29:33 -07:00
Travis Plunk e0d5dfd828 Fix Enter-PSHostProcess tests flakiness (#9007) 2019-03-21 14:28:49 -07:00
Staffan Gustafsson cb49c77591 Adding CmdletsToExport and AliasesToExport to test module manifests. (#9108) 2019-03-21 14:22:36 -07:00
Travis Plunk 289ac4f551 Add tests for command globbing (#9180)
Add tests for command globbing
  - Also, add `-noprofile` to places where `pwsh` is launched so they don't fail locally.
2019-03-21 14:18:23 -07:00
Aditya Patwardhan 818c7de89c Performance improvements for release build (#9179)
This PR optimizes the download tasks to reduce build times. After the change we see a order of magnitude reduction in download times for Windows package signing and also the compliance tasks.

In addition to that the PR also makes changes to organize the build artifacts in folders.
2019-03-21 14:17:49 -07:00
dependabot[bot] 21e662010f Build(deps): Bump NJsonSchema from 9.13.25 to 9.13.26 (#9184)
Bumps [NJsonSchema](https://github.com/rsuter/NJsonSchema) from 9.13.25 to 9.13.26.
- [Release notes](https://github.com/rsuter/NJsonSchema/releases)
- [Commits](https://github.com/rsuter/NJsonSchema/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-21 14:17:35 -07:00
Aditya Patwardhan a8c6f1bd60 Add tsaVersion property as TsaV1 for compliance build phase (#9176)
Add the tsaVersion property with values as TsaV1 as it defaults to v2 instead. We explicitly need v1.
2019-03-21 14:17:25 -07:00
Aditya Patwardhan 1b1ae6df62 Publish global tool packages to pwshtool blob and bug fixes (#9163) 2019-03-21 14:17:17 -07:00
Travis Plunk 8f9666fe2d Translate Skipped the test results into something Azure DevOps does NOT understand (#9124) 2019-03-21 14:17:06 -07:00
dependabot[bot] 4f30e15999 Build(deps): Bump NJsonSchema from 9.13.24 to 9.13.25 (#9172)
Bumps [NJsonSchema](https://github.com/rsuter/NJsonSchema) from 9.13.24 to 9.13.25.
- [Release notes](https://github.com/rsuter/NJsonSchema/releases)
- [Commits](https://github.com/rsuter/NJsonSchema/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-21 14:16:57 -07:00
dependabot[bot] 18b8100737 Build(deps): Bump NJsonSchema from 9.13.23 to 9.13.24 (#9166) 2019-03-21 14:16:40 -07:00
Reece Dunham 3bf36c1cba Disable Homebrew analytics in macOS VSTS builds (#9130) 2019-03-21 14:14:46 -07:00
dependabot[bot] 19de092977 Build(deps): Bump PowerShellGet from 2.1.0 to 2.1.2 in /src/Modules (#9145) 2019-03-21 14:14:35 -07:00
dependabot[bot] da9be4bb07 Build(deps): Bump NJsonSchema from 9.13.22 to 9.13.23 (#9136) 2019-03-21 14:14:35 -07:00
Dongbo Wang 775a2ebbdf Make 'Start-Job' throw terminating error when PowerShell is being hosted (#9128) 2019-03-21 14:14:23 -07:00
Joel Sallow (/u/ta11ow) ea4bf50623 Fix -NoEnumerate behaviour in Write-Output (#9069)
Fix is to preserve input collection type in output.
The regression was caused by #2038
2019-03-13 13:32:51 -07:00
Reece Dunham 9356002d25 Remove appveyor references from packaging tools (#9117)
Removes appveyor stuff


## PR Context

<!-- Provide a little reasoning as to why this Pull Request helps and why you have opened it. -->
#8686 , appveyor removed
2019-03-13 13:29:45 -07:00
Bram Crielaard a64bac20e7 Add source for install-package to install netDumbster (#9081)
# Conflicts:
#	test/powershell/Modules/Microsoft.PowerShell.Utility/Send-MailMessage.Tests.ps1
2019-03-13 13:27:44 -07:00
Reece Dunham 722397b5e5 Fixed Dockerfile syntax highlighting (#8991)
The `f` in Dockerfile is not uppercase, this breaks syntax highlighting for vscode on my client
<!-- Summarize your PR between here and the checklist. -->

## PR Context
`DockerFile` breaks syntax highlighting as mentioned and described above.
<!-- Provide a little reasoning as to why this Pull Request helps and why you have opened it. -->
2019-03-13 13:25:35 -07:00
Aditya Patwardhan fb82019c4a Fix dependencies of nuget build to wait on DEB uploads to finish (#9118)
The NuGet build task should wait on uploads for DEB job to complete.

## PR Context

There is a race condition when the build for DEB is completed but the upload has not. If the NuGet build job starts it may not get all the packages needed for building nuget packages.
2019-03-13 13:22:00 -07:00
James Truher [MSFT] f80a0053e7 Fix tab completion test to handle multiple matches (#8891) 2019-03-13 13:20:50 -07:00
dependabot[bot] 4258c6c514 Build(deps): Bump PowerShellGet from 2.0.4 to 2.1.0 in /src/Modules (#9110) 2019-03-13 13:20:35 -07:00
Travis Plunk 3bc6e3cca4 Refactor macOS CI so that tests run in parallel (#9056)
Refactor macOS CI so that tests run in parallel 
  - Also:
    - Fix bootstrap issue where curl was failing for a month (so obviously not needed)
    - Change Windows test stages to use PowerShell Core (where we can) to avoid compat issues

## PR Context

This allows running all tests in about the same about of clock time.
2019-03-13 13:20:18 -07:00
Travis Plunk f8174e8c8f Fix artifact Download issue in release build (#9095)
Fix artifact Download issue in release build
2019-03-13 13:14:57 -07:00
Reece Dunham 93a777ad7f Comment cleanup in releaseTools.psm1 (#9064) 2019-03-13 13:13:48 -07:00
Dongbo Wang fefe5638e7 Update the task-based async APIs added to PowerShell to return a Task object directly (#9079)
Update the task-based async APIs added to PowerShell to not use the `aysnc/await` keywords, but to return a `Task` object directly.
There is nothing to continue on after the `Task.Factory.FromAsync` call in those methods, so there is not need to use `aysnc` and `await` keywords, which turns the method into a state machine class unnecessarily.
2019-03-13 13:13:11 -07:00
Kirk Munro 7482cbf5aa Add 5 'InvokeAsync' overloads and 'StopAsync' to the 'PowerShell' type (#8056) 2019-03-13 13:09:25 -07:00