Skip to content

[Cosmos] Avoid redundant provisioning in fixed-account test stages - #50839

Open
Tomas Varon (tvaron3) wants to merge 3 commits into
mainfrom
tvaron3-cosmos-thin-client-provisioning
Open

Tomas Varon (tvaron3) wants to merge 3 commits into
mainfrom
tvaron3-cosmos-thin-client-provisioning

Conversation

@tvaron3

@tvaron3 Tomas Varon (tvaron3) commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Description

Disable per-run ARM resource provisioning for six Cosmos live-test stages that already use fixed accounts: Http2NetworkFault, ThinClient, ThinClient_EndpointProbe, ThinClient_MultiRegion, ThinClient_MultiMaster, and GSI (all with the Cosmos_Live_Test_ prefix).

These stages previously inherited DisableAzureResourceCreation: false, creating redundant accounts through sdk/cosmos/test-resources.json despite selecting fixed endpoint/key credentials. The selected Maven profiles, TestNG groups, and setup paths were checked for ARM-output dependencies; they do not require NEW_ACCOUNT_* or secondary-key outputs. Fixed credentials, test profiles, matrix inputs, federated authentication, transport selection, iptables setup, and post-job database cleanup are preserved. Other stages and the ARM template are unchanged.

Remove local-only tooling from sdk/cosmos/pipeline, while retaining everything used by CI:

  • Remove account-provisioning/New-CosmosLiveTestAccounts.ps1, its README and account definition JSON; the unused account schema/sample; and the two manual-only test scripts (resolve-cosmos-test-account.tests.sh and test_fixed_account_pipeline.py). No CI invocation or automated discovery of these scripts was found.
  • Retain resolve-test-account-steps.yml, resolve-cosmos-test-account.sh, cspell.json, and the updated README. The standard live and Http2 stages still use these resolvers for fixed-account credentials, including the secondary key. Runtime resolver behavior is unchanged; only its schema-reference comment changes.
  • Document the secret format inline and remove obsolete links/commands. No replacement toolkit integration or equivalence is claimed.

No SDK runtime or public API changes; no customer-facing changelog entry is needed. No spec regeneration applies.

Disable per-run ARM provisioning for six thin-client and GSI stages while preserving fixed credentials, authentication, test profiles, and cleanup. Add offline pipeline regression coverage and document the account contract.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ead4fdd6-1296-47c8-bd5c-1cdfe90128ee
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
35 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Remove manual provisioning assets and offline-only test scripts, schema, and sample. Preserve the CI credential-resolution template and script, spelling configuration, and documented secret contract.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ead4fdd6-1296-47c8-bd5c-1cdfe90128ee
@tvaron3
Tomas Varon (tvaron3) marked this pull request as ready for review October 17, 2026 00:34
Copilot AI balanced review requested due to automatic review settings October 17, 2026 00:34

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.

🟢 Approval recommended

Static tracing supports disabling provisioning without disrupting fixed-account tests, authentication, or cleanup, and no blocking issues remain.

No open issues 🎉

What changed in this PR

Removes redundant resource provisioning from six Cosmos live-test stages that already use fixed accounts, without changing SDK runtime behavior.

Changes:

  • Disable per-run ARM provisioning while preserving fixed credentials, authentication, and database cleanup.
  • Remove local-only provisioning and testing tools.
  • Document the secret format and fixed-account configuration; retain resolver behavior unchanged.
File Description
sdk/​cosmos/​tests.yml Disables provisioning for six fixed-account stages.
sdk/​cosmos/​pipeline/​resolve-cosmos-test-account.tests.sh Removes manual resolver tests.
sdk/​cosmos/​pipeline/​resolve-cosmos-test-account.sh Updates a documentation reference in a comment only.
sdk/​cosmos/​pipeline/​README.md Documents retained CI tooling and account configuration.
sdk/​cosmos/​pipeline/​live-test-accounts.schema.json Removes the unused schema.
sdk/​cosmos/​pipeline/​live-test-accounts.sample.json Removes the standalone sample configuration.
sdk/​cosmos/​pipeline/​account-provisioning/​README.md Removes local provisioning instructions.
sdk/​cosmos/​pipeline/​account-provisioning/​New-CosmosLiveTestAccounts.ps1 Removes the local account provisioner.
sdk/​cosmos/​pipeline/​account-provisioning/​cosmos-live-test-accounts.definition.json Removes definitions used by the deleted provisioner.

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ead4fdd6-1296-47c8-bd5c-1cdfe90128ee

This branch has not been deployed

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants