Skip to content

Fix case-insensitive Service Fabric durability parsing - #30015

Open
Aditya Pujara (a0x1ab) with Copilot wants to merge 5 commits into
mainfrom
copilot/update-azservicefabricdurability-case-sensitivity
Open

Fix case-insensitive Service Fabric durability parsing#30015
Aditya Pujara (a0x1ab) with Copilot wants to merge 5 commits into
mainfrom
copilot/update-azservicefabricdurability-case-sensitivity

Conversation

Copilot AI commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Update-AzServiceFabricDurability failed before ShouldProcess when existing node type or VMSS extension durability values used lowercase casing (for example, silver).

  • Parsing
    • Parse durability values case-insensitively.
    • Return a clear error with valid values for malformed stored properties.
Enum.TryParse(durabilityLevel, ignoreCase: true, out parsedDurabilityLevel)
  • Shared behavior

    • Route Service Fabric node scaling durability parsing through the same helper.
  • Coverage

    • Add regression coverage for lowercase Bronze, Silver, and Gold values from node type and VMSS extension settings.

Copilot AI lite review requested due to automatic review settings August 14, 2026 17:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@azure-pipelines

Copy link
Copy Markdown
Contributor
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@azure-pipelines

Copy link
Copy Markdown
Contributor
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Co-authored-by: a0x1ab <59631311+a0x1ab@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 14, 2026 17:14
Copilot AI changed the title [WIP] Fix Update-AzServiceFabricDurability for lowercase durability values Fix case-insensitive Service Fabric durability parsing Aug 14, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • src/ServiceFabric/ServiceFabric/Properties/Resources.Designer.cs: Generated file

Comment on lines +29 to +34
private sealed class TestServiceFabricClusterCmdlet : ServiceFabricClusterCmdlet
{
public DurabilityLevel GetNodeTypeDurabilityLevel(string durabilityLevel)
{
return GetDurabilityLevel(durabilityLevel);
}
@azure-client-tools-agent

Copy link
Copy Markdown

Live test results — TestFx Record (changed test files only)

FAIL (exit )

Test projects: src/ServiceFabric/ServiceFabric.Test
Filter: FullyQualifiedName~TestServiceFabric
PR head ref: copilot/update-azservicefabricdurability-case-sensitivity
PR head sha: 27ee459385dcf04302d32f2d72acde8cc6914574
PR base ref: main

Changed test files run
src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestServiceFabric.cs

Workflow run: https://github.com/Azure/issue-sentinel/actions/runs/31827071365

Last 80 lines of dotnet test output
(no log captured)

Posted by agent-assist PowerShell live-test workflow.

@azure-client-tools-agent azure-client-tools-agent Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Live-test review — build failure

The TestFx (Record) live test for the changed test file failed during the build step, before any test could run.

Test project: src/ServiceFabric/ServiceFabric.Test
Changed test file: src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestServiceFabric.cs
Filter: FullyQualifiedName~TestServiceFabric

Build errors (6 total):

src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestServiceFabric.cs(31,20): error CS0246: The type or namespace name 'DurabilityLevel' could not be found (are you missing a using directive or an assembly reference?)
src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestServiceFabric.cs(36,20): error CS0246: The type or namespace name 'DurabilityLevel' could not be found (are you missing a using directive or an assembly reference?)
src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestServiceFabric.cs(89,31): error CS0103: The name 'DurabilityLevel' does not exist in the current context
src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestServiceFabric.cs(90,31): error CS0103: The name 'DurabilityLevel' does not exist in the current context
src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestServiceFabric.cs(91,29): error CS0103: The name 'DurabilityLevel' does not exist in the current context
src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestServiceFabric.cs(92,86): error CS0246: The type or namespace name 'DurabilityLevel' could not be found (are you missing a using directive or an assembly reference?)

The test file references a DurabilityLevel type/enum that either doesn't exist in the referenced SDK/namespace or is missing a using directive. Since this PR's purpose is "Fix case-insensitive Service Fabric durability parsing," please:

