Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
a03d03d
WeightsAndBiases CLI commands initial release
aggarwalsw Mar 27, 2025
133b22f
{spring-cloud} Patch version for updated doc (#8607)
cxznmhdcxz Mar 31, 2025
e59dc7f
{resource-mover} Patch version for updated doc (#8605)
cxznmhdcxz Mar 31, 2025
8f47105
[Release] Update index.json for extension [ spring-cloud-3.1.9 ]
azclibot Mar 31, 2025
a893df7
[Release] Update index.json for extension [ resource-mover-1.0.0b2 ]
azclibot Mar 31, 2025
0e74e03
update version (#8594)
cxznmhdcxz Mar 31, 2025
2521e18
[Release] Update index.json for extension [ alertsmanagement-1.0.0b2 ]
azclibot Mar 31, 2025
c64f2dd
Added tests for communication email, domain and senderusername (#8613)
Deepika0530 Mar 31, 2025
3ab995f
{redisenterprise} Patch version for updated doc (#8604)
cxznmhdcxz Mar 31, 2025
0249d01
[Release] Update index.json for extension [ redisenterprise-1.2.1b2 ]
azclibot Mar 31, 2025
fcf8523
{CI} Adjust version calculation to use `whl` for base metadata (#8610)
AllyW Mar 31, 2025
a1f6b62
{authV2} Patch version for updated doc (#8595)
cxznmhdcxz Apr 1, 2025
25806d1
{elastic-san} patch version for documentation (#8596)
cxznmhdcxz Apr 1, 2025
6c09211
updating stack-hci-vm cli to 1.7.7 (#8616)
hvedati Apr 1, 2025
51d0827
Hotfix 2.36.1 (#8623)
kshitij-microsoft Apr 2, 2025
0a6647d
{AKS} Vendor new SDK and bump API version to 2025-01-02-preview (#8618)
FumingZhang Apr 2, 2025
22d18d3
set minimum TLS version to 1.2 (#8628)
yanzhudd Apr 2, 2025
feef068
[Azure Firewall - Save And Commit Feature] Add fix to copy current da…
cshahra Apr 2, 2025
9910c19
[Release] Update index.json for extension [ authV2-1.0.0 ]
azclibot Apr 3, 2025
d8ce218
[Release] Update index.json for extension [ elastic-san-1.2.0b2 ]
azclibot Apr 3, 2025
a091b83
[Release] Update index.json for extension [ image-copy-1.0.2 ]
azclibot Apr 3, 2025
2f870cf
[image-copy-1.0.2] - Update sha256Digest (#8629)
wangzelin007 Apr 3, 2025
1841653
[Release] Update index.json for extension [ azure-firewall-1.2.3 ]
azclibot Apr 3, 2025
e2d0bdd
[load] Adding commands to manage notification-rule in azure load test…
Himanshu49 Apr 3, 2025
97e37b4
[Release] Update index.json for extension [ load-2.0.0 ]
azclibot Apr 3, 2025
78e2a0b
adding stack-hci-vm cli 1.7.8 (#8633)
hvedati Apr 6, 2025
2d18f6c
add Fleet API 2025-03-01 (#8589)
frantran Apr 7, 2025
fb019cb
[Release] Update index.json for extension [ fleet-1.5.0 ]
azclibot Apr 7, 2025
de3879f
{Spring} Use sha256 instead of md5 (#8638)
ninpan-ms Apr 7, 2025
4cee860
add linter (#8627)
AllyW Apr 8, 2025
e8b59a6
{image-gallery} Patch version for updated doc (#8600)
cxznmhdcxz Apr 8, 2025
2ce369b
[Release] Update index.json for extension [ image-gallery-1.0.0b1 ]
azclibot Apr 8, 2025
29ef9ca
{Cosmosdb-preview} Adding param azure-connection-method to Managed ca…
sachinAtMS Apr 8, 2025
ac0978c
[Release] Update index.json for extension [ cosmosdb-preview-1.3.0 ]
azclibot Apr 8, 2025
1d774a7
reset workflow file (#8642)
AllyW Apr 8, 2025
3d4b99b
Support blob storage token store authenticate with MSI (#8640)
njuCZ Apr 9, 2025
6337d4b
Hotfix 2.36.2 (#8644)
kshitij-microsoft Apr 10, 2025
77133ff
{AKS} Rename to addon-autoscaling preview CLI to optimized-addon-scal…
chihshenghuang Apr 10, 2025
e577cbe
[Release] Update index.json for extension [ aks-preview-14.0.0b1 ]
azclibot Apr 10, 2025
a049bc8
adding 1.7.9 version (#8647)
hvedati Apr 10, 2025
43c88fc
updating sha for 2.36.1 (#8649)
achauhan-scc Apr 10, 2025
6a7bb1a
[AKS] Adjust Node Initialization Taints preview CLI to ignore k8s tai…
UtheMan Apr 11, 2025
89d7b54
add linter example validate task (#8651)
AllyW Apr 11, 2025
17c8bae
Force Included instance py files
aggarwalsw Apr 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
51 changes: 51 additions & 0 deletions .github/actions/env-setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: GH Azdev Setup
description: 'azdev env setup'

runs:
using: 'composite'
steps:
- name: Check Init GH Event
env:
action: ${{ toJSON(github.event.action) }}
label: ${{ toJSON(github.event.label) }}
shell: bash
run: |
echo start azdev env setup
- name: Checkout CLI extension repo
uses: actions/checkout@v4
with:
fetch-depth: 0 # checkout all branches
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }} # checkout pull request branch
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Checkout CLI main repo
uses: actions/checkout@v4
with:
repository: Azure/azure-cli
path: ./azure-cli
- name: Move the main repo to the same level as the extension repo
shell: bash
run: |
pwd
ls
mv azure-cli ../
cd ../
pwd
ls
- name: Install azdev
shell: bash
run: |
python -m pip install --upgrade pip
set -ev
python -m venv env
chmod +x env/bin/activate
source ./env/bin/activate
pip install azdev
azdev --version
cd ../
azdev setup -c azure-cli -r azure-cli-extensions --debug
az --version
pip list -v
97 changes: 97 additions & 0 deletions .github/workflows/AzdevLinter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: GH Azdev Linter

on:
workflow_dispatch:
pull_request_target:
types: [opened, labeled, unlabeled, synchronize]
branches:
- main

permissions: {}

jobs:
azdev-linter:
runs-on: ubuntu-latest
permissions:
pull-requests: read
contents: read
steps:
- name: Checkout CLI extension repo
uses: actions/checkout@v4
with:
fetch-depth: 1
sparse-checkout: |
.github
- name: Azdev Env Setup
uses: ./.github/actions/env-setup
- name: Get Diff Files
env:
bash_sha: ${{ github.event.pull_request.base.sha }}
base_branch: ${{ github.event.pull_request.base.ref }}
base_repo: ${{ github.event.pull_request.base.repo.clone_url }}
base_branch_pre: "upstream"
diff_sha: ${{ github.event.pull_request.head.sha }}
diff_branch: ${{ github.event.pull_request.head.ref }}
repo_full_name: ${{ github.event.pull_request.head.repo.full_name }}
run: |
set -x
git --version
git log --oneline | head -n 10
git branch -a
git fetch "$base_repo" "$base_branch":"$base_branch_pre"/"$base_branch"
git checkout "$base_branch_pre"/"$base_branch"
git log --oneline | head -n 10
git checkout "$diff_branch"
git log --oneline | head -n 10
git --no-pager diff --name-only --diff-filter=ACMRT "$base_branch_pre"/"$base_branch"..."$diff_branch"
set +e
# by default set -e is enabled to run commands, intermediate command failure may cause the whole step to fail. disable it here.
git --no-pager diff --name-only --diff-filter=ACMRT "$base_branch_pre"/"$base_branch"..."$diff_branch" | grep -v "/tests/" > changed_files
cat changed_files
cat changed_files | grep src/ | awk -F"src/" '{print $2}'| grep / | awk -F"/" '{print $1}' | sort | uniq
echo "changed_module_list=$(cat changed_files | grep src/ | awk -F"src/" '{print $2}'| grep / | awk -F"/" '{print $1}' | sort | uniq | xargs)" >> $GITHUB_ENV
git checkout -f "$base_branch_pre"/"$base_branch"
- name: Display PR Diff Modules
run: |
for mod in ${changed_module_list[@]}
do
echo changed module: "${mod}"
done
if [ -z "$changed_module_list" ]; then
echo "no_changed_mod=true" >> $GITHUB_ENV
else
echo "no_changed_mod=false" >> $GITHUB_ENV
fi
echo array length
echo ${#changed_module_list[@]}

- name: Run Azdev Linter
if: ${{ env.no_changed_mod == 'false' }}
env:
pr_label_list: ${{ toJson(github.event.pull_request.labels.*.name) }}
pr_user: ${{ github.event.pull_request.user.login }}
base_branch: ${{ github.event.pull_request.base.ref }}
base_branch_pre: "upstream"
diff_branch: ${{ github.event.pull_request.head.ref }}
run: |
chmod +x env/bin/activate
source ./env/bin/activate
set -ev

git checkout -f "$diff_branch"
# always use the latest index.json and scripts from base branch
git checkout "$base_branch_pre"/"$base_branch" -- scripts
git checkout "$base_branch_pre"/"$base_branch" -- src/index.json
git checkout "$base_branch_pre"/"$base_branch" -- .github
merge_base=$(git merge-base HEAD "$base_branch_pre"/"$base_branch")
echo merge_base: "$merge_base"

for mod in ${changed_module_list[@]}
do
echo changed module: "${mod}"
azdev extension add "${mod}"
# ado linter task
azdev linter "${mod}" --min-severity medium
done
# linter task that needs git commit info
azdev linter EXT --repo ./ --src "$diff_branch" --tgt "$merge_base" --rules missing_command_example
94 changes: 94 additions & 0 deletions .github/workflows/AzdevStyle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: GH Azdev Style

on:
workflow_dispatch:
pull_request_target:
types: [opened, labeled, unlabeled, synchronize]
branches:
- main

permissions: {}

jobs:
azdev-style:
runs-on: ubuntu-latest
permissions:
pull-requests: read
contents: read
steps:
- name: Checkout CLI extension repo
uses: actions/checkout@v4
with:
fetch-depth: 1
sparse-checkout: |
.github
- name: Azdev Env Setup
uses: ./.github/actions/env-setup
- name: Get Diff Files
env:
bash_sha: ${{ github.event.pull_request.base.sha }}
base_branch: ${{ github.event.pull_request.base.ref }}
base_repo: ${{ github.event.pull_request.base.repo.clone_url }}
base_branch_pre: "upstream"
diff_sha: ${{ github.event.pull_request.head.sha }}
diff_branch: ${{ github.event.pull_request.head.ref }}
repo_full_name: ${{ github.event.pull_request.head.repo.full_name }}
run: |
set -x
git --version
git log --oneline | head -n 10
git branch -a
git fetch "$base_repo" "$base_branch":"$base_branch_pre"/"$base_branch"
git checkout "$base_branch_pre"/"$base_branch"
git log --oneline | head -n 10
git checkout "$diff_branch"
git log --oneline | head -n 10
git --no-pager diff --name-only --diff-filter=ACMRT "$base_branch_pre"/"$base_branch"..."$diff_branch"
set +e
# by default set -e is enabled to run commands, intermediate command failure may cause the whole step to fail. disable it here.
git --no-pager diff --name-only --diff-filter=ACMRT "$base_branch_pre"/"$base_branch"..."$diff_branch" | grep -v "/tests/" > changed_files
cat changed_files
cat changed_files | grep src/ | awk -F"src/" '{print $2}'| grep / | awk -F"/" '{print $1}' | sort | uniq
echo "changed_module_list=$(cat changed_files | grep src/ | awk -F"src/" '{print $2}'| grep / | awk -F"/" '{print $1}' | sort | uniq | xargs)" >> $GITHUB_ENV
git checkout -f "$base_branch_pre"/"$base_branch"
- name: Display PR Diff Modules
run: |
for mod in ${changed_module_list[@]}
do
echo changed module: "${mod}"
done
if [ -z "$changed_module_list" ]; then
echo "no_changed_mod=true" >> $GITHUB_ENV
else
echo "no_changed_mod=false" >> $GITHUB_ENV
fi
echo array length
echo ${#changed_module_list[@]}

- name: Run Azdev Style
if: ${{ env.no_changed_mod == 'false' }}
env:
pr_label_list: ${{ toJson(github.event.pull_request.labels.*.name) }}
pr_user: ${{ github.event.pull_request.user.login }}
base_branch: ${{ github.event.pull_request.base.ref }}
base_branch_pre: "upstream"
diff_branch: ${{ github.event.pull_request.head.ref }}
run: |
chmod +x env/bin/activate
source ./env/bin/activate
set -ev

git checkout -f "$diff_branch"
# always use the latest index.json and scripts from base branch
git checkout "$base_branch_pre"/"$base_branch" -- scripts
git checkout "$base_branch_pre"/"$base_branch" -- src/index.json
git checkout "$base_branch_pre"/"$base_branch" -- .github
merge_base=$(git merge-base HEAD "$base_branch_pre"/"$base_branch")
echo merge_base: "$merge_base"

for mod in ${changed_module_list[@]}
do
echo changed module: "${mod}"
azdev extension add "${mod}"
azdev style "${mod}"
done
20 changes: 9 additions & 11 deletions .github/workflows/VersionCalPRComment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,28 +140,26 @@ jobs:
chmod +x env/bin/activate
source ./env/bin/activate
set -ev
git checkout "$base_branch_pre"/"$base_branch"
mkdir "$base_meta_path"
for mod in ${changed_module_list[@]}
do
echo changed module: "${mod}"
azdev extension add "${mod}" && azdev command-change meta-export "${mod}" --meta-output-path ./"$base_meta_path"/ && azdev extension remove "${mod}"
done
mkdir "$diff_meta_path"

# some module, like confcom, will change local data files, like data/rules.rego, during installation, need to reset when checkout different branch
git checkout -f "$diff_branch"
mkdir "$diff_meta_path"
# always use the latest index.json and scripts from base branch
git checkout "$base_branch_pre"/"$base_branch" -- scripts
git checkout "$base_branch_pre"/"$base_branch" -- src/index.json

for mod in ${changed_module_list[@]}
do
echo changed module: "${mod}"
azdev extension add "${mod}" && azdev command-change meta-export "${mod}" --meta-output-path ./"$diff_meta_path"/
done
ls ./"$base_meta_path"/
ls ./"$diff_meta_path"/
ls ./"$base_meta_path"/
ls "$result_path"
git checkout "$base_branch_pre"/"$base_branch" -- scripts
# use the latest index.json from base branch
git checkout "$base_branch_pre"/"$base_branch" -- src/index.json
python scripts/ci/release_version_cal.py
ls ./"$diff_meta_path"/
ls ./"$base_meta_path"/
ls "$result_path"
cat "$result_path"/"$remove_labels_file"
cat "$result_path"/"$output_file"
Expand Down
Loading
Loading