Skip to content

[ManagedCleanroom] Sync frontend commands with latest 2026-03-01-preview spec - #10411

Merged
Ethan Yang (necusjz) merged 2 commits into
Azure:mainfrom
yrcvohra:users/yavohra/frontend-spec-sync
Sep 30, 2026
Merged

Ethan Yang (necusjz) merged 2 commits into
Azure:mainfrom
yrcvohra:users/yavohra/frontend-spec-sync

Conversation

@yrcvohra

Copy link
Copy Markdown
Contributor

Related command

  • az managedcleanroom frontend analytics query run
  • az managedcleanroom frontend analytics query runresult show

Summary

Follow-up to #10384. Brings the frontend (data-plane) commands in line with the latest 2026-03-01-preview frontend spec.

  • Regenerates the analytics_frontend_api client from the current frontend spec. The client's operations are unchanged except analytics_runs_job_id_get(job_id), which is now analytics_runs_run_id_get(run_id) to match /analytics/runs/{runId}.
  • Adds --scale-sku (small, medium, large) to query run. It is sent as scaleSku only when specified, so the service default (small) applies otherwise. It cannot be combined with --body, like the other run flags.
  • query runresult show now takes --run-id/-r. --job-id/-j still works as a deprecated alias.
  • Refreshes the frontend unit tests to the current response shapes (query run id, run history, run result, audit events {value, nextLink}, secret secretId, report cgs/consortiumManager) and adds --scale-sku coverage.
  • Bumps the extension to 1.0.0b10.

Validation

  • python -m pytest azext_managedcleanroom/tests/latest: 63 passed, 7 subtests passed.
  • flake8 (repo .flake8) and pylint (repo pylintrc) on the extension: clean, 10.00/10.
  • azdev linter --include-whl-extensions managedcleanroom: passed.
  • Manual CLI checks: --scale-sku appears in help, --scale-sku tiny is rejected, --job-id is accepted with a deprecation warning pointing to --run-id.

Dependencies

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (flake8 + pylint with the repo configs)
  • Have you run python scripts/ci/test_index.py -q locally? (not applicable: src/index.json is unchanged)
  • The extension version is bumped in setup.py and HISTORY.rst.

Copilot AI balanced review requested due to automatic review settings September 30, 2026 08:48
@azure-pipelines

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

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 review overview

🟢 Approval recommended

The command layer, generated clients, documentation, tests, and release metadata are consistently updated.

Review effort: Balanced
Findings: None

What changed in this PR

Synchronizes Managed Cleanroom frontend commands with the latest 2026-03-01-preview API contract.

Changes:

  • Regenerates synchronous and asynchronous frontend clients.
  • Adds --scale-sku and migrates run-result lookup to --run-id.
  • Updates response-shape tests, documentation, and version metadata.
File Description
src/​managedcleanroom/​setup.py Bumps version to 1.0.0b10.
src/​managedcleanroom/​HISTORY.rst Documents the release changes.
src/​managedcleanroom/​azext_managedcleanroom/​tests/​latest/​test_frontend_query.py Updates query response tests and covers scale SKU.
src/​managedcleanroom/​azext_managedcleanroom/​tests/​latest/​test_frontend_misc.py Updates audit and secret response tests.
src/​managedcleanroom/​azext_managedcleanroom/​tests/​latest/​test_frontend_collaboration.py Updates collaboration report tests.
src/​managedcleanroom/​azext_managedcleanroom/​analytics_frontend_api/​operations/​_patch.py Refreshes generated patch scaffolding.
src/​managedcleanroom/​azext_managedcleanroom/​analytics_frontend_api/​operations/​_operations.py Regenerates synchronous frontend operations.
src/​managedcleanroom/​azext_managedcleanroom/​analytics_frontend_api/​operations/​__init__.py Refreshes generated operation exports.
src/​managedcleanroom/​azext_managedcleanroom/​analytics_frontend_api/​aio/​operations/​_patch.py Refreshes async operation patch scaffolding.
src/​managedcleanroom/​azext_managedcleanroom/​analytics_frontend_api/​aio/​operations/​_operations.py Regenerates asynchronous frontend operations.
src/​managedcleanroom/​azext_managedcleanroom/​analytics_frontend_api/​aio/​operations/​__init__.py Refreshes async operation exports.
src/​managedcleanroom/​azext_managedcleanroom/​analytics_frontend_api/​aio/​_patch.py Refreshes async client patch scaffolding.
src/​managedcleanroom/​azext_managedcleanroom/​analytics_frontend_api/​aio/​_configuration.py Refreshes generated async configuration.
src/​managedcleanroom/​azext_managedcleanroom/​analytics_frontend_api/​aio/​_client.py Refreshes the generated async client.
src/​managedcleanroom/​azext_managedcleanroom/​analytics_frontend_api/​aio/​__init__.py Refreshes async package exports.
src/​managedcleanroom/​azext_managedcleanroom/​analytics_frontend_api/​_utils/​serialization.py Refreshes generated serialization utilities.
src/​managedcleanroom/​azext_managedcleanroom/​analytics_frontend_api/​_utils/​__init__.py Updates generated utility metadata.
src/​managedcleanroom/​azext_managedcleanroom/​analytics_frontend_api/​_patch.py Refreshes client patch scaffolding.
src/​managedcleanroom/​azext_managedcleanroom/​analytics_frontend_api/​_configuration.py Refreshes generated client configuration.
src/​managedcleanroom/​azext_managedcleanroom/​analytics_frontend_api/​_client.py Refreshes the generated synchronous client.
src/​managedcleanroom/​azext_managedcleanroom/​analytics_frontend_api/​__init__.py Refreshes package exports.
src/​managedcleanroom/​azext_managedcleanroom/​_params.py Adds scale SKU and deprecated job-ID aliases.
src/​managedcleanroom/​azext_managedcleanroom/​_help.py Documents updated query options and examples.
src/​managedcleanroom/​azext_managedcleanroom/​_frontend_custom.py Sends scale SKU and uses run-ID lookup.

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

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@anantshankar17

Anant (anantshankar17) commented Sep 30, 2026 •

Copy link
Copy Markdown

Ethan Yang (@necusjz) / Eloy Durán (@alloy) / Scott Hanselman (@shanselman) : please review and complete this minor change as it's required for a release.

@necusjz
Ethan Yang (necusjz) merged commit d165fcd into Azure:main Sep 30, 2026
24 checks passed
@azclibot

Copy link
Copy Markdown
Collaborator

[Release] Update index.json for extension [ managedcleanroom-1.0.0b10 ] : https://dev.azure.com/msazure/One/_build/results?buildId=183537515&view=results

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants