Skip to content

Commit

Permalink
Build snippets during Analyze job by default (#33878)
Browse files Browse the repository at this point in the history
* Build snippets during Analyze job by default

Resolves #33877

* Resolve PR feedback

* Don't build snippets for Core

Core has a few issues actually compiling with SNIPPET symbol because it
tries to elide some code for brevity. Fixing that changes the extracted
snippets and may make the samples more confusing so leaving as-is.
  • Loading branch information
heaths authored Feb 6, 2023
1 parent 7a13f06 commit bf02a2a
Show file tree
Hide file tree
Showing 22 changed files with 10 additions and 21 deletions.
2 changes: 1 addition & 1 deletion eng/pipelines/templates/jobs/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ parameters:
default: not-specified
- name: BuildSnippets
type: boolean
default: false
default: true
- name: TestSetupSteps
type: stepList
default: []
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/stages/archetype-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ parameters:
default: azure-docs-sdk-dotnet
- name: BuildSnippets
type: boolean
default: false
default: true
- name: TestSetupSteps
type: stepList
default: []
Expand Down
1 change: 0 additions & 1 deletion sdk/authorization/ci.mgmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: authorization
BuildSnippets: true
LimitForPullRequest: true
Artifacts:
- name: Azure.ResourceManager.Authorization
Expand Down
1 change: 0 additions & 1 deletion sdk/billingbenefits/ci.mgmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: billingbenefits
BuildSnippets: true
LimitForPullRequest: true
Artifacts:
- name: Azure.ResourceManager.BillingBenefits
Expand Down
1 change: 0 additions & 1 deletion sdk/communication/ci.mgmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: communication
BuildSnippets: true
LimitForPullRequest: true
Artifacts:
- name: Azure.ResourceManager.Communication
Expand Down
2 changes: 1 addition & 1 deletion sdk/communication/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: communication
BuildSnippets: true
BuildSnippets: false
ArtifactName: packages
Artifacts:
- name: Azure.Communication.JobRouter
Expand Down
1 change: 0 additions & 1 deletion sdk/containerregistry/ci.mgmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ extends:
parameters:
SDKType: mgmtclient
ServiceDirectory: containerregistry
BuildSnippets: true
LimitForPullRequest: true
Artifacts:
- name: Azure.ResourceManager.ContainerRegistry
Expand Down
1 change: 0 additions & 1 deletion sdk/containerregistry/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ extends:
parameters:
SDKType: client
ServiceDirectory: containerregistry
BuildSnippets: true
ArtifactName: packages
Artifacts:
- name: Azure.Containers.ContainerRegistry
Expand Down
3 changes: 2 additions & 1 deletion sdk/core/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: core
BuildSnippets: false
ArtifactName: packages
Artifacts:
- name: Azure.Core
Expand All @@ -57,4 +58,4 @@ extends:
TestSetupSteps:
- template: /sdk/storage/tests-install-azurite.yml
TestTimeoutInMinutes: 100
TestDependsOnDependency: Azure.Core
TestDependsOnDependency: Azure.Core
1 change: 1 addition & 0 deletions sdk/dns/ci.mgmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: dns
BuildSnippets: false
LimitForPullRequest: true
Artifacts:
- name: Azure.ResourceManager.Dns
Expand Down
1 change: 0 additions & 1 deletion sdk/eventhub/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ extends:
parameters:
SDKType: client
ServiceDirectory: eventhub
BuildSnippets: true
ArtifactName: packages
Artifacts:
- name: Azure.Messaging.EventHubs
Expand Down
2 changes: 1 addition & 1 deletion sdk/formrecognizer/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: formrecognizer
BuildSnippets: true
BuildSnippets: false
ArtifactName: packages
Artifacts:
- name: Azure.AI.FormRecognizer
Expand Down
3 changes: 2 additions & 1 deletion sdk/iot/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: iot
BuildSnippets: false
ArtifactName: packages
Artifacts:
- name: Azure.IoT.Hub.Service
safeName: AzureIoTHubService

1 change: 0 additions & 1 deletion sdk/keyvault/ci.mgmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: keyvault
BuildSnippets: true
LimitForPullRequest: true
Artifacts:
- name: Azure.ResourceManager.KeyVault
Expand Down
1 change: 0 additions & 1 deletion sdk/keyvault/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: keyvault
BuildSnippets: true
ArtifactName: packages
Artifacts:
- name: Azure.Security.KeyVault.Administration
Expand Down
1 change: 0 additions & 1 deletion sdk/metricsadvisor/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: metricsadvisor
BuildSnippets: true
ArtifactName: packages
Artifacts:
- name: Azure.AI.MetricsAdvisor
Expand Down
1 change: 0 additions & 1 deletion sdk/purview/ci.mgmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: purview
BuildSnippets: true
LimitForPullRequest: true
Artifacts:
- name: Azure.ResourceManager.Purview
Expand Down
1 change: 0 additions & 1 deletion sdk/purview/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: purview
BuildSnippets: true
ArtifactName: packages
Artifacts:
- name: Azure.Analytics.Purview.Share
Expand Down
1 change: 0 additions & 1 deletion sdk/reservations/ci.mgmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: reservations
BuildSnippets: true
LimitForPullRequest: true
Artifacts:
- name: Azure.ResourceManager.Reservations
Expand Down
1 change: 0 additions & 1 deletion sdk/search/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ extends:
parameters:
SDKType: client
ServiceDirectory: search
BuildSnippets: true
ArtifactName: packages
Artifacts:
- name: Azure.Search.Documents
Expand Down
2 changes: 1 addition & 1 deletion sdk/servicebus/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extends:
parameters:
SDKType: client
ServiceDirectory: servicebus
BuildSnippets: true
BuildSnippets: false
ArtifactName: packages
Artifacts:
- name: Azure.Messaging.ServiceBus
Expand Down
1 change: 0 additions & 1 deletion sdk/textanalytics/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: textanalytics
BuildSnippets: true
ArtifactName: packages
Artifacts:
- name: Azure.AI.TextAnalytics
Expand Down

0 comments on commit bf02a2a

Please sign in to comment.