Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{CI} Fix extension release scripts #7275

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
2517e69
update
wangzelin007 Feb 7, 2024
bc3aed8
update
wangzelin007 Feb 7, 2024
f2b7bab
update
wangzelin007 Feb 7, 2024
87f519a
update
wangzelin007 Feb 7, 2024
8906e0b
update
wangzelin007 Feb 7, 2024
b6017d4
Update update_ext_cmd_tree.py
wangzelin007 Feb 7, 2024
2c3d7a3
Update update_ext_cmd_tree.py
wangzelin007 Feb 7, 2024
5de410e
update
wangzelin007 Feb 8, 2024
0c3bb06
Merge branch 'main' into release-scripts
wangzelin007 Feb 8, 2024
bfe5ed1
update
wangzelin007 Feb 8, 2024
8a844b7
Update sync_extensions.py
wangzelin007 Feb 8, 2024
29f00c6
Update util.py
wangzelin007 Feb 8, 2024
148eaf3
Merge branch 'main' into release-scripts
wangzelin007 Apr 8, 2024
e8c767a
Update util.py
wangzelin007 May 31, 2024
212f082
Update util.py
wangzelin007 May 31, 2024
08f3b0a
Create build_all_ext.sh
wangzelin007 May 31, 2024
bb4a4e2
Revert "Create build_all_ext.sh"
wangzelin007 Jun 3, 2024
218ca95
Update build_ext_cmd_tree.sh
wangzelin007 Oct 15, 2024
690b7ce
Update build_ext_cmd_tree.sh
wangzelin007 Oct 15, 2024
e8572a7
Update build_ext_cmd_tree.sh
wangzelin007 Oct 15, 2024
7447487
Update build_ext_cmd_tree.sh
wangzelin007 Oct 15, 2024
868a7b2
Update build_ext_cmd_tree.sh
wangzelin007 Oct 15, 2024
80a3c1c
Update build_ext_cmd_tree.sh
wangzelin007 Oct 16, 2024
6ac4465
Update build_ext_cmd_tree.sh
wangzelin007 Oct 17, 2024
9beaa14
Update build_ext_cmd_tree.sh
wangzelin007 Oct 17, 2024
8578db6
Merge branch 'main' into release-scripts
wangzelin007 Nov 18, 2024
ac63598
generate command tree for ml
wangzelin007 Dec 20, 2024
50d18b4
Merge branch 'main' into release-scripts
wangzelin007 Dec 20, 2024
6d0db41
Merge branch 'main' into release-scripts
wangzelin007 Dec 20, 2024
9c84141
generate command tree for ml
wangzelin007 Dec 23, 2024
eac3fb4
generate command tree for ml
wangzelin007 Dec 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Create build_all_ext.sh
  • Loading branch information
wangzelin007 committed May 31, 2024
commit 08f3b0acad3e481a8337a3eecd18771f57706e33
41 changes: 41 additions & 0 deletions scripts/ci/build_all_ext.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/usr/bin/env bash

changed_content=$(git --no-pager diff --diff-filter=ACMRT HEAD~$AZURE_EXTENSION_COMMIT_NUM -- src/index.json)
if [[ -z "$changed_content" ]]; then
echo "index.json not modified. End task."
exit 0
fi

pip install azure-cli-core azure-cli requests
pip install azure-storage-blob==1.5.0
echo "Listing Available Extensions:"
az extension list-available -otable

# turn off telemetry as it crowds output
export AZURE_CORE_COLLECT_TELEMETRY=False

# use index.json in master branch
export AZURE_EXTENSION_INDEX_URL=https://raw.githubusercontent.com/Azure/azure-cli-extensions/master/src/index.json

output=$(az extension list-available --query [].name -otsv)
# azure-cli-ml is replaced by ml
# disable alias which relies on Jinja2 2.10
blocklist=("azure-cli-ml" "alias")

rm -f ~/.azure/extCmdTreeToUpload.json

filter_exts=""
for ext in $output; do
ext=${ext%$'\r'} # Remove a trailing newline when running on Windows.
if [[ " ${blocklist[@]} " =~ " ${ext} " ]]; then
continue
fi
filter_exts="${filter_exts} ${ext}"
echo "Adding extension:" $ext
az extension add --upgrade -n $ext
if [ $? != 0 ]
then
echo "Failed to load:" $ext
exit 1
fi
done
Loading