Skip to content

Commit 0a36184

Browse files
committed
Merge branch 'main' into mipres-updatema35d15
2 parents 7cc25f1 + ddbcdcc commit 0a36184

3,881 files changed

Lines changed: 178882 additions & 4179986 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/copilot-instructions.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ The operational goals of this project are:
5353

5454
When making changes, reason whether the file is used in VHD building stage, or provision stage, or both. Make sure the changes are valid in its life stage. as an example, [windows-vhd-configuration.ps1](./vhdbuilder/packer/windows/windows-vhd-configuration.ps1) defines container images to be cached in VHD, while [configure-windows-vhd.ps1](./vhdbuilder/packer/windows/configure-windows-vhd.ps1) executes commands at provision time.
5555

56+
VHD cleanup steps in `cleanup-vhd.sh` must not silently ignore failures. Verify removal of security-sensitive components and fail the build if expected state is not achieved.
57+
5658
One way to debug / explore / just for fun is to run [e2e](./e2e/) tests. To run locally, follow the readme file under that folder.
5759

5860
The SRE guidelines ground other coding guidelines and practices.
@@ -68,12 +70,16 @@ The SRE guidelines ground other coding guidelines and practices.
6870

6971
### ShellScripts Guidelines
7072

71-
- use shellcheck for sanity checking
72-
- use ShellSpec for testing
73+
- use shellcheck for sanity checking**all shell scripts must pass the CI shellcheck gate** (`make validate-shell`). This enforces POSIX compliance even in `#!/bin/bash` scripts (e.g., use `[ ]` not `[[ ]]`, use `=` not `==` for string comparison). Use `# shellcheck disable=SCXXXX` inline comments only when necessary and with justification.
74+
- use ShellSpec for testing — all shell script changes should have corresponding tests in `spec/parts/linux/`
7375
- the shell scripts are used on both azure linux/mariner and ubuntu and cross platform portability is critical.
7476
- when using functions defined in other files, ensure it is sourced properly.
77+
- for scriptless provisioning compatibility, security hotfix functions must be defined in `cse_main.sh` (not sourced from other scripts) so they work standalone.
78+
- prefer simple single-purpose functions with positional args over complex data-driven designs with associative arrays or encoded strings.
79+
- use `isUbuntu()`, `isMarinerOrAzureLinux()`, and `isACL()` helper functions for OS detection instead of raw string comparisons.
7580
- use local variables rather than constants when their scoping allows for it.
7681
- avoid using variables declared inside another function, even they are visible. It is hard to reason and might introduce subtle bugs.
82+
- define functions at top-level scope, not nested inside other functions.
7783

7884
## Pull Request Review Guidelines
7985

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,13 @@ updates:
1717
labels:
1818
- "cleanup"
1919
- "dependabot"
20+
21+
- package-ecosystem: "pip"
22+
directory: "/vhdbuilder/packer/test/pam"
23+
schedule:
24+
interval: daily
25+
time: "01:00"
26+
labels:
27+
- "cleanup"
28+
- "dependabot"
29+
versioning-strategy: increase

.github/renovate.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"custom.regex"
88
],
99
"prConcurrentLimit": 0,
10-
"prHourlyLimit": 2,
10+
"prHourlyLimit": 1,
1111
"branchConcurrentLimit": 0,
12-
"commitHourlyLimit": 2,
12+
"commitHourlyLimit": 1,
1313
"separateMinorPatch": true,
1414
"recreateWhen": "never",
1515
"labels": [
@@ -218,8 +218,10 @@
218218
},
219219
{
220220
"matchPackageNames": [
221+
"azure-cni",
221222
"containernetworking/azure-cni"
222223
],
224+
"groupName": "azure-cni",
223225
"reviewers": [
224226
"team:acn-cni-reviewers"
225227
],
@@ -380,6 +382,18 @@
380382
"nilo19"
381383
]
382384
},
385+
{
386+
"matchPackageNames": [
387+
"azure-acr-credential-provider-sysext"
388+
],
389+
"groupName": "acr-credential-provider-sysext",
390+
"assignees": [
391+
"nilo19"
392+
],
393+
"reviewers": [
394+
"nilo19"
395+
]
396+
},
383397
{
384398
"matchPackageNames": [
385399
"kubernetes-cri-tools"
@@ -496,7 +510,7 @@
496510
},
497511
{
498512
"matchPackageNames": [
499-
"oss/kubernetes/azure-cloud-node-manager"
513+
"**/azure-cloud-node-manager"
500514
],
501515
"groupName": "azure-cloud-node-manager",
502516
"assignees": [

.github/workflows/check-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
if: success()
1515
uses: actions/setup-go@v6
1616
with:
17-
go-version: '1.24'
17+
go-version: '1.25'
1818
- name: Checkout code
1919
uses: actions/checkout@v6
2020
- name: Run unit tests

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
- uses: actions/setup-go@v6
3232
with:
33-
go-version: '1.24'
33+
go-version: '1.25'
3434

3535
- run: |
3636
set -ex

.github/workflows/go-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
- uses: actions/checkout@v6
99
- uses: actions/setup-go@v6
1010
with:
11-
go-version: '1.24'
11+
go-version: '1.25'
1212
- run: |
1313
set -ex
1414
make test

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
steps:
2323
- uses: actions/setup-go@v6
2424
with:
25-
go-version: '1.24'
25+
go-version: '1.25'
2626
- uses: actions/checkout@v6
2727
- name: golangci-lint
2828
uses: golangci/golangci-lint-action@v9

.github/workflows/shellcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
- uses: actions/checkout@v6
99
- uses: actions/setup-go@v6
1010
with:
11-
go-version: '1.24'
11+
go-version: '1.25'
1212
- run: |
1313
make validate-shell
1414
name: Lint shell/bash scripts with ShellCheck

.github/workflows/shellspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
- uses: actions/checkout@v6
99
- uses: actions/setup-go@v6
1010
with:
11-
go-version: '1.24'
11+
go-version: '1.25'
1212
- run: |
1313
make shellspec-ci
1414
name: Run shell/bash script unit tests with shellspec

.github/workflows/validate-components.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ on: pull_request
44
jobs:
55
cue:
66
runs-on: ubuntu-latest
7-
environment: test
87
steps:
98
- uses: actions/checkout@v6
109
- uses: actions/setup-go@v6
1110
with:
12-
go-version: '1.24'
11+
go-version: '1.25'
1312
- name: Install cue
1413
run: |
1514
go version
@@ -46,7 +45,8 @@ jobs:
4645
- uses: actions/checkout@v6
4746
- uses: actions/setup-go@v6
4847
with:
49-
go-version: '1.24'
48+
go-version-file: e2e/go.mod
49+
cache-dependency-path: e2e/go.sum
5050
- name: Run GPU managed components version consistency test
5151
working-directory: ./e2e
5252
run: |

0 commit comments

Comments
 (0)