Skip to content

feat: add azure-mode spector coverage upload to shared emitter pipeline - #10762

Closed
iscai-msft wants to merge 1 commit into
microsoft:mainfrom
iscai-msft:python/add-azure-coverage-upload
Closed

iscai-msft wants to merge 1 commit into
microsoft:mainfrom
iscai-msft:python/add-azure-coverage-upload

Conversation

@iscai-msft

Copy link
Copy Markdown
Member

Summary

Add support for uploading azure-mode spector coverage reports in the shared emitter pipeline templates.

Changes

  • test-step.yml: New AzureCadlRanchName parameter and a second upload step for generatorMode azure
  • test-job.yml / emitter-stages.yml: Thread the new parameter through the template chain
  • publish.yml (http-client-python): Enable coverage reporting and set AzureCadlRanchName: "@azure-tools/typespec-python"

Design

  • Opt-in: emitters that don't pass AzureCadlRanchName are unaffected (guarded by ne(parameters.AzureCadlRanchName, ''))
  • Runs only after merge to main (same conditions as existing standard upload)
  • Coverage file convention: tsp-spector-coverage-<lang>-azure.json
  • Other emitters (C#, Java, JS) can adopt by adding AzureCadlRanchName to their publish.yml

This is part of moving the branded emitter (@azure-tools/typespec-python) from autorest.python to typespec-azure.

Add AzureCadlRanchName parameter to the shared test-step, test-job,
and emitter-stages templates. When set, a second coverage upload
runs with generatorMode=azure after the existing standard upload.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@iscai-msft
iscai-msft force-pushed the python/add-azure-coverage-upload branch from b4a8bc6 to 51f2a8e Compare May 21, 2026 19:06
type: string
default: ""

- name: AzureCadlRanchName

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.

CadlRanch is no longer used. It is Spector now, right?

@github-actions

github-actions Bot commented May 21, 2026 •

Copy link
Copy Markdown
Contributor

No changes needing a change description found.

@azure-sdk-automation

Copy link
Copy Markdown

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@iscai-msft

Copy link
Copy Markdown
Member Author

Closing - the coverage upload belongs in typespec-azure, not typespec core.

@iscai-msft iscai-msft closed this May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:python Issue for the Python client emitter: @typespec/http-client-python eng

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants