Skip to content

Commit 8944cb1

Browse files
committed
Merge remote-tracking branch 'azure/dev' into at-scope
2 parents 86a73cf + c8a6ad1 commit 8944cb1

File tree

3,139 files changed

+903962
-2697903
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,139 files changed

+903962
-2697903
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: GH Azdev Setup
2+
description: 'azdev env setup'
3+
4+
runs:
5+
using: 'composite'
6+
steps:
7+
- name: Check Init GH Event
8+
env:
9+
action: ${{ toJSON(github.event.action) }}
10+
label: ${{ toJSON(github.event.label) }}
11+
shell: bash
12+
run: |
13+
echo start azdev env setup
14+
- name: Checkout CLI repo
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0 # checkout all branches
18+
ref: ${{ github.event.pull_request.head.ref }}
19+
repository: ${{ github.event.pull_request.head.repo.full_name }} # checkout pull request branch
20+
- name: Set up Python 3.12
21+
uses: actions/setup-python@v3
22+
with:
23+
python-version: "3.12"
24+
- name: Install azdev
25+
shell: bash
26+
run: |
27+
python -m pip install --upgrade pip
28+
set -ev
29+
python -m venv env
30+
chmod +x env/bin/activate
31+
source ./env/bin/activate
32+
pip install azdev
33+
azdev --version
34+
cd ../
35+
azdev setup -c azure-cli --debug
36+
az --version
37+
pip list -v

.github/policies/resourceManagement.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,9 +1176,11 @@ configuration:
11761176
- mentionUsers:
11771177
mentionees:
11781178
- toddysm
1179-
- luisdlp
11801179
- northtyphoon
1180+
- luisdlp
11811181
- terencet-dev
1182+
- shizhMSFT
1183+
- JXavierMSFT
11821184
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
11831185
assignMentionees: False
11841186
- if:
@@ -4423,7 +4425,19 @@ configuration:
44234425
isRegex: True
44244426
then:
44254427
- requestReview:
4426-
reviewer: wangzelin007
4428+
reviewer: northtyphoon
4429+
- requestReview:
4430+
reviewer: terencet-dev
4431+
- requestReview:
4432+
reviewer: JXavierMSFT
4433+
- requestReview:
4434+
reviewer: toddysm
4435+
- requestReview:
4436+
reviewer: rosanch
4437+
- requestReview:
4438+
reviewer: yanzhudd
4439+
- requestReview:
4440+
reviewer: shizhMSFT
44274441
- requestReview:
44284442
reviewer: zhoxing-ms
44294443
- requestReview:

.github/workflows/AzdevLinter.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: GH Check CLI Linter
2+
on:
3+
pull_request_target:
4+
types: [opened, labeled, unlabeled, synchronize]
5+
branches:
6+
- dev
7+
8+
permissions: {}
9+
10+
jobs:
11+
azdev-linter:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
pull-requests: read
15+
contents: read
16+
steps:
17+
- name: Checkout CLI repo
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 1
21+
sparse-checkout: |
22+
.github
23+
- name: Azdev Env Setup
24+
uses: ./.github/actions/env-setup
25+
- name: Get Base Branch
26+
env:
27+
bash_sha: ${{ github.event.pull_request.base.sha }}
28+
base_branch: ${{ github.event.pull_request.base.ref }}
29+
base_repo: ${{ github.event.pull_request.base.repo.clone_url }}
30+
base_branch_pre: "upstream"
31+
diff_sha: ${{ github.event.pull_request.head.sha }}
32+
diff_branch: ${{ github.event.pull_request.head.ref }}
33+
repo_full_name: ${{ github.event.pull_request.head.repo.full_name }}
34+
run: |
35+
set -x
36+
git --version
37+
git log --oneline | head -n 10
38+
git branch -a
39+
git fetch "$base_repo" "$base_branch":"$base_branch_pre"/"$base_branch"
40+
git checkout "$base_branch_pre"/"$base_branch"
41+
- name: Run Azdev Style
42+
env:
43+
pr_label_list: ${{ toJson(github.event.pull_request.labels.*.name) }}
44+
pr_user: ${{ github.event.pull_request.user.login }}
45+
base_branch: ${{ github.event.pull_request.base.ref }}
46+
base_branch_pre: "upstream"
47+
diff_branch: ${{ github.event.pull_request.head.ref }}
48+
run: |
49+
chmod +x env/bin/activate
50+
source ./env/bin/activate
51+
set -ev
52+
53+
git checkout -f "$diff_branch"
54+
# always use the latest scripts from base branch
55+
git checkout "$base_branch_pre"/"$base_branch" -- scripts
56+
git checkout "$base_branch_pre"/"$base_branch" -- .github
57+
58+
python scripts/ci/service_name.py
59+
merge_base=$(git merge-base HEAD "$base_branch_pre"/"$base_branch")
60+
echo merge_base: "$merge_base"
61+
azdev linter --ci-exclusions --min-severity medium --repo ./ --src "$diff_branch" --tgt "$merge_base"