  1. Confirm the correct fully-qualified type/enum for durability level values in the Service Fabric management SDK used by this module (it may need a using Microsoft.Azure.Management.ServiceFabric.Models; or similar, or the enum name may have changed/been renamed).
  2. Update TestServiceFabric.cs (and any production code under src/ServiceFabric/ServiceFabric.PowerShell.Cmdlets it depends on) so the project builds cleanly.
  3. Push the fix so CI/live-test can re-run.

Live-test run: https://github.com/Azure/issue-sentinel/actions/runs/31827071365

Regular CI checks on this PR are currently green, but the live test build failure must be resolved before this can be merged.


Posted by agent-assist (autonomous bug-fix pipeline).

@azure-client-tools-agent azure-client-tools-agent Bot added the azure-client-tools-agent Pull request commented on or reviewed by Azure Client Tools Agent label Aug 14, 2026
@azure-client-tools-agent

Copy link
Copy Markdown

Started a Copilot task using claude-sonnet-4.6 for the automated review at #30015 (review): https://github.com/Azure/azure-powershell/tasks/f60b419f-56b3-4c5a-a04d-d09ca16261af


Posted by agent-assist (autonomous bug-fix pipeline).

…Fabric.cs

Co-authored-by: a0x1ab <59631311+a0x1ab@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • src/ServiceFabric/ServiceFabric/Properties/Resources.Designer.cs: Generated file
Suppressed comments (2)

src/ServiceFabric/ServiceFabric/Commands/ServiceFabricClusterCmdlet.cs:134

  • Enum.TryParse will return true for numeric strings (e.g., "1" or "999"), producing enum values that are not actually defined (or bypassing the intended "valid values" check). That means malformed stored durability properties may still slip through instead of throwing the new actionable error. Consider additionally validating that the parsed value is a defined enum name (and trimming input) before returning it.
        protected DurabilityLevel GetDurabilityLevel(string durabilityLevel)
        {
            DurabilityLevel parsedDurabilityLevel;
            if (Enum.TryParse(durabilityLevel, true, out parsedDurabilityLevel))
            {

src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestServiceFabric.cs:110

  • The negative-path test only exercises a non-numeric invalid value ("invalid"). Since Enum.TryParse also accepts numeric strings, add coverage for numeric/undefined inputs (e.g., "1" and "999") to ensure malformed stored durability values reliably trigger the actionable error instead of being interpreted as enum integers.
        [Fact]
        public void GetDurabilityLevelReportsInvalidValue()
        {
            var cmdlet = new TestServiceFabricClusterCmdlet();

@azure-client-tools-agent

Copy link
Copy Markdown

Live test results — TestFx Record (changed test files only)

FAIL (exit 1)

Test projects: src/ServiceFabric/ServiceFabric.Test
Filter: FullyQualifiedName~TestServiceFabric
PR head ref: copilot/update-azservicefabricdurability-case-sensitivity
PR head sha: 9630dadcde8e8d522bc0a795efc7af0a7525dead
PR base ref: main

Changed test files run
src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestServiceFabric.cs

Workflow run: https://github.com/Azure/issue-sentinel/actions/runs/31831639663

Last 80 lines of dotnet test output
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/libmsalruntime: cannot open shared object file: No such file or directory
  See https://aka.ms/msal-net-wam#troubleshooting
  ---> System.DllNotFoundException (0x80131524): Unable to load shared library 'msalruntime' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: 
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/runtimes/linux-x64/native/msalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/msalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/msalruntime.so: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/msalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/msalruntime.so: cannot open shared object file: No such file or directory
 libwebkit2gtk-4.1.so.0: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/libmsalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/libmsalruntime.so: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/libmsalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/libmsalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/runtimes/linux-x64/native/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/msalruntime: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/libmsalruntime: cannot open shared object file: No such file or directory
 
 
 [Common.Authentication]: Received exception SharedTokenCacheCredential authentication failed: Unable to load shared library 'msalruntime' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: 
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/runtimes/linux-x64/native/msalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/msalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/msalruntime.so: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/msalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/msalruntime.so: cannot open shared object file: No such file or directory
 libwebkit2gtk-4.1.so.0: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/libmsalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/libmsalruntime.so: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/libmsalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/libmsalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/runtimes/linux-x64/native/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/msalruntime: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/libmsalruntime: cannot open shared object file: No such file or directory
  See https://aka.ms/msal-net-wam#troubleshooting, while authenticating.
 
 19:09:15 - [ConfigManager] Got nothing from [EnableErrorRecordsPersistence], Module = [Az.ServiceFabric], Cmdlet = [Get-AzServiceFabricCluster]. Returning default value [False].
 
 ---------------------------------------------------------------
 
 
 ---------------------------------------------------------------
 
 ERROR STREAM
 
 ---------------------------------------------------------------
 
 PowerShell Error Record: The specified module '/home/runner/work/issue-sentinel/issue-sentinel/azure-powershell/artifacts/Debug/Az.Accounts/Az.Accounts.psd1' was not loaded because no valid module file was found in any module directory.
 Exception:System.IO.FileNotFoundException: The specified module '/home/runner/work/issue-sentinel/issue-sentinel/azure-powershell/artifacts/Debug/Az.Accounts/Az.Accounts.psd1' was not loaded because no valid module file was found in any module directory.
 Details:
 Script Stack Trace: at <ScriptBlock>, <No file>: line 1
 : Target: /home/runner/work/issue-sentinel/issue-sentinel/azure-powershell/artifacts/Debug/Az.Accounts/Az.Accounts.psd1
 
 
 ---------------------------------------------------------------
 
 


Results File: /home/runner/work/issue-sentinel/issue-sentinel/test-output/ServiceFabric.Test.trx

Failed!  - Failed:    14, Passed:     6, Skipped:     0, Total:    20, Duration: 9 s - Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric.Test.dll (net8.0)

Posted by agent-assist PowerShell live-test workflow.

@azure-client-tools-agent azure-client-tools-agent Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated Review — Live Test Failed

The dispatched live test (TestFx Record, PowerShell live-test workflow) for
this PR's changed test file failed on head SHA 9630dadcde8e8d522bc0a795efc7af0a7525dead.

Test project: src/ServiceFabric/ServiceFabric.Test
Filter: FullyQualifiedName~TestServiceFabric
Changed test file: src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestServiceFabric.cs
Result: ❌ FAIL (exit code 1)
Run: https://github.com/Azure/issue-sentinel/actions/runs/31831639663

Relevant error from the test output:

/home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/libmsalruntime: cannot open shared object file: No such file or directory
    at Microsoft.Azure.Commands.ServiceFabric.Commands.ServiceFabricClusterCmdlet.GetCurrentCluster() in src/ServiceFabric/ServiceFabric/Commands/ServiceFabricClusterCmdlet.cs:line 88
    at Microsoft.Azure.Commands.ServiceFabric.Commands.GetAzureRmServiceFabricCluster.ExecuteCmdlet() in src/ServiceFabric/ServiceFabric/Commands/GetAzureRmServiceFabricClusterResouce.cs:line 54
Script Stack Trace: at WaitForClusterReadyState, .../ScenarioTests/Common.ps1: line 181
at WaitForClusterReadyStateIfRecord, .../ScenarioTests/Common.ps1: line 170
at Test-AddAzureRmServiceFabricNodeType, .../ScenarioTests/TestServiceFabric.ps1: line 120

The failing scenario is Test-AddAzureRmServiceFabricNodeType, which calls
GetAzureRmServiceFabricClusterServiceFabricClusterCmdlet.GetCurrentCluster().
The exception is cannot open shared object file for
libmsalruntime, which surfaces from MSAL's native interop layer during
authentication in the test cmdlet path — this may point at an MSAL/auth
dependency resolution issue triggered by this PR's change, or at a native
library not being restored/copied to the test output directory. Please
investigate why libmsalruntime isn't being found from the test bin output at
runtime for this scenario, verify the fix for AzServiceFabricDurability case
sensitivity doesn't affect MSAL/auth dependency loading, and push a fix (or
confirm this is a pre-existing environment issue and adjust/re-run
accordingly). CI checks on the PR itself are all green; only this live test
step is failing.


Posted by agent-assist (autonomous bug-fix pipeline).

@azure-client-tools-agent

Copy link
Copy Markdown

Started a Copilot task using claude-sonnet-4.6 for the automated review at #30015 (review): https://github.com/Azure/azure-powershell/tasks/e503ffd0-b70a-420d-b68f-75682c761978


Posted by agent-assist (autonomous bug-fix pipeline).

…check and numeric test coverage

Co-authored-by: a0x1ab <59631311+a0x1ab@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • src/ServiceFabric/ServiceFabric/Properties/Resources.Designer.cs: Generated file

Comment on lines +132 to +137
DurabilityLevel parsedDurabilityLevel;
if (Enum.TryParse(durabilityLevel?.Trim(), true, out parsedDurabilityLevel) &&
Enum.IsDefined(typeof(DurabilityLevel), parsedDurabilityLevel))
{
return parsedDurabilityLevel;
}
@azure-client-tools-agent

Copy link
Copy Markdown

Live test results — TestFx Record (changed test files only)

FAIL (exit 1)

Test projects: src/ServiceFabric/ServiceFabric.Test
Filter: FullyQualifiedName~TestServiceFabric
PR head ref: copilot/update-azservicefabricdurability-case-sensitivity
PR head sha: 32e58e7d142ea3c90c99f5f6a8fa5e4ee58cbd50
PR base ref: main

Changed test files run
src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestServiceFabric.cs

Workflow run: https://github.com/Azure/issue-sentinel/actions/runs/31835478213

Last 80 lines of dotnet test output
 libwebkit2gtk-4.1.so.0: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/libmsalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/libmsalruntime.so: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/libmsalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/libmsalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/runtimes/linux-x64/native/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/msalruntime: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/libmsalruntime: cannot open shared object file: No such file or directory
 
 
 [Common.Authentication]: Received exception SharedTokenCacheCredential authentication failed: Unable to load shared library 'msalruntime' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: 
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/runtimes/linux-x64/native/msalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/msalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/msalruntime.so: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/msalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/msalruntime.so: cannot open shared object file: No such file or directory
 libwebkit2gtk-4.1.so.0: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/libmsalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/libmsalruntime.so: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/libmsalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/libmsalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/runtimes/linux-x64/native/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/msalruntime: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/libmsalruntime: cannot open shared object file: No such file or directory
  See https://aka.ms/msal-net-wam#troubleshooting, while authenticating.
 
 19:59:54 - [ConfigManager] Got nothing from [EnableErrorRecordsPersistence], Module = [Az.ServiceFabric], Cmdlet = [Get-AzServiceFabricCluster]. Returning default value [False].
 
 ---------------------------------------------------------------
 
 
 ---------------------------------------------------------------
 
 ERROR STREAM
 
 ---------------------------------------------------------------
 
 PowerShell Error Record: The specified module '/home/runner/work/issue-sentinel/issue-sentinel/azure-powershell/artifacts/Debug/Az.Accounts/Az.Accounts.psd1' was not loaded because no valid module file was found in any module directory.
 Exception:System.IO.FileNotFoundException: The specified module '/home/runner/work/issue-sentinel/issue-sentinel/azure-powershell/artifacts/Debug/Az.Accounts/Az.Accounts.psd1' was not loaded because no valid module file was found in any module directory.
 Details:
 Script Stack Trace: at <ScriptBlock>, <No file>: line 1
 : Target: /home/runner/work/issue-sentinel/issue-sentinel/azure-powershell/artifacts/Debug/Az.Accounts/Az.Accounts.psd1
 
 
 ---------------------------------------------------------------
 
 
 ---------------------------------------------------------------
 
 WARNING STREAM
 
 ---------------------------------------------------------------
 
 You're using Az version 15.6.1. The latest version of Az is 16.2.0. Upgrade your Az modules using the following commands:
   Update-PSResource Az -WhatIf    -- Simulate updating your Az modules.
   Update-PSResource Az            -- Update your Az modules.
 There will be breaking changes from 15.6.1 to 16.2.0. Open https://go.microsoft.com/fwlink/?linkid=2241373 and check the details.
 
 ---------------------------------------------------------------
 
 


Results File: /home/runner/work/issue-sentinel/issue-sentinel/test-output/ServiceFabric.Test.trx

Failed!  - Failed:    16, Passed:     7, Skipped:     0, Total:    23, Duration: 10 s - Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric.Test.dll (net8.0)

Posted by agent-assist PowerShell live-test workflow.

@azure-client-tools-agent azure-client-tools-agent Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated CI + Live-Test Review

GitHub CI checks: 2/2 passed ✅

Live test (TestFx Record, changed test files only):FAIL (exit 1)

The dotnet test run fails during test setup/authentication with:

Unable to load shared library 'msalruntime' or one of its dependencies ...
System.DllNotFoundException: msalruntime.so: cannot open shared object file: No such file or directory

This same failure occurred on the previous run as well
(https://github.com/Azure/issue-sentinel/actions/runs/31831639663), so it is
reproducible for this branch/test project, not a one-off flake.

Please investigate whether:

  1. The TestServiceFabric scenario test (or its ServiceFabric.Test project
    setup/fixtures) needs an update to work with the current MSAL/native
    dependency setup used by the test harness, or
  2. The PR's change to case-insensitive durability parsing needs an
    accompanying update to the test recordings/fixtures so the affected test
    can run and pass in this environment.

Please push a fix so the TestServiceFabric tests in
src/ServiceFabric/ServiceFabric.Test pass under dotnet test.


Posted by agent-assist (autonomous bug-fix pipeline).

@azure-client-tools-agent

Copy link
Copy Markdown

Started a Copilot task using claude-sonnet-4.6 for the automated review at #30015 (review): https://github.com/Azure/azure-powershell/tasks/4ae84dbb-5898-473d-8803-0c58c2bcceb5


Posted by agent-assist (autonomous bug-fix pipeline).

… numeric string rejection

Co-authored-by: a0x1ab <59631311+a0x1ab@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 7 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • src/ServiceFabric/ServiceFabric/Properties/Resources.Designer.cs: Generated file
Suppressed comments (2)

src/ServiceFabric/ServiceFabric/ChangeLog.md:21

  • Changelog entry wording is awkward/redundant: “lowercase casing”. Consider simplifying to “stored in lowercase” to improve readability for users.
* Fixed `Update-AzServiceFabricDurability` to accept durability values stored with lowercase casing.

src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestServiceFabric.cs:22

  • Unused using Microsoft.Azure.Commands.ServiceFabric.Models; directive; this will produce CS8019 (and may fail the build if warnings are treated as errors). Remove it since nothing in this file references Microsoft.Azure.Commands.ServiceFabric.Models.
using Microsoft.Azure.Commands.ServiceFabric.Commands;
using Microsoft.Azure.Commands.ServiceFabric.Common;
using Microsoft.Azure.Commands.ServiceFabric.Models;
using Microsoft.WindowsAzure.Commands.ScenarioTest;
using Xunit;

@azure-client-tools-agent

Copy link
Copy Markdown

Live test results — TestFx Record (changed test files only)

FAIL (exit 1)

Test projects: src/ServiceFabric/ServiceFabric.Test
Filter: FullyQualifiedName~DurabilityLevelTests|FullyQualifiedName~TestServiceFabric
PR head ref: copilot/update-azservicefabricdurability-case-sensitivity
PR head sha: 2adad843dab33102797aa83abf3b26b089b3e87c
PR base ref: main

Changed test files run
src/ServiceFabric/ServiceFabric.Test/ScenarioTests/DurabilityLevelTests.cs
src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestServiceFabric.cs

Workflow run: https://github.com/Azure/issue-sentinel/actions/runs/31838719976

Last 80 lines of dotnet test output
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/libmsalruntime: cannot open shared object file: No such file or directory
  See https://aka.ms/msal-net-wam#troubleshooting
  ---> System.DllNotFoundException (0x80131524): Unable to load shared library 'msalruntime' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: 
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/runtimes/linux-x64/native/msalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/msalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/msalruntime.so: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/msalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/msalruntime.so: cannot open shared object file: No such file or directory
 libwebkit2gtk-4.1.so.0: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/libmsalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/libmsalruntime.so: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/libmsalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/libmsalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/runtimes/linux-x64/native/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/msalruntime: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/libmsalruntime: cannot open shared object file: No such file or directory
 
 
 [Common.Authentication]: Received exception SharedTokenCacheCredential authentication failed: Unable to load shared library 'msalruntime' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: 
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/runtimes/linux-x64/native/msalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/msalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/msalruntime.so: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/msalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/msalruntime.so: cannot open shared object file: No such file or directory
 libwebkit2gtk-4.1.so.0: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/libmsalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/libmsalruntime.so: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/libmsalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/libmsalruntime.so: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/runtimes/linux-x64/native/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/msalruntime: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/msalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.powershell.native/7.4.0/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/runtime.linux-x64.runtime.native.system.io.ports/8.0.0/runtimes/linux-x64/native/libmsalruntime: cannot open shared object file: No such file or directory
 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.30/libmsalruntime: cannot open shared object file: No such file or directory
 /home/runner/.nuget/packages/microsoft.identity.client.nativeinterop/0.20.4/lib/netstandard2.0/libmsalruntime: cannot open shared object file: No such file or directory
  See https://aka.ms/msal-net-wam#troubleshooting, while authenticating.
 
 20:41:23 - [ConfigManager] Got nothing from [EnableErrorRecordsPersistence], Module = [Az.ServiceFabric], Cmdlet = [Get-AzServiceFabricCluster]. Returning default value [False].
 
 ---------------------------------------------------------------
 
 
 ---------------------------------------------------------------
 
 ERROR STREAM
 
 ---------------------------------------------------------------
 
 PowerShell Error Record: The specified module '/home/runner/work/issue-sentinel/issue-sentinel/azure-powershell/artifacts/Debug/Az.Accounts/Az.Accounts.psd1' was not loaded because no valid module file was found in any module directory.
 Exception:System.IO.FileNotFoundException: The specified module '/home/runner/work/issue-sentinel/issue-sentinel/azure-powershell/artifacts/Debug/Az.Accounts/Az.Accounts.psd1' was not loaded because no valid module file was found in any module directory.
 Details:
 Script Stack Trace: at <ScriptBlock>, <No file>: line 1
 : Target: /home/runner/work/issue-sentinel/issue-sentinel/azure-powershell/artifacts/Debug/Az.Accounts/Az.Accounts.psd1
 
 
 ---------------------------------------------------------------
 
 


Results File: /home/runner/work/issue-sentinel/issue-sentinel/test-output/ServiceFabric.Test.trx

Failed!  - Failed:    14, Passed:     9, Skipped:     0, Total:    23, Duration: 6 s - Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric.Test.dll (net8.0)

Posted by agent-assist PowerShell live-test workflow.

@azure-client-tools-agent azure-client-tools-agent Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI / Live Test Summary — PR #30015

Live test (TestFx Record, src/ServiceFabric/ServiceFabric.Test):FAIL (exit code 1)

  • Filter: FullyQualifiedName~DurabilityLevelTests|FullyQualifiedName~TestServiceFabric
  • Changed test files run: DurabilityLevelTests.cs, TestServiceFabric.cs
  • Workflow run: https://github.com/Azure/issue-sentinel/actions/runs/31838719976
  • A detailed results comment (with the last 80 lines of dotnet test output) was already posted to this PR by the live-test workflow.

Required GitHub checks: ✅ all passed (0 failed, 0 pending)

The live test run for the Service Fabric durability tests is failing on this PR's head commit
(2adad843dab33102797aa83abf3b26b089b3e87c). Please inspect the failing DurabilityLevelTests/
TestServiceFabric assertions in src/ServiceFabric/ServiceFabric.Test, using the failure output in
the live-test workflow's comment on this PR, and adjust the fix (or the recorded test session/mock
data) so the case-insensitive durability parsing change makes these tests pass. Push a new commit
once fixed so the live test can be re-run on the updated head.


Posted by agent-assist (autonomous bug-fix pipeline).

@azure-client-tools-agent

Copy link
Copy Markdown

Started a Copilot task using claude-sonnet-4.6 for the automated review at #30015 (review): https://github.com/Azure/azure-powershell/tasks/020132e8-a3ec-4ee0-b445-6143a45b9560


Posted by agent-assist (autonomous bug-fix pipeline).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

azure-client-tools-agent Pull request commented on or reviewed by Azure Client Tools Agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Az.ServiceFabric] Update-AzServiceFabricDurability fails when existing durability value is lowercase

3 participants