Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

everything new #102

Draft
wants to merge 1 commit into
base: edi/support_v21.10
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ dotnet_naming_rule.locals_should_be_camel_case.style = camel_case_style
dotnet_naming_symbols.locals_and_parameters.applicable_kinds = parameter, local

dotnet_naming_style.camel_case_style.capitalization = camel_case
csharp_style_pattern_local_over_anonymous_function=true:silent

[*.xml]
indent_size = 2
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ scripts/
artifacts/
.dotnet
TestResults/
*.diagsession
*.suo
*.user
bin
Expand Down Expand Up @@ -32,3 +33,6 @@ project.lock.json
# Read the Docs
docs/_build
/src/LastMajorVersionBinary

# Mac Finder
.DS_Store
15 changes: 0 additions & 15 deletions CI/azp-dotnet-dist.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions CI/azp-dotnet.yaml

This file was deleted.

55 changes: 0 additions & 55 deletions CI/azp-nodejs.yaml

This file was deleted.

50 changes: 0 additions & 50 deletions CI/azp-start.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions Directory.Build.props

This file was deleted.

14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![Build Status](https://uipath.visualstudio.com/CoreIpc/_apis/build/status/CI?branchName=master)](https://uipath.visualstudio.com/CoreIpc/_build/latest?definitionId=637&branchName=master)
[![MyGet (dev)](https://img.shields.io/badge/CoreIpc-MyGet-brightgreen)](https://www.myget.org/feed/uipath-dev/package/nuget/UiPath.CoreIpc)
[![MyGet (dev)](https://img.shields.io/badge/CoreIpc-Preview-brightgreen)](https://uipath.visualstudio.com/Public.Feeds/_packaging?_a=package&feed=UiPath-Internal&view=versions&package=UiPath.CoreIpc&protocolType=NuGet)
# CoreIpc
WCF-like service model API for communication over named pipes. .NET Standard (.NET Core) and [Node.js](src/Clients/nodejs) clients.
WCF-like service model API for communication over named pipes, TCP and web sockets. .NET and [Node.js and Web](src/Clients/js) clients.
- async
- json serialization
- DI integration
Expand All @@ -14,7 +14,7 @@ WCF-like service model API for communication over named pipes. .NET Standard (.N
- configurable task scheduler
- client authentication and impersonation
- access to the underlying transport with `Stream` parameters
- SSPI encryption and signing
- SSL

Check [the tests](https://github.com/UiPath/CoreIpc/blob/master/src/UiPath.CoreIpc.Tests/) and the sample.
```C#
Expand All @@ -31,3 +31,11 @@ var computingClient =
// call a remote method
var result = await computingClient.AddFloat(1, 4, cancellationToken);
```
# UiPath.Rpc
[![Build Status](https://uipath.visualstudio.com/CoreIpc/_apis/build/status/CI?branchName=master)](https://uipath.visualstudio.com/CoreIpc/_build/latest?definitionId=3428&branchName=master)
[![MyGet (dev)](https://img.shields.io/badge/UiPath.Rpc-Preview-brightgreen)](https://uipath.visualstudio.com/Public.Feeds/_packaging?_a=package&feed=UiPath-Internal&view=versions&package=UiPath.Rpc&protocolType=NuGet)

https://github.com/UiPath/coreipc/tree/master/UiPath.Rpc
A more efficient version based on MessagePack.
# Debug using Source Link
[Preview builds setup](https://docs.microsoft.com/en-us/azure/devops/pipelines/artifacts/symbols?view=azure-devops#set-up-visual-studio).
32 changes: 32 additions & 0 deletions src/CI/azp-dotnet-dist.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
steps:
- task: CopyFiles@2
displayName: '$(Label_DotNet) Copy nupkg to $(Build.ArtifactStagingDirectory)'
inputs:
SourceFolder: 'src\UiPath.CoreIpc\bin\$(DotNet_BuildConfiguration)\'
Contents: '*.*nupkg'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
CleanTargetFolder: true

- task: PublishBuildArtifacts@1
displayName: '$(Label_DotNet) Publish the $(DotNet_ArtifactName) to the pipeline instance'
inputs:
ArtifactName: '$(DotNet_ArtifactName)'
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactType: 'Container'

- task: DotNetCoreCLI@2
displayName: 'dotnet push to UiPath-Internal'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
inputs:
command: push
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg'
publishVstsFeed: 'Public.Feeds/UiPath-Internal'

- task: PublishSymbols@2
displayName: 'Publish Symbols to UiPath Azure Artifacts Symbol Server'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
inputs:
symbolsFolder: $(Build.SourcesDirectory)
searchPattern: '**/UiPath.CoreIpc/bin/**/UiPath.CoreIpc.pdb'
symbolServerType: teamServices
indexSources: false
9 changes: 9 additions & 0 deletions src/CI/azp-dotnet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
steps:
- task: DotNetCoreCLI@2
displayName: '$(Label_DotNet) Run unit tests'
inputs:
command: 'test'
projects: '$(DotNet_SessionSolution)'
publishTestResults: true
testRunTitle: '.NET tests'
arguments: ' --configuration $(DotNet_BuildConfiguration) --logger "console;verbosity=detailed" -p:Version="$(FullVersion)" -p:DefineConstantsEx="CI"'
File renamed without changes.
32 changes: 32 additions & 0 deletions src/CI/azp-js.publish-npm.steps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
steps:
- checkout: none

- download: current
artifact: 'NPM package'
# The destination path is $(Pipeline.Workspace)

- task: NodeTool@0
displayName: 'Use Node.js 20.11.0'
inputs:
versionSpec: '20.11.0'

- task: ExtractFiles@1
displayName: 'Extract Files'
inputs:
archiveFilePatterns: '$(Pipeline.Workspace)/NPM package/*.zip'
destinationFolder: '$(System.DefaultWorkingDirectory)/unzipped'
cleanDestinationFolder: true

- task: Npm@1
displayName: 'Publish NPM (NodeJS)'
inputs:
command: 'publish'
workingDir: '$(System.DefaultWorkingDirectory)/unzipped/dist/prepack/node'
publishEndpoint: PublishNPM

- task: Npm@1
displayName: 'Publish NPM (Web)'
inputs:
command: 'publish'
workingDir: '$(System.DefaultWorkingDirectory)/unzipped/dist/prepack/web'
publishEndpoint: PublishNPM
4 changes: 2 additions & 2 deletions CI/azp-nodejs-dist.yaml → src/CI/azp-nodejs-dist.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
steps:
- task: ArchiveFiles@2
displayName: '$(Label_NodeJS) Archive project directory'
displayName: 'Archive the project directory'
inputs:
archiveType: 'zip'
includeRootFolder: false
rootFolderOrFile: '$(NodeJS_ProjectPath)'
archiveFile: '$(NodeJS_ArchivePath)'

- task: PublishBuildArtifacts@1
displayName: '$(Label_NodeJS) Publish the $(NodeJS_ArtifactName) to the pipeline instance'
displayName: 'Publish the $(NodeJS_ArtifactName) to the pipeline instance'
inputs:
ArtifactName: '$(NodeJS_ArtifactName)'
PathtoPublish: '$(NodeJS_ArchivePath)'
Expand Down
73 changes: 73 additions & 0 deletions src/CI/azp-nodejs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
steps:
- task: UseDotNet@2
inputs:
version: 6.0.x

- task: NodeTool@0
displayName: 'Use Node.js 20.11.0'
inputs:
versionSpec: '20.11.0'

- task: DotNetCoreCLI@2
displayName: 'Build "UiPath.CoreIpc.csproj"'
inputs:
projects: '$(DotNet_MainProjectPath)'
arguments: '--configuration $(NodeJS_DotNet_BuildConfiguration) --framework net6.0 -p:Version="$(FullVersion)"'

- task: DotNetCoreCLI@2
displayName: 'Build "UiPath.CoreIpc.NodeInterop.csproj"'
inputs:
projects: '$(NodeJS_DotNetNodeInteropProject)'
arguments: '--configuration $(NodeJS_DotNet_BuildConfiguration) --framework net6.0 -p:Version="$(FullVersion)"'

- task: CmdLine@2
displayName: 'Set $[FullVersion] in package.json'
condition: succeeded()
inputs:
workingDirectory: '$(NodeJS_ProjectPath)'
script: 'npm version $(FullVersion) --allow-same-version'

- task: Npm@1
displayName: 'Npm Install'
inputs:
command: 'install'
workingDir: $(NodeJS_ProjectPath)
customRegistry: 'useFeed'
customFeed: '424ca518-1f12-456b-a4f6-888197fc15ee'

- task: CmdLine@2
displayName: 'Npm Run Build'
condition: succeeded()
inputs:
workingDirectory: $(NodeJS_ProjectPath)
script: 'npm run build'

- task: CmdLine@2
displayName: 'Npm Test'
condition: succeeded()
inputs:
workingDirectory: $(NodeJS_ProjectPath)
script: 'npm test'

- task: PublishTestResults@2
displayName: 'Publish Web Test Results'
condition: succeededOrFailed()
inputs:
testRunner: JUnit
workingDir: $(NodeJS_ProjectPath)
testResultsFiles: './src/Clients/js/reports/test/web/test-results.xml'

- task: PublishTestResults@2
displayName: 'Publish NodeJS Test Results'
condition: succeededOrFailed()
inputs:
testRunner: JUnit
workingDir: $(NodeJS_ProjectPath)
testRunTitle: '🌲 NodeJs ($(Agent.OS) $(Agent.OSArchitecture))'
testResultsFiles: './src/Clients/js/reports/test/node/test-results.xml'

- task: PublishCodeCoverageResults@1
displayName: 'Publish Code Coverage Results'
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: './src/Clients/js/reports/coverage/merged/cobertura/cobertura-coverage.xml'
Loading