Skip to content

[BUG] - Azure integration tests fail every time they're run manually from a branch other than mainΒ #2893

Closed
@marcelovilla

Description

Describe the bug

We have integration tests for each supported cloud provider, including Azure, that are run on a schedule every week off of main but that can also be triggered manually from any given branch.

The tests running on a schedule are working fine. For example, see:

However, when run manually from another branch, they seem to fail with the following error when trying to authenticate:

Run azure/login@v2
Running Azure CLI Login.
/usr/bin/az cloud set -n azurecloud
Done setting cloud: "azurecloud"
Federated token details:
 issuer - https://token.actions.githubusercontent.com/
 subject claim - repo:nebari-dev/nebari:ref:refs/heads/azure-policy-addon
Attempting Azure CLI login by using OIDC...
Error: AADSTS700213: No matching federated identity record found for presented assertion subject 'repo:nebari-dev/nebari:ref:refs/heads/azure-policy-addon'. Check your federated identity credential Subject, Audience and Issuer against the presented assertion. https://learn.microsoft.com/entra/workload-id/workload-identity-federation Trace ID: 873ea219-d631-4da8-8b09-6002514c7601 Correlation ID: 81b094c4-9c99-4a16-8d30-5743ae8143f2 Timestamp: 2024-12-26 16:54:59Z

Error: Interactive authentication is needed. Please run:
az login

Error: Login failed with Error: The process '/usr/bin/az' failed with exit code 1. Double check if the 'auth-type' is correct. Refer to https://github.com/Azure/login#readme for more information.

See, for example:

All of these were run from different branches than main and do not have any evident changes related to Azure authentication

Expected behavior

Tests should succeed, at least during the Azure login step.

OS and architecture in which you are running Nebari

GHA

How to Reproduce the problem?

Run the Azure deployment GHA workflow manually from a branch other than main.

Command output

No response

Versions and dependencies used.

No response

Compute environment

None

Integrations

No response

Anything else?

No response

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status

      Done πŸ’ͺ🏾

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions