Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Azure/typespec-azure into b…
Browse files Browse the repository at this point in the history
…ackmerge/release/january-2025-2025-01-31
  • Loading branch information
iscai-msft committed Jan 31, 2025
2 parents 4eff107 + f6c6baf commit 522577a
Show file tree
Hide file tree
Showing 101 changed files with 7,158 additions and 8,785 deletions.
8 changes: 8 additions & 0 deletions .chronus/changes/api-version-scenarios-2025-0-16-0-23-14.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
changeKind: fix
packages:
- "@azure-tools/azure-http-specs"
---

Add @apiVersion scenarios and mock apis
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
changeKind: feature
packages:
- "@azure-tools/typespec-autorest"
- "@azure-tools/typespec-azure-resource-manager"
---

Add `@externalTypeRef` decorator, to been able to specify an external reference that should be used when emitting.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
changeKind: internal
packages:
- "@azure-tools/azure-http-specs"
- "@azure-tools/typespec-autorest-canonical"
- "@azure-tools/typespec-autorest"
- "@azure-tools/typespec-azure-core"
- "@azure-tools/typespec-azure-portal-core"
- "@azure-tools/typespec-azure-resource-manager"
- "@azure-tools/typespec-azure-rulesets"
- "@azure-tools/typespec-client-generator-core"
---

7 changes: 7 additions & 0 deletions .chronus/changes/fix-2072-2025-0-21-15-49-15.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: feature
packages:
- "@azure-tools/typespec-client-generator-core"
---

Add a `resultSegments` property to `SdkLroServiceFinalResponse` and deprecate `resultPath` property. Add a `resultSegments` property to `SdkMethodResponse`.
7 changes: 7 additions & 0 deletions .chronus/changes/fix-arm-provider-async-2025-0-29-17-16-45.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: fix
packages:
- "@azure-tools/typespec-azure-resource-manager"
---

Fix provider name not being replaced in the route when using `ArmProviderActionSync` or `ArmProviderActionAsync` operation.
7 changes: 7 additions & 0 deletions .chronus/changes/fix-duplicate-warning-2025-0-15-11-39-29.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: fix
packages:
- "@azure-tools/typespec-azure-resource-manager"
---

Exclude template instances from the `no-response-body` rule.
7 changes: 7 additions & 0 deletions .chronus/changes/tcgc-fixe2e-2025-0-27-10-26-55.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: internal
packages:
- "@azure-tools/typespec-client-generator-core"
---

Remove e2e tests
15 changes: 15 additions & 0 deletions .chronus/changes/upgrade-deps-jan-2025-2025-0-22-0-4-39.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
changeKind: dependencies
packages:
- "@azure-tools/azure-http-specs"
- "@azure-tools/typespec-autorest-canonical"
- "@azure-tools/typespec-autorest"
- "@azure-tools/typespec-azure-core"
- "@azure-tools/typespec-azure-portal-core"
- "@azure-tools/typespec-azure-resource-manager"
- "@azure-tools/typespec-azure-rulesets"
- "@azure-tools/typespec-client-generator-core"
---

Upgrade dependencies
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM mcr.microsoft.com/devcontainers/javascript-node:20

RUN corepack enable pnpm && \
echo 'alias pnpm="corepack pnpm"' >> /home/node/.bash_aliases
RUN corepack enable pnpm \
&& echo 'alias pnpm="corepack pnpm"' >> /home/node/.bash_aliases

