-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[engSys] Use common OIDC token env vars for live tests #33320
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
Conversation
|
/azp run js - identity - tests |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run js - keyvault-admin - tests-weekly |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
API change check API changes are not detected in this pull request. |
|
KeyVault Admin Managed HSM successfully deployed after this change: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4635988, test failures are related to test pollution and unrelated to this PR Identity deployment succeeds as well: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4636004 Live test errors are pre-existing on main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Overview
This PR adds support for the PersistOidcToken parameter across various pipeline templates and test configurations for live tests. The key changes include:
- Adding a new PersistOidcToken boolean parameter in multiple pipeline templates.
- Propagating the PersistOidcToken parameter into job definitions.
- Updating test configurations in the SDK packages to leverage the new parameter.
Reviewed Changes
| File | Description |
|---|---|
| eng/pipelines/templates/stages/archetype-sdk-tests.yml | Added PersistOidcToken parameter and passed it to the extended stage settings |
| eng/pipelines/templates/stages/archetype-sdk-tests-isolated.yml | Added PersistOidcToken parameter and passed it along for isolated test stages |
| eng/pipelines/templates/jobs/live.tests.yml | Defined PersistOidcToken as a parameter and injected it into job configurations |
| sdk/identity/identity/tests.yml | Removed the inline script that set OIDC variables and replaced it with PersistOidcToken set to true |
| sdk/keyvault/keyvault-admin/tests.yml | Added PersistOidcToken set to true in the test configuration |
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (2)
sdk/identity/identity/tests.yml:10
- The inline script setting OIDC variables has been removed in favor of using PersistOidcToken. Please verify that the new mechanism correctly establishes and propagates the OIDC environment variables, ensuring no regression in test behavior.
PersistOidcToken: true
eng/pipelines/templates/jobs/live.tests.yml:48
- There is an inconsistency where the live.tests pipeline defaults PersistOidcToken to false, yet tests in SDK configurations override it to true. Please ensure that the intended behavior is consistent across environments.
- name: PersistOidcToken
3782227 to
f38774d
Compare
Packages impacted by this PR
@azure/identity@azure/keyvault-admin@azure/keyvault-keysIssues associated with this PR
Describe the problem that is addressed by this PR
Builds on previous work in #31335
This PR adds support for
PersistOidcTokenparameter passing, allowing one torefresh their credential using
Connect-AzAccountoraz login