Commit Graph

676 Commits (8013ab3d9d24d734a34a4cdc49516fb1f1342e1c)

Author SHA1 Message Date
Buddhika Chathuranga 8013ab3d9d
Upate extension yaml support
Remove old object query class and add methods to extension which can take yaml objects as aruments.

Add unit test for runawayprocesskiller for yaml support
2020-08-21 09:24:40 +08:00
Buddhika Chathuranga 42df5eeff9
Update Yaml extension support 2020-08-21 09:24:27 +08:00
Buddhika Chathuranga dcec99c261
Update yaml_extension_support
Add unit test
2020-08-21 09:24:16 +08:00
Buddhika Chathuranga 1fc681af14
Update RunawayProcessKillerTest.cs 2020-08-21 09:24:05 +08:00
Buddhika Chathuranga 8c4241369c
Yaml support for extensions 2020-08-21 09:23:36 +08:00
Yinux 348d524c79
Fix a case error in README.md (#644) 2020-08-12 15:17:10 +08:00
Buddhika Chathuranga 853e5aeec6
Support both XML and YAML configuration + Remove support for *.vshost files and folder hierarchy lookup which used to be an undocumented development features (#641)
* Sync with upstream (#3)

* Add a Dependabot configuration (#558)

* Add a Dependabot configuration

* Update dependabot.yml

* Bump NUnit3TestAdapter from 3.16.0 to 3.16.1 (#561)

Bumps [NUnit3TestAdapter](https://github.com/nunit/nunit3-vs-adapter) from 3.16.0 to 3.16.1.
- [Release notes](https://github.com/nunit/nunit3-vs-adapter/releases)
- [Commits](https://github.com/nunit/nunit3-vs-adapter/compare/V3.16...V3.16.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump Microsoft.NET.Test.Sdk from 16.4.0 to 16.6.1 (#563)

Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.4.0 to 16.6.1.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.4.0...v16.6.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump ilmerge from 3.0.29 to 3.0.40 (#559)

* Bump ilmerge from 3.0.29 to 3.0.40

Bumps [ilmerge](https://github.com/dotnet/ILMerge) from 3.0.29 to 3.0.40.
- [Release notes](https://github.com/dotnet/ILMerge/releases)
- [Commits](https://github.com/dotnet/ILMerge/commits)

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

* Define $(ILMergeVersion)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Next Turn <45985406+NextTurn@users.noreply.github.com>

* Bump coverlet.collector from 1.2.0 to 1.3.0 (#560)

Bumps [coverlet.collector](https://github.com/coverlet-coverage/coverlet) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/coverlet-coverage/coverlet/releases)
- [Commits](https://github.com/coverlet-coverage/coverlet/commits)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump ilmerge from 3.0.40 to 3.0.41 (#571)

Bumps [ilmerge](https://github.com/dotnet/ILMerge) from 3.0.40 to 3.0.41.
- [Release notes](https://github.com/dotnet/ILMerge/releases)
- [Commits](https://github.com/dotnet/ILMerge/commits)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Co-authored-by: Oleg Nenashev <o.v.nenashev@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Next Turn <45985406+NextTurn@users.noreply.github.com>

* Update winsw to work with both XML and YAML config

Add logic to select configuration type
Remove redundant codes for config file finding

* Update ConfigType.cs file encoding

* Reference yamlonfiguration.md file from the Readme.md

* Refactor yaml and xml support

Update  naming conventions in Readme.md
Remove ConfigType.cs

* Refactors

* Update Program.cs

* Remove recursive look for configurations file

Remove trimming .vshost extension in executable file name

* Update Program.cs

Co-authored-by: Oleg Nenashev <o.v.nenashev@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Next Turn <45985406+NextTurn@users.noreply.github.com>
2020-08-10 13:23:54 +02:00
dependabot[bot] 57dbe910cb
Bump Microsoft.NET.Test.Sdk from 16.6.1 to 16.7.0 (#637)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.6.1 to 16.7.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.6.1...v16.7.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-07 14:15:46 +08:00
Oleg Nenashev a7fb954f76
Merge pull request #629 from winsw/release-drafter-update
Update release Drafter to v5.11.0
2020-08-05 12:06:20 +02:00
Oleg Nenashev baa9bddd88
Update release Drafter to v5.11.0 2020-08-05 11:51:09 +02:00
Oleg Nenashev 0862d06905
Merge pull request #582 from NextTurn/filelen
Fix file length accumulation
2020-08-05 11:32:11 +02:00
Oleg Nenashev 35e05f0b35
Merge pull request #580 from NextTurn/stopparentfirst
Stop parent process first by default
2020-08-05 11:05:44 +02:00
Oleg Nenashev bf2a24c7a0
Merge pull request #569 from NextTurn/itemgroup
Remove unnecessary project items
2020-08-05 11:05:26 +02:00
Oleg Nenashev 62d10fe2fb
Merge branch 'master' into filelen 2020-08-05 11:03:39 +02:00
Oleg Nenashev a01a22afd8
Merge branch 'master' into stopparentfirst 2020-08-05 10:59:52 +02:00
Buddhika Chathuranga 13cfe45490
Update Yaml Configuration support (#596)
* Sync with upstream (#3)

* Add a Dependabot configuration (#558)

* Add a Dependabot configuration

* Update dependabot.yml

* Bump NUnit3TestAdapter from 3.16.0 to 3.16.1 (#561)

Bumps [NUnit3TestAdapter](https://github.com/nunit/nunit3-vs-adapter) from 3.16.0 to 3.16.1.
- [Release notes](https://github.com/nunit/nunit3-vs-adapter/releases)
- [Commits](https://github.com/nunit/nunit3-vs-adapter/compare/V3.16...V3.16.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump Microsoft.NET.Test.Sdk from 16.4.0 to 16.6.1 (#563)

Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.4.0 to 16.6.1.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.4.0...v16.6.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump ilmerge from 3.0.29 to 3.0.40 (#559)

* Bump ilmerge from 3.0.29 to 3.0.40

Bumps [ilmerge](https://github.com/dotnet/ILMerge) from 3.0.29 to 3.0.40.
- [Release notes](https://github.com/dotnet/ILMerge/releases)
- [Commits](https://github.com/dotnet/ILMerge/commits)

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

* Define $(ILMergeVersion)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Next Turn <45985406+NextTurn@users.noreply.github.com>

* Bump coverlet.collector from 1.2.0 to 1.3.0 (#560)

Bumps [coverlet.collector](https://github.com/coverlet-coverage/coverlet) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/coverlet-coverage/coverlet/releases)
- [Commits](https://github.com/coverlet-coverage/coverlet/commits)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump ilmerge from 3.0.40 to 3.0.41 (#571)

Bumps [ilmerge](https://github.com/dotnet/ILMerge) from 3.0.40 to 3.0.41.
- [Release notes](https://github.com/dotnet/ILMerge/releases)
- [Commits](https://github.com/dotnet/ILMerge/commits)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Co-authored-by: Oleg Nenashev <o.v.nenashev@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Next Turn <45985406+NextTurn@users.noreply.github.com>

* Update WinSW Yaml Support

Add sample-allOption.yml
Update timespan values to aprse from strings. Now user can specify timespan values like 5sec.
Implement unimplemented properties in YmlConfiguration

* Update configurations namings

* Move ParseTimeSpan to seperate utility class

* Update Environment Variable Syntax

Now env variables support name: value: syntax

* Add YamlConfigFile.md

Add yaml user documentation
Update YamlSupport Unit test

* Update YamlConfigFile.md

Summerize the yaml documentation and reference the XmlConfigFile.md for more details

* Update YamlDoc

* Update doc/YamlConfigFile.md

Co-authored-by: Next Turn <45985406+NextTurn@users.noreply.github.com>

* Update yaml configurations to expand environment variables

* Update doc/YamlConfigFile.md

Co-authored-by: Next Turn <45985406+NextTurn@users.noreply.github.com>

Co-authored-by: Oleg Nenashev <o.v.nenashev@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Next Turn <45985406+NextTurn@users.noreply.github.com>
2020-07-29 14:00:39 +02:00
NextTurn 7554d0ecbd Fix file permission and line ending issues 2020-07-25 08:45:19 +08:00
Oleg Nenashev 139c98403b
Merge pull request #593 from winsw/NextTurn-patch-1
Delete NuGet.config
2020-07-24 10:56:15 +02:00
Next Turn 96892b425e
Delete NuGet.config 2020-07-24 16:26:43 +08:00
Buddhika Chathuranga 10d3a6113f
YAML Configurations Support (GSoC - 2020) (#543)
* Add ServiceDesciptorYaml.cs

* Add YamlConfigurations.cs
YmlDotNet library added

* Update YamlConfigurations.cs

* Add download configuration to YamlConfiguration

* Revert "Add download configuration to YamlConfiguration"

This reverts commit f150de13b0.

* Add  ServiceDescriptrYaml unit test
Update YamlConfigurations.

* Confid files seperated
Download class refactored
Unit test updated

* Change nullable attributes.

* Refactor IWinSWConfiguration and Logging settings propagation

* Update YamlConfigurations.cs

* Update configuration FailureActions

* Update Yaml Confifurations

* Update YAML Configuration

* Update yaml configurations

* Update Yaml Configurations

* Yaml Configuration refactored

* Refactored YamlConfigurations

* Update serviceaccount and log configs

* YAML_SC_ACTION method name channged

* Refacored Download class. Field names changed to PascalCase readonly

* Add seperate download class to YamlConfigurations and create and return List<Download>

* Created DefaultWinSWSettings singleton

* Refactor variable name

* Update StopExecutable

* Nullable references updated

* Null references updated

* Add sanity checks for yaml deserializing.

* Implement Log Defaults

* Call logdefaults in YAMLConfigurations

* Update defaults value of ServiceAccout

If serviceaccoutn is not specified default ServiceAccount object will be provided from the Defautls.

* Merge build.yml with master

* Update YamlSeriviceDescriptor

Remove invalid Name field from ServiceAccout
Add BaseName logics to defults
merge build.yml with master

* Update IWinSWConfiguration Support

Now can use any IWinSWConfiguration type instead of ServiceDescriptor. We can use both ServiceDescriptor or ServiceDescriptorYaml.

* Update LogMode unit test

* ServiceAccount configurations refactored

Get all ServiceAccount configuration into a single ServiceAccout class.

* Update default BasePath

* Resolve Merge conflicts

* Resolve Merge Conflicts

* Update YamlDownload configs

* Fix null reference issue in arguments

* Update ServiceAccount configs in XML ServiceDescriptor

* remove BOM header

* Update environment variable configurations

Co-authored-by: Oleg Nenashev <o.v.nenashev@gmail.com>
2020-07-21 18:57:27 +02:00
NextTurn ae10abe857 Disable Codedov commit status 2020-07-19 08:16:52 +08:00
NextTurn 37aee80a8a
Fix file length accumulation 2020-07-16 18:34:42 +08:00
NextTurn adf935725f
Stop parent process first by default 2020-07-16 15:14:50 +08:00
dependabot[bot] 6c966cecc9
Bump NUnit3TestAdapter from 3.16.1 to 3.17.0 (#576)
Bumps [NUnit3TestAdapter](https://github.com/nunit/nunit3-vs-adapter) from 3.16.1 to 3.17.0.
- [Release notes](https://github.com/nunit/nunit3-vs-adapter/releases)
- [Commits](https://github.com/nunit/nunit3-vs-adapter/compare/V3.16.1...V3.17)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-14 14:50:07 +08:00
NextTurn e116368fc4 Standardize coding styles 2020-07-13 09:19:30 +08:00
Oleg Nenashev d2e33f1749
Merge pull request #572 from NextTurn/codecov
Set up code coverage
2020-07-12 13:59:50 +02:00
NextTurn 5e9000f9bd
Setup code coverage 2020-07-11 19:57:02 +08:00
dependabot[bot] 21437f9029
Bump ilmerge from 3.0.40 to 3.0.41 (#571)
Bumps [ilmerge](https://github.com/dotnet/ILMerge) from 3.0.40 to 3.0.41.
- [Release notes](https://github.com/dotnet/ILMerge/releases)
- [Commits](https://github.com/dotnet/ILMerge/commits)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-10 13:35:33 +08:00
NextTurn f38f101aa2
Remove unnecessary project items 2020-07-05 19:11:25 -07:00
dependabot[bot] 87badea9fc
Bump coverlet.collector from 1.2.0 to 1.3.0 (#560)
Bumps [coverlet.collector](https://github.com/coverlet-coverage/coverlet) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/coverlet-coverage/coverlet/releases)
- [Commits](https://github.com/coverlet-coverage/coverlet/commits)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-28 09:40:20 +08:00
dependabot[bot] 2945077ac6
Bump ilmerge from 3.0.29 to 3.0.40 (#559)
* Bump ilmerge from 3.0.29 to 3.0.40

Bumps [ilmerge](https://github.com/dotnet/ILMerge) from 3.0.29 to 3.0.40.
- [Release notes](https://github.com/dotnet/ILMerge/releases)
- [Commits](https://github.com/dotnet/ILMerge/commits)

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

* Define $(ILMergeVersion)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Next Turn <45985406+NextTurn@users.noreply.github.com>
2020-06-28 00:07:35 +08:00
dependabot[bot] 7e7be599f3
Bump Microsoft.NET.Test.Sdk from 16.4.0 to 16.6.1 (#563)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.4.0 to 16.6.1.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.4.0...v16.6.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-26 19:13:15 +08:00
dependabot[bot] 0407ac139c
Bump NUnit3TestAdapter from 3.16.0 to 3.16.1 (#561)
Bumps [NUnit3TestAdapter](https://github.com/nunit/nunit3-vs-adapter) from 3.16.0 to 3.16.1.
- [Release notes](https://github.com/nunit/nunit3-vs-adapter/releases)
- [Commits](https://github.com/nunit/nunit3-vs-adapter/compare/V3.16...V3.16.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-26 19:12:50 +08:00
Oleg Nenashev d74e224593
Add a Dependabot configuration (#558)
* Add a Dependabot configuration

* Update dependabot.yml
2020-06-26 12:51:37 +02:00
NextTurn f9e0126cf8 Improve signal-related logging 2020-06-23 22:34:37 +08:00
Oleg Nenashev 0bdd21b6c0
Merge pull request #550 from NextTurn/nuget
Add NuGet.config
2020-06-23 11:19:58 +02:00
Daniel d18c5b237c
Fix outdated tag (#548)
* Fix outdated tag

* Replace logmode and rotate with log and roll

* Fix typo

* Fix quotes

* Fix quotes
2020-06-23 10:15:03 +08:00
NextTurn 6a7b83fb6a
Add NuGet.config 2020-06-18 23:51:39 +08:00
NextTurn 9926ed8303
Revert "#549 - Apply the .NET Core Restore workaround"
This reverts commit 58d45e32eb.
2020-06-18 23:51:31 +08:00
Oleg Nenashev 58d45e32eb #549 - Apply the .NET Core Restore workaround
See https://developercommunity.visualstudio.com/solutions/1076778/view.html
2020-06-18 10:39:50 +02:00
NextTurn 1b8cbccd8a Decouple CLI and service 2020-06-01 23:36:13 +08:00
Oleg Nenashev 80f109a6a5
Merge pull request #542 from NextTurn/typos
...
2020-06-01 09:51:08 +02:00
NextTurn d086905003
Fix typos 2020-05-28 23:26:33 +08:00
Oleg Nenashev 66167d5251
Merge pull request #534 from buddhikac96/GSoC---Project-Structure
Contributor guidelines: Document the project structure
2020-05-28 15:42:59 +02:00
Buddhika Chathuranga 486ed716bc Update Contributing.md
ProjectStructure.md link added to the Contributing.md
2020-05-28 08:18:09 +05:30
Buddhika Chathuranga 395b4679a4 projectStructure.md updated 2020-05-26 17:09:44 +05:30
Buddhika Chathuranga 6ef42a988e Update projectStructure.md 2020-05-23 16:10:29 +05:30
NextTurn f260d7e5d9 Reorganize interop codes 2020-05-19 00:23:09 +08:00
Buddhika Chathuranga 24b2d0e933
Fix typos 2020-05-18 19:30:59 +05:30
Buddhika Chathuranga e97486cfc4
Fix typos and grammar 2020-05-18 05:34:57 +05:30