RUN git config --global submodule.recurse true
8 changes: 8 additions & 0 deletions .github/policies/issues.triage.generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ configuration:
label: lib:azure-core
- hasLabel:
label: lib:azure-resource-manager
- hasLabel:
label: lib:azure-http-specs
- hasLabel:
label: emitter:autorest
- hasLabel:
Expand All @@ -47,6 +49,8 @@ configuration:
label: lib:azure-core
- labelAdded:
label: lib:azure-resource-manager
- labelAdded:
label: lib:azure-http-specs
- labelAdded:
label: emitter:autorest
- labelAdded:
Expand All @@ -72,6 +76,8 @@ configuration:
label: lib:azure-core
- labelRemoved:
label: lib:azure-resource-manager
- labelRemoved:
label: lib:azure-http-specs
- labelRemoved:
label: emitter:autorest
- labelRemoved:
Expand All @@ -88,6 +94,8 @@ configuration:
label: lib:azure-core
- hasLabel:
label: lib:azure-resource-manager
- hasLabel:
label: lib:azure-http-specs
- hasLabel:
label: emitter:autorest
- hasLabel:
Expand Down
7 changes: 7 additions & 0 deletions .github/policies/prs.triage.generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ configuration:
then:
- addLabel:
label: lib:tcgc
- if:
- includesModifiedFiles:
files:
- packages/typespec-azure-http-specs/**/*
then:
- addLabel:
label: lib:azure-http-specs
- if:
- includesModifiedFiles:
files: []
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,5 @@ packages/samples/test/output/azure/templates-contoso/setup.*
# Playwright temp file
.last_run.json


# Astro
.astro/
6 changes: 4 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ core/packages/compiler/test/formatter/**/*.tsp
# That is an example with error and can't be formatted
core/packages/samples/specs/local-typespec/test.tsp

# Don't check format website generated files.
# Don't check format website generated files.
core/packages/website/.docusaurus/
core/packages/website/build/
core/packages/website/versioned_sidebars/
Expand All @@ -41,7 +41,6 @@ packages/website/build/
packages/website/versioned_sidebars/
packages/website/versions.json


# Auto generated reference docs.
**/docs/**/reference/
packages/website/versioned_docs/**/reference/
Expand Down Expand Up @@ -77,3 +76,6 @@ packages/samples/common-types/**/*.json
core/packages/http-client-csharp/
core/packages/http-client-java/
core/packages/http-client-python/

