Skip to content

Commit ac4668f

Browse files
Merge branch 'main' into feature/aks-node-pool-pod-ip-allocation-mode
2 parents e942383 + 8bb30b3 commit ac4668f

File tree

3,791 files changed

+101290
-73638
lines changed

Some content is hidden

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

3,791 files changed

+101290
-73638
lines changed

.github/labeler-issue-triage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,4 +357,4 @@ service/vmware:
357357
- '### (|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)*)###'
358358

359359
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)*)###'
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_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/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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
- set-product-version
125125
runs-on: custom-ubuntu-22.04-medium
126126
if: github.repository_owner == 'hashicorp'
127-
timeout-minutes: 10
127+
timeout-minutes: 30
128128
strategy:
129129
fail-fast: true
130130
# Verify expected Artifacts list for a workflow run.
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/close-inactive-draft-prs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616
- name: Process stale draft PRs
17-
run: ./scripts/close-stale-draft-prs.sh -o "${{ github.repository_owner }}" -r "${{ github.event.repository.name }}" -t "${{ secrets.GITHUB_TOKEN }}"
17+
run: ./scripts/close-inactive-draft-prs.sh -o "${{ github.repository_owner }}" -r "${{ github.event.repository.name }}" -t "${{ secrets.GITHUB_TOKEN }}"
1818

.github/workflows/comment-failure.yaml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
# This file is reused, and called from other workflows
55
workflow_call:
66

7+
permissions:
8+
pull-requests: write
9+
710
jobs:
811
comment-failure:
912
runs-on: ubuntu-latest
@@ -16,9 +19,31 @@ jobs:
1619
with:
1720
result-encoding: string
1821
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+
1944
github.rest.issues.createComment({
20-
issue_number: ${{ github.event.number }},
21-
owner: context.repo.owner,
22-
repo: context.repo.repo,
23-
body: '<b>Build failure</b> \n\n This pull request contains a build failure which needs addressed [here](${{ env.gha_url}}) .'
24-
})
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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Vendor Dependencies Check
33

44
permissions:
55
contents: read
6+
pull-requests: write
67

78
on:
89
pull_request:
@@ -22,6 +23,14 @@ jobs:
2223
go-version-file: ./.go-version
2324
- run: bash scripts/gogetcookie.sh
2425
- 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."
2534
save-artifacts-on-fail:
2635
needs: depscheck
2736
if: ${{ failure() }}

.github/workflows/gencheck.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Generation Check
33

44
permissions:
55
contents: read
6+
pull-requests: write
67

78
on:
89
pull_request:
@@ -25,6 +26,13 @@ jobs:
2526
go-version-file: ./.go-version
2627
- run: bash scripts/gogetcookie.sh
2728
- 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."
2836
save-artifacts-on-fail:
2937
needs: gencheck
3038
if: ${{ failure() }}

.github/workflows/golint.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: GoLang Linting
33

44
permissions:
55
contents: read
6+
pull-requests: write
67

78
on:
89
pull_request:
@@ -28,6 +29,16 @@ jobs:
2829
with:
2930
version: 'v2.4.0'
3031
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 .')"
3142
save-artifacts-on-fail:
3243
needs: golint
3344
if: ${{ failure() }}

0 commit comments

Comments
 (0)