Skip to content

Commit cf8759f

Browse files
Merge branch 'main' into strgsyncserver_identity_list
2 parents 1295b7f + dd083a5 commit cf8759f

1,827 files changed

Lines changed: 50003 additions & 12274 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/labeler-issue-triage.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ service/maintenance:
212212
service/managed-apps:
213213
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_managed_application((.|\n)*)###'
214214

215+
service/managed-devops-pools:
216+
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_managed_devops_pool((.|\n)*)###'
217+
215218
service/managed-hsm:
216219
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_key_vault_managed_hardware_security_module((.|\n)*)###'
217220

@@ -291,7 +294,7 @@ service/relay:
291294
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_relay_((.|\n)*)###'
292295

293296
service/resource:
294-
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(management_group_template_deployment\W+|management_lock\W+|resource_deployment_script_azure_cli\W+|resource_deployment_script_azure_power_shell\W+|resource_group\W+|resource_group_template_deployment\W+|resource_management_private_link\W+|resource_management_private_link_association\W+|resource_provider_registration\W+|resources|subscription_template_deployment|template_spec_version|tenant_template_deployment)((.|\n)*)###'
297+
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(management_group_template_deployment\W+|management_lock\W+|resource_deployment_script_azure_cli\W+|resource_deployment_script_azure_power_shell\W+|resource_group\W+|resource_group_template_deployment\W+|resource_management_private_link\W+|resource_management_private_link_association\W+|resource_provider_feature_registration\W+|resource_provider_registration\W+|resources|subscription_template_deployment|template_spec_version|tenant_template_deployment)((.|\n)*)###'
295298

296299
service/search:
297300
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_search_s((.|\n)*)###'
@@ -357,4 +360,4 @@ service/vmware:
357360
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(vmware_cluster\W+|vmware_express_route_authorization\W+|vmware_netapp_volume_attachment\W+|vmware_private_cloud\W+|voice_services_communications_gateway\W+|voice_services_communications_gateway_test_line\W+)((.|\n)*)###'
358361

359362
service/workloads:
360-
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(chaos_studio_|container_connected_registry\W+|container_registry_cache_rule\W+|container_registry_credential_set\W+|container_registry_task\W+|container_registry_task_schedule_run_now\W+|container_registry_token_password\W+|kubernetes_cluster_extension\W+|kubernetes_cluster_trusted_access_role_binding\W+|kubernetes_fleet_manager\W+|kubernetes_fleet_member\W+|kubernetes_fleet_update_run\W+|kubernetes_fleet_update_strategy\W+|kubernetes_flux_configuration\W+|kubernetes_node_pool_snapshot\W+|workloads_sap_)((.|\n)*)###'
363+
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(chaos_studio_|container_connected_registry\W+|container_registry_cache_rule\W+|container_registry_credential_set\W+|container_registry_task\W+|container_registry_task_schedule_run_now\W+|container_registry_token_password\W+|kubernetes_cluster_deployment_safeguard\W+|kubernetes_cluster_extension\W+|kubernetes_cluster_trusted_access_role_binding\W+|kubernetes_fleet_manager\W+|kubernetes_fleet_member\W+|kubernetes_fleet_update_run\W+|kubernetes_fleet_update_strategy\W+|kubernetes_flux_configuration\W+|kubernetes_node_pool_snapshot\W+|workloads_sap_)((.|\n)*)###'

.github/labeler-pull-request-triage.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,11 @@ service/managed-apps:
354354
- any-glob-to-any-file:
355355
- internal/services/managedapplications/**/*
356356

357+
service/managed-devops-pools:
358+
- changed-files:
359+
- any-glob-to-any-file:
360+
- internal/services/manageddevopspools/**/*
361+
357362
service/managed-hsm:
358363
- changed-files:
359364
- any-glob-to-any-file:

.github/workflows/add-waiting-response-on-fail.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Add waiting-response on failures
33

44
on:
55
workflow_run:
6-
workflows: ['Check for new usages of deprecated functionality', 'GoLang Linting', 'Website Linting', 'Generation Check', 'Validate Examples', 'Unit Tests', 'Terraform Schema Linting', '32 Bit Build', 'Provider Tests', 'Vendor Dependencies Check']
6+
workflows: ['Check for new usages of deprecated functionality', 'GoLang Linting', 'Website Linting', 'Generation Check', 'Validate Examples', 'Unit Tests', 'Terraform Schema Linting', 'Provider Tests', 'Vendor Dependencies Check']
77
types: [completed]
88

99
permissions:

.github/workflows/breaking-change-detection.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,12 @@ jobs:
2727
with:
2828
go-version-file: ./.go-version
2929
- run: bash ./scripts/run-breaking-change-detection.sh
30+
- name: Guidance on failure
31+
if: failure()
32+
run: |
33+
echo "::error::Breaking Schema Changes detected."
34+
echo ""
35+
echo "Your changes contain breaking schema changes (e.g. removing or renaming"
36+
echo "a property, changing a property type, or making an optional property required)."
37+
echo "Breaking changes must be gated behind the appropriate feature flag (e.g. features.FivePointOh())."
38+
echo "Please review the breaking changes guide: contributing/topics/guide-breaking-changes.md"

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ name: build
1515
#
1616
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushbranchestagsbranches-ignoretags-ignore
1717
#
18-
on: [workflow_dispatch, push]
18+
on:
19+
workflow_dispatch:
20+
push:
21+
branches-ignore:
22+
- automated-changelog
1923

