Skip to content

Commit f1713b5

Browse files
Upgrade PowerShell Worker 7.2 to 4.0.2623 (#9032)
* Upgrade PowerShell worker 7.2 to 4.0.2623 * Update release notes * Update tests: Make PowerShell 7.2 the default version
1 parent 2004e78 commit f1713b5

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

release_notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- Fix the duplicate log issue with Java ApplicationInsights agent
1212
- Update Node.js Worker Version to [3.5.2](https://github.com/Azure/azure-functions-nodejs-worker/releases/tag/v3.5.2)
1313
- Making feature flag for worker indexing opt-out instead of opt-in (#8864)
14-
- Update PowerShell Worker 7.2 to 4.0.2496 [Release Note](https://github.com/Azure/azure-functions-powershell-worker/releases/tag/v4.0.2496)
14+
- Update PowerShell Worker 7.2 to 4.0.2623 [Release Note](https://github.com/Azure/azure-functions-powershell-worker/releases/tag/v4.0.2623)
1515

1616

1717
**Release sprint:** Sprint 132

src/WebJobs.Script/WebJobs.Script.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<PackageReference Include="Microsoft.Azure.Functions.JavaWorker" Version="2.8.1" />
6060
<PackageReference Include="Microsoft.Azure.Functions.NodeJsWorker" Version="3.5.2" />
6161
<PackageReference Include="Microsoft.Azure.Functions.PowerShellWorker.PS7.0" Version="4.0.2302" />
62-
<PackageReference Include="Microsoft.Azure.Functions.PowerShellWorker.PS7.2" Version="4.0.2496" />
62+
<PackageReference Include="Microsoft.Azure.Functions.PowerShellWorker.PS7.2" Version="4.0.2623" />
6363
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions" Version="5.0.0-beta.2-10879" />
6464
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Http" Version="3.2.0" />
6565
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Timers.Storage" Version="1.0.0-beta.1" />

test/WebJobs.Script.Tests.Integration/WebHostEndToEnd/SpecializationE2ETests.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,13 +324,14 @@ public async Task StartAsync_SetsCorrectActiveHost_RefreshesLanguageWorkerOption
324324
// We want it to start first, but finish last, so unstick it in a couple seconds.
325325
Task ignore = Task.Delay(3000).ContinueWith(_ => _pauseAfterStandbyHostBuild.Release());
326326

327+
var expectedPowerShellVersion = "7.2";
327328
IWebHost host = builder.Build();
328329
var scriptHostService = host.Services.GetService<WebJobsScriptHostService>();
329330
var channelFactory = host.Services.GetService<IRpcWorkerChannelFactory>();
330331
var workerOptionsPlaceholderMode = host.Services.GetService<IOptions<LanguageWorkerOptions>>();
331332
Assert.Equal(4, workerOptionsPlaceholderMode.Value.WorkerConfigs.Count);
332333
var rpcChannelInPlaceholderMode = (GrpcWorkerChannel)channelFactory.Create("/", "powershell", null, 0, workerOptionsPlaceholderMode.Value.WorkerConfigs);
333-
Assert.Equal("7", rpcChannelInPlaceholderMode.Config.Description.DefaultRuntimeVersion);
334+
Assert.Equal(expectedPowerShellVersion, rpcChannelInPlaceholderMode.Config.Description.DefaultRuntimeVersion);
334335

335336

336337
// TestServer will block in the constructor so pull out the StandbyManager and use it
@@ -346,7 +347,7 @@ public async Task StartAsync_SetsCorrectActiveHost_RefreshesLanguageWorkerOption
346347
_environment.SetEnvironmentVariable(EnvironmentSettingNames.AzureWebsiteContainerReady, "1");
347348
_environment.SetEnvironmentVariable(EnvironmentSettingNames.AzureWebsitePlaceholderMode, "0");
348349
_environment.SetEnvironmentVariable(RpcWorkerConstants.FunctionWorkerRuntimeSettingName, "powershell");
349-
_environment.SetEnvironmentVariable(RpcWorkerConstants.FunctionWorkerRuntimeVersionSettingName, "7");
350+
_environment.SetEnvironmentVariable(RpcWorkerConstants.FunctionWorkerRuntimeVersionSettingName, expectedPowerShellVersion);
350351

351352
var specializeTask = Task.Run(async () => await standbyManager.SpecializeHostAsync());
352353

@@ -358,7 +359,7 @@ public async Task StartAsync_SetsCorrectActiveHost_RefreshesLanguageWorkerOption
358359
var workerOptionsAtJobhostLevel = scriptHostService.Services.GetService<IOptions<LanguageWorkerOptions>>();
359360
Assert.Equal(1, workerOptionsAtJobhostLevel.Value.WorkerConfigs.Count);
360361
var rpcChannelAfterSpecialization = (GrpcWorkerChannel)channelFactory.Create("/", "powershell", null, 0, workerOptionsAtJobhostLevel.Value.WorkerConfigs);
361-
Assert.Equal("7", rpcChannelAfterSpecialization.Config.Description.DefaultRuntimeVersion);
362+
Assert.Equal(expectedPowerShellVersion, rpcChannelAfterSpecialization.Config.Description.DefaultRuntimeVersion);
362363
}
363364

364365
/// <summary>

test/WebJobs.Script.Tests/Workers/Rpc/RpcWorkerConfigFactoryTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public void DefaultWorkerConfigs_Overrides_DefaultWorkerRuntimeVersion_AppSettin
134134
Assert.NotNull(pythonWorkerConfig);
135135
Assert.NotNull(powershellWorkerConfig);
136136
Assert.Equal("3.8", pythonWorkerConfig.Description.DefaultRuntimeVersion);
137-
Assert.Equal("7", powershellWorkerConfig.Description.DefaultRuntimeVersion);
137+
Assert.Equal("7.2", powershellWorkerConfig.Description.DefaultRuntimeVersion);
138138
}
139139
}
140140

0 commit comments

Comments
 (0)