.gitattributes
CODEOWNERS
3 changes: 2 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"plugins": [
"./core/packages/prettier-plugin-typespec/dist/index.js",
"./node_modules/prettier-plugin-organize-imports/index.js",
"prettier-plugin-astro"
"prettier-plugin-astro",
"prettier-plugin-sh"
],
"overrides": [
{
Expand Down
20 changes: 10 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ each individual repo as you would any other.

```bash
pnpm e2e-tests

```

### Test with local cadl-ranch repo
Expand Down Expand Up @@ -306,15 +305,16 @@ TypeSpec repo use labels to help categorize and manage issues and PRs. The follo

Area of the codebase

| Name | Color | Description |
| ---------------------------- | ------- | -------------------------------------------------------------- |
| `lib:tcgc` | #957300 | Issues for @azure-tools/typespec-client-generator-core library |
| `lib:azure-core` | #957300 | Issues for @azure-tools/typespec-azure-core library |
| `lib:azure-resource-manager` | #957300 | Issues for @azure-tools/typespec-azure-core library |
| `emitter:autorest` | #957300 | Issues for @azure-tools/typespec-autorest emitter |
| `eng` | #65bfff | |
| `ide` | #846da1 | Issues for Azure specific ide features |
| `cli/psh` | #9EB120 | Issues for Azure CLI/PSH features |
| Name | Color | Description |
| ---------------------------- | ------- | ---------------------------------------------------------------------------- |
| `lib:tcgc` | #957300 | Issues for @azure-tools/typespec-client-generator-core library |
| `lib:azure-core` | #957300 | Issues for @azure-tools/typespec-azure-core library |
| `lib:azure-resource-manager` | #957300 | Issues for @azure-tools/typespec-azure-core library |
| `lib:azure-http-specs` | #c7aee6 | For issues/prs related to the @azure-tools/typespec-azure-http-specs package |
| `emitter:autorest` | #957300 | Issues for @azure-tools/typespec-autorest emitter |
| `eng` | #65bfff | |
| `ide` | #846da1 | Issues for Azure specific ide features |
| `cli/psh` | #9EB120 | Issues for Azure CLI/PSH features |

#### issue_kinds

Expand Down
2 changes: 1 addition & 1 deletion core
Submodule core updated 748 files
6 changes: 5 additions & 1 deletion eng/config/labels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ export const AreaLabels = defineLabels({
color: "957300",
description: "Issues for @azure-tools/typespec-azure-core library",
},

"lib:azure-http-specs": {
color: "c7aee6",
description: "For issues/prs related to the @azure-tools/typespec-azure-http-specs package",
},
"emitter:autorest": {
color: "957300",
description: "Issues for @azure-tools/typespec-autorest emitter",
Expand Down Expand Up @@ -47,6 +50,7 @@ export const AreaPaths: Record<keyof typeof AreaLabels, string[]> = {
"lib:azure-resource-manager": ["packages/typespec-azure-resource-manager/"],
"emitter:autorest": ["packages/typespec-autorest/"],
"lib:tcgc": ["packages/typespec-client-generator-core/"],
"lib:azure-http-specs": ["packages/typespec-azure-http-specs/"],
ide: [],
"cli/psh": [],
};
Expand Down
2 changes: 1 addition & 1 deletion eng/feeds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"description": "",
"devDependencies": {
"@typespec/compiler": "workspace:~",
"vitest": "^2.1.5"
"vitest": "^3.0.4"
}
}
49 changes: 0 additions & 49 deletions eng/pipelines/deploy-azure-spec-dashboard-storage-account.yml

This file was deleted.

12 changes: 12 additions & 0 deletions eng/pipelines/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ extends:
env:
NPM_AUTH_TOKEN: $(azure-sdk-npm-token)
- pwsh: |
$publishSummary = Get-Content "./publish-summary.json" | ConvertFrom-Json
if ($publishSummary.packages.'@azure-tools/azure-http-specs'.published -eq $true) {
Write-Output "Setting PublishAzureHttpSpecs variable to true."
Write-Host "##vso[task.setvariable variable=PublishAzureHttpSpecs]true"
} else {
Write-Output "Setting PublishAzureHttpSpecs variable to false."
Write-Host "##vso[task.setvariable variable=PublishAzureHttpSpecs]false"
}
displayName: "Check if @azure-tools/azure-http-specs was published"
- script: |
echo "Publish summary:"
cat ./publish-summary.json
Expand Down Expand Up @@ -97,6 +108,7 @@ extends:

- task: AzureCLI@2
displayName: Upload scenario manifest
condition: eq(variables['PublishAzureHttpSpecs'], 'true')
inputs:
azureSubscription: "TypeSpec Storage"
scriptType: "bash"
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,29 @@
"upload-manifest": "pnpm -r --filter=@azure-tools/azure-http-specs run upload-manifest"
},
"devDependencies": {
"@chronus/chronus": "^0.13.0",
"@chronus/github": "^0.4.4",
"@eslint/js": "^9.15.0",
"@chronus/chronus": "^0.14.0",
"@chronus/github": "^0.4.5",
"@eslint/js": "^9.18.0",
"@pnpm/find-workspace-packages": "^6.0.9",
"@types/node": "~22.7.9",
"@vitest/coverage-v8": "^2.1.5",
"c8": "^10.1.2",
"cspell": "^8.16.0",
"eslint": "^9.15.0",
"@types/node": "~22.10.10",
"@vitest/coverage-v8": "^3.0.4",
"c8": "^10.1.3",
"cspell": "^8.17.2",
"eslint": "^9.18.0",
"eslint-plugin-deprecation": "^3.0.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-unicorn": "^56.0.1",
"eslint-plugin-vitest": "^0.5.4",
"playwright": "^1.49.0",
"prettier": "~3.3.3",
"playwright": "^1.50.0",
"prettier": "~3.4.2",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-organize-imports": "~4.1.0",
"rimraf": "~6.0.1",
"syncpack": "^13.0.0",
"tsx": "^4.19.2",
"typescript": "~5.6.3",
"typescript-eslint": "^8.15.0",
"vitest": "^2.1.5"
"typescript": "~5.7.3",
"typescript-eslint": "^8.21.0",
"vitest": "^3.0.4"
},
"syncpack": {
"dependencyTypes": [
Expand Down
Loading

0 comments on commit 522577a

Please sign in to comment.