Commit graph

6946 commits

Author SHA1 Message Date
Reece Dunham
6ee4521cd3 Update maintainer docs about the CLA PR labels (#8734) 2019-01-24 11:46:51 -08:00
dependabot[bot]
60edeb2c76 Build(deps): Bump XunitXml.TestLogger from 2.0.0 to 2.1.26 (#8731) 2019-01-24 11:01:24 -08:00
dependabot[bot]
4f3f2fb32e Build(deps): Bump NJsonSchema from 9.13.15 to 9.13.16 (#8732)
Bumps [NJsonSchema](https://github.com/rsuter/NJsonSchema) from 9.13.15 to 9.13.16.
- [Release notes](https://github.com/rsuter/NJsonSchema/releases)
- [Commits](https://github.com/rsuter/NJsonSchema/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-24 19:12:06 +05:00
Mark Kraus
0ced5c92f0 Update path of test\xUnit\xUnit.tests.csproj in PowerShell.sln (#8730) 2019-01-24 11:45:47 +05:00
Mark Kraus
4590bf3cf9 Ignore files added by SelfSignedCertificate (#8728)
WebListener module depends on SelfSignedCertificate module and restore it so we should ignore the files in git.
2019-01-24 11:42:20 +05:00
Travis Plunk
2b81a706ae Add Andrew to the maintainer list (#8722)
* Add andrew to the maintainer list
* update dictionary
2019-01-23 15:08:53 -08:00
Steve Lee
3a8205018e Fix Enter-PSHostProcess test to wait until runspace is ready before attempting to enter (#8725)
This fixes CI test failure in Windows build.
2019-01-23 15:07:34 -08:00
Paul Higinbotham
4a1fc4b382 Remove AMSI unitialized assert and replace with call to uninitialize (#8713) 2019-01-23 13:58:23 -08:00
Steve Lee
7e2cd7954f Add the experimental feature for creating 'Temp:\' drive when FileSystemProvider initializes (#8696)
Adds Experimental Feature called `PSTempDrive` that, if enabled, creates a PSDrive called `Temp:` that maps to `[System.IO.Path]::GetTempPath()`.
2019-01-23 13:53:04 -08:00
Aditya Patwardhan
ea0b4de90a
Merged PR 6442: Moved the cleanup logic to Restore-PSModuleToBuild
Moved the cleanup logic to Restore-PSModuleToBuild

# Conflicts:
#	build.psm1
2019-01-23 12:27:44 -08:00
Dongbo Wang
cab8f26386
Generate and deploy reference assembly for Microsoft.PowerShell.Commands.Utility.dll (#8716)
Update `New-ReferenceAssembly` and `New-UnifiedNugetPackage` to generate reference assembly for `Microsoft.PowerShell.Commands.Utility.dll` and properly deploy it for `Microsoft.PowerShell.Commands.Utility` NuGet package and `Microsoft.PowerShell.SDK` NuGet package.

An incremental step to fix, eventually, #8121
2019-01-23 11:43:18 -08:00
Dongbo Wang
86516ad0b6 Generate and deploy reference assembly for Microsoft.PowerShell.Commands.Utility.dll (#8716)
Update `New-ReferenceAssembly` and `New-UnifiedNugetPackage` to generate reference assembly for `Microsoft.PowerShell.Commands.Utility.dll` and properly deploy it for `Microsoft.PowerShell.Commands.Utility` NuGet package and `Microsoft.PowerShell.SDK` NuGet package.

An incremental step to fix, eventually, #8121
2019-01-23 11:42:32 -08:00
Dongbo Wang
9ceddc0dfe
Refactor ConvertTo-Json to expose JsonObject.ConvertToJson as a public API (#8682)
We have the public API `JsonObject.ConvertFromJson` to convert from JSON string in the PowerShell context. It would be good to have a public API for conversion to JSON. This PR refactors the `ConvertTo-Json` cmdlet to move the core implementation to `JsonObject.ConvertToJson`, and make `ConvertTo-Json` call that public method.

This would help the Azure Function PowerShell worker. Currently, we depends on [calling the cmdlet](729710d259/src/PowerShell/PowerShellManager.cs (L198-L205)) to convert object to JSON which is expensive. Once we have the public method `JsonObject.ConvertToJson` exposed, we can call the API directly to avoid a command invocation.

# Conflicts:
#	test/Test.Common.props
2019-01-23 10:41:19 -08:00
Dongbo Wang
c606b1ca37 Refactor ConvertTo-Json to expose JsonObject.ConvertToJson as a public API (#8682)
We have the public API `JsonObject.ConvertFromJson` to convert from JSON string in the PowerShell context. It would be good to have a public API for conversion to JSON. This PR refactors the `ConvertTo-Json` cmdlet to move the core implementation to `JsonObject.ConvertToJson`, and make `ConvertTo-Json` call that public method.

This would help the Azure Function PowerShell worker. Currently, we depends on [calling the cmdlet](729710d259/src/PowerShell/PowerShellManager.cs (L198-L205)) to convert object to JSON which is expensive. Once we have the public method `JsonObject.ConvertToJson` exposed, we can call the API directly to avoid a command invocation.
2019-01-23 10:39:12 -08:00
Steve Lee
f7c25e8f7c Update code to use single method to check if path is UNC (#8680)
update all checks if path is unc to one method
2019-01-23 09:37:45 -08:00
Travis Plunk
c4b2105a73 Merged PR 6648: Bump SDK and Runtime Versions
Bump SDK and Runtime Versions
  - Also, fix alpine docker file
  - Also, fix extra files being added to some Modules after these changes
2019-01-23 02:18:44 +00:00
Andrew
7085d88453
Package validation tests updates (#8714) 2019-01-22 17:38:14 -08:00
Paul Higinbotham
0c2a8911d6 Update release process template (#8711)
* Update release process with latest steps

* Added DevOps artifacts step

* Update .github/ISSUE_TEMPLATE/Release_Process.md

Co-Authored-By: PaulHigin <paulhi@microsoft.com>


Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
2019-01-22 17:11:39 -08:00
Andrew
3bf8d34f58 Package validation tests updates (#8714) 2019-01-22 17:09:39 -08:00
dependabot[bot]
0dff846fe0
Build(deps): Bump Microsoft.PowerShell.Native (#8712) 2019-01-22 14:39:34 -08:00
dependabot[bot]
c955f313e4 Build(deps): Bump Microsoft.PowerShell.Native (#8712) 2019-01-22 14:35:36 -08:00
Aditya Patwardhan
9e8f5bde33 Merged PR 6644: Update hosting tests and metadata.json for 6.2.0-preview.4 release
Update hosting tests and metadata.json for 6.2.0-preview.4 release
2019-01-22 21:43:47 +00:00
Christoph Bergmeister [MVP]
beae5691aa Do not ship fullclr binaries of PackageManagement (#8700)
## PR Summary

Related: #8699

## PR Context  

Because `PowerShellGet` does not support publishing/saving module on a per platform basis (see [this](https://github.com/PowerShell/PowerShellGet/issues/273) issue), PowerShell currently also ships the fullclr binaries of `PackageManagement`, which it does not need. Therefore removing it to minimise the package size, this saves 1.19 MB.
2019-01-22 12:55:22 -08:00
Aditya Patwardhan
cf013dd072 Fix the build for fxdependent build for dotnet sdk (#8670) 2019-01-22 11:25:25 -08:00
xtqqczze
1df96c7ed5 Remove broken HelpUri from CimTest (#8688) 2019-01-22 11:21:45 -08:00
Travis Plunk
d0d1061ae2 Add Windows build to universal release build YAML (#8695) 2019-01-22 11:21:02 -08:00
Mark Kraus
2dd549e34b Fix Code Page Parsing Isssue in Invoke-RestMethod (#8694) 2019-01-22 10:45:40 -08:00
Reece Dunham
bdc3c856a6 Remove un-used AppVeyor links from README.md (#8685) 2019-01-20 19:10:59 -08:00
Mark Kraus
67004aa224 Fix expect 100-continue Issue with Web Cmdlets (#8679)
Web Cmdlets will no longer forcibly remove Expect: 100-continue from web requests.
This was a legacy setting that needed to be there because of platform differences that have since been resolved in CoreFX.
2019-01-19 11:16:18 +05:00
Joel Sallow (/u/ta11ow)
631833cd50 Cleanup Format-Hex (#8683) 2019-01-19 00:33:36 +05:00
Dongbo Wang
7054096aef
Update README.md (#8684)
The last two commits to this file "broke" both  "Developing and contributing"(link is missing) and "Support" (don't know what it didn't format correctly.
This commit fixes both cases.
2019-01-18 11:21:23 -08:00
Reece Dunham
afdf58bda9 Update Package Management license to MIT (#8676) 2019-01-18 11:20:32 -08:00
Michael Klement
20919ee793 Allow 'name' as an alias key for 'label' in ConvertTo-Html, allow the 'width' entry to be an integer (#8426) 2019-01-18 11:02:22 -08:00
Daniel Silva
b2470dd583
Update README.md
The last two commits to this file "broke" both  "Developing and contributing"(link is missing) and "Support" (don't know what it didn't format correctly.
This commit fixes both cases.
2019-01-18 14:49:21 +00:00
Travis Plunk
f1218bd3d9
Remove Debian 8 references as it is EOL (#8678)
Remove Debian 8 references as it is EOL
2019-01-17 16:30:39 -08:00
Guillaume Lachance
80cabc4f28 AddToPath re-implementation in install-powershell.ps1 (#8081)
This PR is a re-implementation of the -AddToPath switch in tools/install-powershell.ps1, without the side-effects the current implementation has.  The changes only affects windows users.
2019-01-17 14:25:01 -08:00
Mathias R. Jessen
59a3696f70 Allow user-specified underlying type for enums (#8329)
Fix #8028 

This change adds support for specifying the underlying type for an enum:

```powershell
enum MyEnum : long 
{
  A = 0x0FFFFFFFFFFFFFFF
  B
}
# or
enum MyByte : byte 
{
  A = 0x01
  B = 0x02
  C = 0x03
  D
}
```
2019-01-17 14:22:10 -08:00
Reece Dunham
f29a04c1bd Remove appveyor environment checks (#8669) 2019-01-17 12:33:35 -08:00
Reece Dunham
41e63f6546 Create Support File (#8618) 2019-01-17 12:25:07 -08:00
dependabot[bot]
f49af36670 Build(deps): Bump NJsonSchema from 9.13.14 to 9.13.15 (#8671)
Bumps [NJsonSchema](https://github.com/rsuter/NJsonSchema) from 9.13.14 to 9.13.15.
- [Release notes](https://github.com/rsuter/NJsonSchema/releases)
- [Commits](https://github.com/rsuter/NJsonSchema/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-17 21:49:19 +05:00
Reece Dunham
ac2512ff0d Update git clone URL (#8673) 2019-01-17 21:48:29 +05:00
Aditya Patwardhan
52546f57f2 Change the feed URL to feed name due to changes in AzDevOps (#8664) 2019-01-16 17:47:03 -08:00
Reece Dunham
9eb6fc927d docs(contributing): add link check information (#8659) 2019-01-16 15:30:55 -08:00
Travis Plunk
4d69997cf0
Batch merge builds together while a merge build is running (#8668)
## PR Summary

Batch merge builds together while a merge build is running 

## PR Context  

Help keep agents available for CI runs.
2019-01-16 15:29:46 -08:00
pougetat
4858afb613 Resolve :PAGER' if its path contains spaces (#8571) 2019-01-16 15:14:44 -08:00
Aditya Patwardhan
f03cafbdd8 Build package build using ubuntu 18.04 image (#8666) 2019-01-16 15:10:39 -08:00
Steve Lee
a04f6940dd Handle case where applocker test script fails to delete (#8627)
One reported case where during applocker policy check, the test script that is created cannot be deleted because something else (malware scanner?) has a lock on the file.  This results in an exception being thrown in finally block which ultimately causes PowerShell to crash due to the unhandled exception.  Fix is to wrap the deletion in the finally block with try..catch and ignore any exceptions and leave the temp file.

TFS:20156282
2019-01-16 15:00:37 -08:00
PRASOON KARUNAN V
6b3e06893a Adding tests for PSDiagnostics Module (#8431) 2019-01-16 14:59:35 -08:00
Travis Plunk
03cd3a2548
Increase diagnosability of Link Checker failures (#8667)
Also use ThreadJobs for better perf
2019-01-16 14:28:10 -08:00
Ilya
782ef99465
Add support enum and char types in Format-Hex cmdlet (#8191) 2019-01-16 16:58:22 +05:00