2024
env:
2125
PKG_NAME: "terraform-provider-azurerm"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: 'Close PRs With Failing CI'
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '0 6 * * MON,WED,FRI'
6+
7+
permissions:
8+
issues: write
9+
pull-requests: write
10+
checks: read
11+
statuses: read
12+
13+
jobs:
14+
close-failing-ci-prs:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
- name: Process PRs with failing CI
19+
run: ./scripts/close-failing-ci-prs.sh -o "${{ github.repository_owner }}" -r "${{ github.event.repository.name }}" -t "${{ secrets.GITHUB_TOKEN }}" -l

.github/workflows/comment-failure.yaml

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,31 @@ jobs:
1919
with:
2020
result-encoding: string
2121
script: |
22+
const workflowName = '${{ github.workflow }}';
23+
24+
const guidance = {
25+
'Vendor Dependencies Check': 'Do not modify files in the `vendor/` directory directly. Instead, update dependencies in `go.mod` and run `go mod vendor` to sync the vendor directory. Then run `make depscheck` locally to verify.',
26+
'Website Linting': 'Run `make website-lint` and `make document-validate` locally to check your documentation files under `website/` for formatting or validation issues.',
27+
'Generation Check': 'Run `make generate` locally to regenerate any auto-generated code, then commit the resulting changes.',
28+
'GoLang Linting': 'Run the Go linter locally with `golangci-lint run -v ./internal/...` and fix any reported issues.',
29+
'Terraform Schema Linting': 'Run `make tflint` locally and fix any Terraform schema issues in your resource or data source definitions.',
30+
'Unit Tests': 'Run `make test` locally to reproduce and fix the failing unit tests.',
31+
'ShellCheck Scripts': 'Run `make shellcheck` locally to check shell scripts for issues and fix any warnings or errors.',
32+
'Validate Examples': 'Run `make validate-examples` locally to check that your example Terraform configurations under `examples/` are valid.',
33+
34+
};
35+
36+
let body = `<b>Build failure: ${workflowName}</b>\n\nThis pull request contains a build failure in the <b>${workflowName}</b> check which needs to be addressed [here](${{ env.gha_url }}).`;
37+
38+
if (guidance[workflowName]) {
39+
body += `\n\n<b>How to fix:</b> ${guidance[workflowName]}`;
40+
}
41+
42+
body += `\n\nFor more information, please refer to our [Contributing Guide](https://github.com/${{ github.repository }}/blob/main/contributing/README.md).`;
43+
2244
github.rest.issues.createComment({
23-
issue_number: ${{ github.event.number }},
24-
owner: context.repo.owner,
25-
repo: context.repo.repo,
26-
body: '<b>Build failure</b> \n\n This pull request contains a build failure which needs addressed [here](${{ env.gha_url}}) .'
27-
})
45+
issue_number: ${{ github.event.number }},
46+
owner: context.repo.owner,
47+
repo: context.repo.repo,
48+
body: body
49+
})

.github/workflows/depscheck.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ jobs:
2323
go-version-file: ./.go-version
2424
- run: bash scripts/gogetcookie.sh
2525
- run: make depscheck
26+
- name: Guidance on failure
27+
if: failure()
28+
run: |
29+
echo "::error::Vendor Dependencies Check failed."
30+
echo ""
31+
echo "Do not modify files in the vendor/ directory directly."
32+
echo "Instead, update dependencies in go.mod and run 'go mod tidy && go mod vendor' to sync the vendor directory."
33+
echo "Then run 'make depscheck' locally to verify before pushing."
2634
save-artifacts-on-fail:
2735
needs: depscheck
2836
if: ${{ failure() }}

.github/workflows/gencheck.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ jobs:
2626
go-version-file: ./.go-version
2727
- run: bash scripts/gogetcookie.sh
2828
- run: make gencheck
29+
- name: Guidance on failure
30+
if: failure()
31+
run: |
32+
echo "::error::Generation Check failed."
33+
echo ""
34+
echo "Run 'make generate' locally to regenerate auto-generated code, then commit the changes."
35+
echo "This check ensures that generated files are up to date with their source definitions."
2936
save-artifacts-on-fail:
3037
needs: gencheck
3138
if: ${{ failure() }}

.github/workflows/golint.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ jobs:
2929
with:
3030
version: 'v2.4.0'
3131
args: -v ./internal/...
32+
- name: Guidance on failure
33+
if: failure()
34+
run: |
35+
echo "::error::GoLang Linting failed."
36+
echo ""
37+
echo "Run the Go linter locally: golangci-lint run -v ./internal/..."
38+
echo "Fix any reported issues before pushing. Common issues include:"
39+
echo " - Unused variables or imports"
40+
echo " - Error return values not checked"
41+
echo " - Formatting issues (run 'gofmt -w .')"
3242
save-artifacts-on-fail:
3343
needs: golint
3444
if: ${{ failure() }}

0 commit comments

Comments
 (0)