Commit graph

7072 commits

Author SHA1 Message Date
Aditya Patwardhan 34fa5e472d
Fix publishing daily nupkg to MyGet (#9269) 2019-04-01 16:58:43 -07:00
James Truher [MSFT] 2f0d127ef8 Check to be sure that the test result file has actual results before uploading (#9253)
VSTS produces a warning if the result set is 0, we will skip uploading this to avoid the warning and better support automation scenarios.

## PR Context

We have automation which checks our test results and if the result set is 0 for that file, a warning is produced. This PR will avoid uploading that file into the test results (which is valid, as there are no run tests). We will still add the file to our artifact list for completeness.
2019-04-01 16:47:55 -07:00
Steve Lee 8a0ecaf620 Add timestamp to pshost trace listener (#9230)
Static analysis CI was executed separately.
2019-04-01 13:27:41 -07:00
dependabot[bot] 4005f50faa Build(deps): Bump NJsonSchema from 9.13.27 to 9.13.28 (#9265)
Bumps [NJsonSchema](https://github.com/rsuter/NJsonSchema) from 9.13.27 to 9.13.28.
- [Release notes](https://github.com/rsuter/NJsonSchema/releases)
- [Commits](https://github.com/rsuter/NJsonSchema/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-01 22:26:16 +05:00
Travis Plunk f649751ed2
Update release process template to clarify that most tasks are coordinated by the release pipeline (#9238)
Co-authored-by: Reece Dunham <me@rdil.rocks>
2019-03-30 16:09:54 -07:00
Travis Plunk 14980aa943
Add secret scanning to CI (#9249)
Add secret scanning to CI

## PR Context

This should prevent us from having any secrets in our history
2019-03-30 10:17:25 -07:00
ThreeFive-O 665cd26ab0 Fix several problems in WritingPesterTests guideline (#9078) 2019-03-29 15:29:41 -07:00
pougetat 0ee5278b40 Fix Get-Module -FullyQualifiedName option to work with paths (#9101) 2019-03-29 15:27:09 -07:00
Travis Plunk 17f5a5ccbe
Add component detection to all jobs (#8964)
Add component detection to all jobs.
2019-03-29 15:18:55 -07:00
Aditya Patwardhan 8beacd1f7f Update ChangeLog for 6.2.0 (#9245)
Update the change log for 6.2.0 in master
2019-03-28 13:54:55 -07:00
Aditya Patwardhan df513bf7d8 Update docs for v6.2.0 (#9229) 2019-03-28 12:02:14 -07:00
Reece Dunham 12276147e6 Remove code from CI.psm1 to optionally run Feature tests (#9212) 2019-03-27 13:29:15 -07:00
Steve Lee 539c4a26de Enable PoshChan for getting and automatic retrieval of test failures for a PR (#9232)
Enable new capability to ask for test failures and have PoshChan automatically get (up to 10) test failures for a PullRequest if CI fails.
2019-03-27 09:51:02 -07:00
Ilya 7dc17a35a9 Enhance the P/Invoke code for LookupAccountSid in Process.cs (#9197) 2019-03-26 21:11:25 -07:00
pougetat 0f429f2553 Fix coding style for NewModuleManifestCommand (#9134) 2019-03-26 16:55:55 +05:00
pougetat e553aef0fb Implement Get-Random -Count without specifying an InputObject list (#9111) 2019-03-26 16:50:20 +05:00
Ilya 49c38684a3 Remove unused method CredUIPromptForCredential from HostUtilities.cs (#9220) 2019-03-25 17:02:33 -07:00
Reece Dunham 5a53ea0a32 Clean up static analysis config (#9113) 2019-03-25 16:17:36 -07:00
ThreeFive-O 487f11adf5 Remove non-existent paths from .csproj files (#9214) 2019-03-25 09:58:12 -07:00
Paul Higinbotham 9ea60587fc 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 09:39:15 -07:00
Tyler James Leonhardt cd7d7797e4 Typo in new parameter set (#9205) 2019-03-25 08:17:18 +05:00
Reece Dunham df37094092 Minor FileSystemProvider cleanup (#9182) 2019-03-24 22:07:25 +05:00
Travis Plunk 5aed18dc93
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-23 18:23:07 -07:00
Reece Dunham c0cce1030c Fix capitalization cases for PoshChan (#9188)
The jobs name is fully lowercase
2019-03-23 13:31:50 -07:00
Steve Lee 3255d84627 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-23 10:11:05 -07:00
Ilya cc6540b614
Cleanup style issues in CoreAdapter and MshObject (#9190) 2019-03-23 09:52:30 +05:00
Ilya a47c1b3113
Minor cleanups in Process.cs (#9195)
* Use string.Join
* Use char const
2019-03-23 09:46:33 +05:00
dependabot[bot] 8f943b9f02 Build(deps): Bump Microsoft.PowerShell.Native from 6.2.0-rc.1 to 6.2.0 (#9200) 2019-03-22 13:33:00 -07:00
Travis Plunk 94616f1789
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>
2019-03-22 12:52:41 -07:00
Michael Klement f81f778308 Update feature-request issue template to move instructions into comments. (#9187)
Moved instructions into comments.

## PR Context

While users should _see_ instructions, they shouldn't be _included_ when the issue is created.
2019-03-22 12:23:26 -07:00
Steve Lee c94f8c02f4 Update to new format for PoshChan settings and allow all users access to reminders (#9198)
PoshChan has been updated to use a new settings format so that authorized users are per action vs being global. 

## PR Context

Since reminders don't incur much of a resource hit for PoshChan, there's no reason not to allow everyone to use it.  See https://github.com/SteveL-MSFT/PoshChan-Bot for use instructions.
2019-03-22 10:45:51 -07:00
Ilya bc95a8e088 Refactor ReadConsole P/Invoke in ConsoleHost (#9165)
Replace `StringBuilder` with stack allocated `Span<char>` to avoid extra allocation/copies during P/Invoke
2019-03-22 09:51:13 -07:00
dependabot[bot] 43b84519a7 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-22 18:41:48 +05:00
Travis Plunk 185f20e3bd
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 13:49:57 -07:00
Aditya Patwardhan 8763c0b1d1 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 10:24:49 -07:00
Aditya Patwardhan 337ce63734
Use IL assemblies for NuGet packages to reduce size (#9171) 2019-03-21 10:03:46 -07:00
dependabot[bot] c691a98952 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 19:32:31 +05:00
Steve Lee 0cd0de1e0d Add xsd for cdxml (#9177) 2019-03-21 11:22:36 +05:00
Staffan Gustafsson 42c289fc8e Improve formatting performance by having better primitives on PSObject (#8785)
By not doing excessive amounts of extra work, formatting can be sped up quite significantly (about 8x faster).
The main change comes from adding new, more efficient, primitive to query an object for the existence of an instance member.
The formatting system has been checking for if an object has properties other than some decorated properties added by PS remoting, and it doesn't this by retrieving all properties which results in heavy allocations and wasted cycles.
By adding `GetFirstOrDefault` to `PSObject` and similar primitives to the underlying Adapters, we are able to return early, without having to get all properties back.
2019-03-20 18:43:52 -07:00
Aditya Patwardhan 95a8091991 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-20 14:01:39 -07:00
Aditya Patwardhan 753d31809b
Publish global tool packages to pwshtool blob and bug fixes (#9163) 2019-03-20 13:44:40 -07:00
Travis Plunk b632b60fca
Translate Skipped the test results into something Azure DevOps does NOT understand (#9124) 2019-03-20 13:25:39 -07:00
dependabot[bot] cdbf6d60a3 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-20 22:52:36 +05:00
Aditya Patwardhan 0fe9af4856
Fix Restart-Computer to work on localhost when WinRM is not present (#9160) 2019-03-19 14:18:29 -07:00
Patrick Meinecke b4ebf63335 Improve type inference of array literals and foreach statement variables (#8100)
Improve type inference for foreach statement variables by:

Inferring strongly typed arrays from explicit array and array literal expressions when elements are of the same inferred type

Fix detection of foreach variable declaration. The previous logic was to check if the variable expression's start offset was after the end offset of the foreach statement, which will never be true in the body

Improve inference of what type the "Condition" of a foreach statement will enumerate as
2019-03-19 13:36:27 -07:00
Steve Lee 98fc4a6704 fix settings to use dashes instead of underscore (#9167) 2019-03-19 12:48:49 -07:00
Steve Lee 4add730a1d Fix AzDevOps context names and add all PowerShell team members (#9164) 2019-03-19 11:16:08 -07:00
dependabot[bot] 5db2008c2f Build(deps): Bump NJsonSchema from 9.13.23 to 9.13.24 (#9166) 2019-03-19 10:11:20 -07:00
Steve Lee af0e95f8e2 Add settings for PoshChan-Bot (#9162)
Merging without waiting for recommended 24 hours as this is not a PowerShell code change, but a change for the `PoshChan` bot.
2019-03-18 17:01:14 -07:00
Dongbo Wang 24d3152f00 Make Start-Job throw terminating exception when -RunAs32 is specified in 64-bit pwsh (#9143) 2019-03-18 10:23:29 -07:00