Граф коммитов

430 Коммитов

Автор SHA1 Сообщение Дата
Anatoli Beliaev 339025c2a1
[Durable Functions] Enable Durable Functions by default (#457) 2020-04-28 23:49:19 -07:00
Anatoli Beliaev 8c2ff063ef
Update DependencyDownloadInProgress message (#456) 2020-04-27 11:19:17 -07:00
Anatoli Beliaev d4032df7bb
Improve handling usage errors (#450)
Throw exceptions with user-friendly messages when trying to invoke a non-existing or an incorrect activity function
2020-04-16 20:30:39 -07:00
Anatoli Beliaev 7964ef5685
Add a link to github.com/anthonychu/powershell-durable-preview 2020-04-10 14:11:15 -07:00
Anatoli Beliaev 7307909335
Upgrade .NET SDK to 3.1.201 (#447)
* Fix .NET SDK version comparison

* Upgrade .NET SDK to 3.1.201

* Parse out version core
2020-04-09 10:41:59 -07:00
Anatoli Beliaev 85b9bb256b
[Durable Functions] Enable Durable Functions v1 (#445)
* Re-enable Durable v1

* Update the instructions with a Durable v1 note
2020-04-08 13:27:10 -07:00
Anatoli Beliaev 2a1f8b1429
Fix a link in durable-experimental-instructions.md 2020-04-02 11:35:08 -07:00
Anatoli Beliaev 02822eaa06
Upgrade grpc references (#442) 2020-03-25 14:29:09 -07:00
Anatoli Beliaev 2b04f5b349
Handle FunctionEnvironmentReloadRequest (#441) 2020-03-24 09:13:05 -07:00
Anatoli Beliaev 28a06c3920
[Durable Functions] Migrate to Durable Functions v2 (#431)
* Replace orchestrationClient binding type with durableClient

* Replace orchestrationClient with durableClient in the code

* Upgrade DurableTask to 2.0.0

* Update the note about Durable Functions v2 support
2020-03-18 19:05:29 -07:00
Anatoli Beliaev 40a245a322
Update durable-experimental-instructions.md (#438)
- Add a reference to JustinGrote's instructions
- Improve PS worker download instructions
2020-03-18 19:02:25 -07:00
Anatoli Beliaev 2361fb2dac
Fix the PowerShellWorker nupkg link (#435) 2020-03-17 15:50:10 -07:00
Anatoli Beliaev 1e1580f39a
Update durable-experimental-instructions.md (#429)
Add PowerShell worker update instructions
2020-03-14 23:22:38 -07:00
Anatoli Beliaev 78a36d84dd
[Durable Functions] Add fan-out/fan-in pattern support (#427) 2020-03-13 23:48:35 -07:00
Anatoli Beliaev d08886b93a
Add AZUREPS_HOST_ENVIRONMENT env variable (#428) 2020-03-13 16:08:46 -07:00
Anatoli Beliaev 9651c98fbe
Unpin extension versions in the E2E test app (#425) 2020-03-12 12:53:36 -07:00
Anatoli Beliaev b3e8e58158
Use int.MaxValue for gRPC message size limit (#424)
Use int.MaxValue for gRPC message size limit instead of grpcMaxMessageLength command line argument
2020-03-09 15:09:56 -07:00
Anatoli Beliaev 009c0d2b72 Add other branches build status 2020-03-06 23:52:18 -08:00
Anatoli Beliaev d9ef200876
Fix E2E tests (#420) 2020-03-06 23:08:15 -08:00
Anatoli Beliaev b6037ecc4f
Extract durable code to a separate folder, add unit tests (#413) 2020-03-05 18:00:01 -08:00
Anatoli Beliaev c4ee61eaac
Upgrade to PowerShell v7.0.0 (#416) 2020-03-04 12:54:29 -08:00
Anatoli Beliaev 5eb590d62b
Fix handling HTTP responses without a body (#412) 2020-02-27 21:29:46 -08:00
Anatoli Beliaev 7ede63cfbf
Fix writing to streams from profile.ps1 (#411)
* Refactor PowerShellManagerPool to make it more testable

* Store _createLogger instead of _msgStream in PowerShellManagerPool
* Pass Func<ILogger> to PowerShellManagerPool ctor
* Pass requestId and invocationId instead of StreamingMessage to CheckoutIdleWorker
* Pass functionName to CheckoutIdleWorker
* Pass outputBindings instead of AzFunctionInfo to RegisterFunctionMetadata
* Pass outputBindings to CheckoutIdleWorker
* Don't pass AzFunctionInfo to CheckoutIdleWorker

* Add LoggerContextIsSet test

* Set invocation context on the logger before invoking profile.ps1

* Improve the message on errors reported by profile

* Get rid of 'Import-Module profile' output
2020-02-24 15:02:33 -08:00
Anatoli Beliaev f2c2c97e5f
Upgrade to PowerShell v7.0.0-rc.3 (#410)
* Upgrade Microsoft.PowerShell.SDK to 7.0.0-rc.3

* Update bundled module versions to match PS7.rc3
(see https://github.com/PowerShell/PowerShell/blob/v7.0.0-rc.3/src/Modules/PSGalleryModules.csproj)
2020-02-24 12:19:13 -08:00
Anatoli Beliaev 08db712c6c
Tolerate read-only managed dependencies files (#406)
Tolerate read-only managed dependencies files:
- When updating the heartbeat (the timestamp on the .used file under a snapshot) fails because the file is read-only, log a warning but proceed.
- Make sure the worker does not purge the currently used snapshot even if the heartbeat has not been updated for long time.
2020-02-19 11:32:37 -08:00
Francisco Gamino 1b9acd38e0
Update wording and severity for the 'Downloading Managed Dependencies message' (#402) 2020-02-14 14:00:34 -08:00
Anatoli Beliaev deb02a8a30
Add a note about FUNCTIONS_WORKER_RUNTIME_VERSION
Add a note about FUNCTIONS_WORKER_RUNTIME_VERSION to the local deployment instructions
2020-02-14 10:36:26 -08:00
Anatoli Beliaev a34035a6fe
Update the local build instructions to match the new directory structure (#399) 2020-02-11 10:58:58 -08:00
Anatoli Beliaev 12f9ddc0aa
Use Get-Error instead of custom error formatting logic (#395)
* Relax ErrorRecordFormatter unit test expectationsEnsure the required data is there, but don't insist on formatting specifics.

* Replace custom error formatting with Get-Error
2020-01-31 15:17:32 -08:00
Anatoli Beliaev 317ecb18ba
Fix sanitizeRuntimeVersionRegex entry in worker config (#394) 2020-01-31 15:15:33 -08:00
Anatoli Beliaev 27da9e621f
Log PowerShell version (#396) 2020-01-31 15:14:46 -08:00
Anatoli Beliaev 58745fae81
Move PS7 worker to a version-specific subfolder (#388)
* Update NuGet files target path

* Update worker.config.json to point to the version-specific folder

* Deploy worker.config.json to the root version-independent folder

* Follow the new folder structure in E2E test deployment
2020-01-28 12:54:46 -08:00
Anatoli Beliaev 228ab69d4a
Make E2E tests run on Functions V3 runtime (#387)
* Use Functions CLI V3 in E2E tests

* Make E2E test app depend on DurableTask v1.8.2 (to stay on Durable v1)

* Set AzureWebJobsFeatureFlags to AllowSynchronousIO for the E2E test app
2020-01-28 12:25:17 -08:00
Anatoli Beliaev 06b09646a8
Migrate PowerShell worker to PowerShell 7 (#383)
* Upgrade Microsoft.PowerShell.SDK to 7.0.0-rc.2

* Upgrade to netcoreapp3.1

* Update bundled module versions to match PS7.rc2

(see https://github.com/PowerShell/PowerShell/blob/release/v7.0.0-rc.2/src/Modules/PSGalleryModules.csproj)

* Switch to the PS6 error formatting style

* Update PowerShell, Functions runtime, and .NET SDK version references in README

* Update .NET Core SDK references in helper.psm1 to 3.1

* Switch to Visual Studio 2019
2020-01-21 21:54:17 -08:00
Anatoli Beliaev acc95c7776
Return dev branch build (#382) 2020-01-21 15:40:11 -08:00
Anatoli Beliaev 51a567a03c
v3/ps7 branch setup (#381)
* Set up v3.x/ps7 branch build

* Append ".PS7" to the NuGet package id
2020-01-21 10:34:56 -08:00
Anatoli Beliaev e56e6aaa66
Change PS Worker version to 3.0 (#378) 2020-01-16 11:04:13 -08:00
Anatoli Beliaev dadd022617
[Durable Functions] Add E2E test (#372) 2020-01-06 10:22:13 -08:00
Anatoli Beliaev 0f672be174
Add AzureWebJobsStorage instructions
Add AzureWebJobsStorage instructions to durable-experimental-instructions.md
2019-12-17 15:47:15 -08:00
Anatoli Beliaev 6faa166027
[Durable Functions] Add instructions for trying out (#369)
Add instructions for trying out experimental Durable PowerShell functions
2019-12-11 15:22:53 -08:00
Anatoli Beliaev 676c3f93c3
[Durable Functions] Clean up Durable programming model (#366)
* Clean up Durable programming model

- Expect `orchestrationClient` to be an input binding instead of an output binding, for consistency with other languages.
- Rename `Invoke-ActivityFunctionAsync` to `Invoke-ActivityFunction`.
- Don't require orchestration client data to be explicitly passed as a parameter.
- Tolerate different casing of `orchestrationClient` in function.json.
2019-12-05 16:16:37 -08:00
Anatoli Beliaev a2261fb563
Move to .NET Core 2.1 SDK (#367) 2019-12-04 16:55:34 -08:00
Anatoli Beliaev a3811aa818
Log profile.ps1 invocation time (#361)
Log profile.ps1 invocation time
2019-11-26 18:03:19 -08:00
Anatoli Beliaev 330481ebbc
[Durable Functions] Basic "Function Chaining" implementation (#358)
Basic "Function Chaining" implementation
2019-10-29 13:54:17 -07:00
Anatoli Beliaev 91cfab419d
Improve dependency management logs (#354)
Improve dependency management logs:
- For every dependency snapshot installation start, success, or failure event, log the installation mode as well ("Required" vs. "Optional").
- Log AcceptableFunctionAppDependenciesAlreadyInstalled just once on worker start, no need to repeat it later.
2019-10-11 11:28:03 -07:00
Anatoli Beliaev 4f48c19c87
Log CommandNotFoundException raised by function code (#355)
Trace "Command not found" events
2019-10-11 11:18:32 -07:00
Anatoli Beliaev 0a945adda7
Fixing error CS1738 (#352)
"error CS1738: Named argument specifications must appear after all fixed arguments have been specified. Please use language version 7.2 or greater to allow non-trailing named arguments."
2019-10-07 13:28:59 -07:00
Anatoli Beliaev c6613909f5
Don't remove the initial snapshot (#351)
* Pass removeIfEquivalentToLatest to InstallSnapshot

* Don't check or remove equivalent snapshots if not required

* Extract PromoteToInstalledOrRemove method

* Add comments for removeIfEquivalentToLatest
2019-10-07 10:49:17 -07:00
Anatoli Beliaev 1997c6d468
Log all the modules and versions in the promoted snapshot (#344)
Log all the modules and versions in the promoted snapshot
2019-09-30 22:54:07 -07:00
Anatoli Beliaev 8cab08b144
Apply the grpcMaxMessageLength setting received from the host to configure the gRPC channel (#346) 2019-09-27 19:19:58 -07:00