Skip to content
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

[@typespec/spector] - Enable Multiple Scenario Paths #4836

Merged
merged 6 commits into from
Oct 25, 2024

Conversation

sarangan12
Copy link
Contributor

Currently we could execute the serve/server-test/... command such as:

pnpm .\cmd\cli.mjs serve ..\http-specs\specs

i.e we could provide only one path of scenarios to execute. But, since we separated the scenarios to azure and non-azure specific cases to 2 different packages, we need a way to execute commands such as:

pnpm .\cmd\cli.mjs serve ..\http-specs\specs ..\..\..\typespec-azure\packages\azure-http-specs\specs\

The same procedure must be followed in all other commands such as validate-scenarios, generate-scenarios-summary, etc. Since we have to do it for all the commands and we need to change in all the places, it is much simpler to do it in one location where we copy the files to one common temp location and execute from there.

Also, in this PR, I have removed the private: true option for all the 5 packages to start the rollout process.

Please review and approve the PR. Thanks

@azure-sdk
Copy link
Collaborator

azure-sdk commented Oct 23, 2024

All changed packages have been documented.

  • @typespec/http-specs
  • @typespec/spec-api
  • @typespec/spec-coverage-sdk
  • @typespec/spector
Show changes

@typespec/http-specs - internal ✏️

Release cadl-ranch migrated packages to enable SDK and service testing

@typespec/spec-api - internal ✏️

Release cadl-ranch migrated packages to enable SDK and service testing

@typespec/spec-coverage-sdk - internal ✏️

Release cadl-ranch migrated packages to enable SDK and service testing

@typespec/spector - internal ✏️

Release cadl-ranch migrated packages to enable SDK and service testing

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs

@sarangan12 sarangan12 added this pull request to the merge queue Oct 25, 2024
Merged via the queue into microsoft:main with commit b8d4972 Oct 25, 2024
22 checks passed
@sarangan12 sarangan12 deleted the MultipleScenarios branch October 25, 2024 17:26
github-merge-queue bot pushed a commit to Azure/typespec-azure that referenced this pull request Oct 29, 2024
#1753)

This is the azure specific counter part of the PR
microsoft/typespec#4836. In this PR, the
`azure-http-specs` package is being rolled out.

Please review and approve the PR. Thanks
swatkatz pushed a commit to swatkatz/typespec that referenced this pull request Nov 5, 2024
Currently we could execute the `serve`/`server-test`/... command such
as:

`pnpm .\cmd\cli.mjs serve ..\http-specs\specs`

i.e we could provide only one path of scenarios to execute. But, since
we separated the scenarios to azure and non-azure specific cases to 2
different packages, we need a way to execute commands such as:

`pnpm .\cmd\cli.mjs serve ..\http-specs\specs
..\..\..\typespec-azure\packages\azure-http-specs\specs\`

The same procedure must be followed in all other commands such as
`validate-scenarios`, `generate-scenarios-summary`, etc. Since we have
to do it for all the commands and we need to change in all the places,
it is much simpler to do it in one location where we copy the files to
one common temp location and execute from there.

Also, in this PR, I have removed the `private: true` option for all the
5 packages to start the rollout process.

Please review and approve the PR. Thanks
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.

3 participants