.github/workflows/AzdevStyle.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: GH Check CLI Style
2+
on:
3+
pull_request_target:
4+
types: [opened, labeled, unlabeled, synchronize]
5+
branches:
6+
- dev
7+
8+
permissions: {}
9+
10+
jobs:
11+
azdev-style:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
pull-requests: read
15+
contents: read
16+
steps:
17+
- name: Checkout CLI repo
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 1
21+
sparse-checkout: |
22+
.github
23+
- name: Azdev Env Setup
24+
uses: ./.github/actions/env-setup
25+
- name: Get Base Branch
26+
env:
27+
bash_sha: ${{ github.event.pull_request.base.sha }}
28+
base_branch: ${{ github.event.pull_request.base.ref }}
29+
base_repo: ${{ github.event.pull_request.base.repo.clone_url }}
30+
base_branch_pre: "upstream"
31+
diff_sha: ${{ github.event.pull_request.head.sha }}
32+
diff_branch: ${{ github.event.pull_request.head.ref }}
33+
repo_full_name: ${{ github.event.pull_request.head.repo.full_name }}
34+
run: |
35+
set -x
36+
git --version
37+
git log --oneline | head -n 10
38+
git branch -a
39+
git fetch "$base_repo" "$base_branch":"$base_branch_pre"/"$base_branch"
40+
git checkout "$base_branch_pre"/"$base_branch"
41+
- name: Run Azdev Style
42+
env:
43+
pr_label_list: ${{ toJson(github.event.pull_request.labels.*.name) }}
44+
pr_user: ${{ github.event.pull_request.user.login }}
45+
base_branch: ${{ github.event.pull_request.base.ref }}
46+
base_branch_pre: "upstream"
47+
diff_branch: ${{ github.event.pull_request.head.ref }}
48+
run: |
49+
chmod +x env/bin/activate
50+
source ./env/bin/activate
51+
set -ev
52+
53+
git checkout -f "$diff_branch"
54+
# always use the latest scripts from base branch
55+
git checkout "$base_branch_pre"/"$base_branch" -- scripts
56+
git checkout "$base_branch_pre"/"$base_branch" -- .github
57+
merge_base=$(git merge-base HEAD "$base_branch_pre"/"$base_branch")
58+
echo merge_base: "$merge_base"
59+
# check azdev style on diff mod
60+
azdev style

azure-pipelines-full-tests.yml

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -16,63 +16,6 @@ variables:
1616
- template: ${{ variables.Pipeline.Workspace }}/.azure-pipelines/templates/variables.yml
1717

1818
jobs:
19-
- job: AutomationTest20200901
20-
displayName: Automation Test (Profile 2020-09-01)
21-
timeoutInMinutes: 120
22-
pool:
23-
name: ${{ variables.ubuntu_pool }}
24-
strategy:
25-
matrix:
26-
Python39:
27-
python.version: '3.9'
28-
Python312:
29-
python.version: '3.12'
30-
steps:
31-
- template: .azure-pipelines/templates/automation_test.yml
32-
parameters:
33-
pythonVersion: '$(python.version)'
34-
profile: '2020-09-01-hybrid'
35-
fullTest: true
36-
jobName: 'FullTest'
37-
38-
- job: AutomationTest20190301
39-
displayName: Automation Test (Profile 2019-03-01)
40-
timeoutInMinutes: 120
41-
pool:
42-
name: ${{ variables.ubuntu_pool }}
43-
strategy:
44-
matrix:
45-
Python39:
46-
python.version: '3.9'
47-
Python312:
48-
python.version: '3.12'
49-
steps:
50-
- template: .azure-pipelines/templates/automation_test.yml
51-
parameters:
52-
pythonVersion: '$(python.version)'
53-
profile: '2019-03-01-hybrid'
54-
fullTest: true
55-
jobName: 'FullTest'
56-
57-
- job: AutomationTest20180301
58-
displayName: Automation Test (Profile 2018-03-01)
59-
timeoutInMinutes: 120
60-
pool:
61-
name: ${{ variables.ubuntu_pool }}
62-
strategy:
63-
matrix:
64-
Python39:
65-
python.version: '3.9'
66-
Python312:
67-
python.version: '3.12'
68-
steps:
69-
- template: .azure-pipelines/templates/automation_test.yml
70-
parameters:
71-
pythonVersion: '$(python.version)'
72-
profile: '2018-03-01-hybrid'
73-
fullTest: true
74-
jobName: 'FullTest'
75-
7619
- job: AutomationFullTestPython39ProfileLatest
7720
displayName: Automation Full Test Python39 Profile Latest
7821
timeoutInMinutes: 9999

azure-pipelines.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -816,13 +816,13 @@ jobs:
816816
dockerfile: ubi
817817
image: registry.access.redhat.com/ubi8/ubi:8.4
818818
artifact: rpm-ubi8-${{ arch.value }}
819-
python_package: python39
819+
python_package: python3.12
820820
pool: ${{ arch.pool }}
821821
Red Hat Universal Base Image 9 ${{ arch.name }}:
822822
dockerfile: ubi
823823
image: registry.access.redhat.com/ubi9/ubi:9.0.0
824824
artifact: rpm-ubi9-${{ arch.value }}
825-
python_package: python3.9
825+
python_package: python3.12
826826
pool: ${{ arch.pool }}
827827
steps:
828828
- bash: ./scripts/ci/install_docker.sh
@@ -864,17 +864,17 @@ jobs:
864864
artifact: rpm-ubi8-${{ arch.value }}
865865
distro: el8
866866
image: registry.access.redhat.com/ubi8/ubi:8.4
867-
python_package: python39
868-
python_cmd: python3.9
869-
pip_cmd: pip3.9
867+
python_package: python3.12
868+
python_cmd: python3.12
869+
pip_cmd: pip3.12
870870
pool: ${{ arch.pool }}
871871
Red Hat Universal Base Image 9 ${{ arch.name }}:
872872
artifact: rpm-ubi9-${{ arch.value }}
873873
distro: el9
874874
image: registry.access.redhat.com/ubi9/ubi:9.0.0
875-
python_package: python3.9
876-
python_cmd: python3.9
877-
pip_cmd: pip3.9
875+
python_package: python3.12
876+
python_cmd: python3.12
877+
pip_cmd: pip3.12
878878
pool: ${{ arch.pool }}
879879
steps:
880880
- task: DownloadPipelineArtifact@1
@@ -913,12 +913,6 @@ jobs:
913913
matrix:
914914
${{ each arch in parameters.architectures }}:
915915
# https://wiki.ubuntu.com/Releases
916-
Focal ${{ arch.name }}:
917-
# 20.04
918-
deb_system: ubuntu
919-
distro: focal
920-
arch: ${{ arch.value }}
921-
pool: ${{ arch.pool }}
922916
Jammy ${{ arch.name }}:
923917
# 22.04
924918
deb_system: ubuntu
@@ -982,11 +976,6 @@ jobs:
982976
strategy:
983977
matrix:
984978
${{ each arch in parameters.architectures }}:
985-
Focal ${{ arch.name }}:
986-
deb_system: ubuntu
987-
distro: focal
988-
arch: ${{ arch.value }}
989-
pool: ${{ arch.pool }}
990979
Jammy ${{ arch.name }}:
991980
deb_system: ubuntu
992981
distro: jammy

build_scripts/windows/scripts/patch_models_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def find_models_to_change(module_name):
245245
return [
246246
importlib.import_module('.'+label+'.models', main_module.__name__)
247247
for (_, label, ispkg) in pkgutil.iter_modules(main_module.__path__)
248-
if ispkg and label != 'aio'
248+
if ispkg and label != 'aio' and label != '_utils'
249249
]
250250

251251

0 commit comments

Comments
 (0)