Skip to content
Merged
Changes from all commits
Commits
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
49 changes: 0 additions & 49 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1154,52 +1154,3 @@ jobs:
if [ "${#secret_files[@]}" -gt 0 ]; then
exit 1
fi

- job: CodegenCoverage
condition: in(variables['Build.Reason'], 'BatchedCI', 'IndividualCI')
timeoutInMinutes: 180
displayName: "Codegen Coverage"
continueOnError: true
pool:
name: ${{ variables.ubuntu_pool }}
steps:
- task: UsePythonVersion@0
displayName: 'Use Python 3.11'
inputs:
versionSpec: '3.11'
- template: .azure-pipelines/templates/azdev_setup.yml
- bash: |
set -ev
. env/bin/activate
# clone azure-cli-extensions
cd ..
git clone --depth 1 -b main https://github.com/Azure/azure-cli-extensions.git ./azure-cli-extensions
azdev extension repo add ./azure-cli-extensions
azdev extension add "*"
pip install msrestazure markupsafe==2.0.1
# Some extension will change the dependence, so run `azdev setup` again after all extensions installed.
azdev setup -c ./s -r ./azure-cli-extensions

mkdir -p /tmp/module_stats

find /mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/ -mindepth 1 -maxdepth 1 -type d -printf "%f\n" | grep -v '^__pycache__$' > /mnt/vss/_work/1/s/scripts/ci/core_modules.txt
echo "=== Core Modules ==="
cat /mnt/vss/_work/1/s/scripts/ci/core_modules.txt

find /mnt/vss/_work/1/azure-cli-extensions/src/ -mindepth 1 -maxdepth 1 -type d -printf "%f\n" | grep -v '^__pycache__$' > /mnt/vss/_work/1/s/scripts/ci/extension_modules.txt
echo "=== Extension Modules ==="
cat /mnt/vss/_work/1/s/scripts/ci/extension_modules.txt

for module in $(cat /mnt/vss/_work/1/s/scripts/ci/core_modules.txt); do
azdev statistics list-command-table $module --statistics-only > /tmp/module_stats/${module}.json || true
done

for module in $(cat /mnt/vss/_work/1/s/scripts/ci/extension_modules.txt); do
azdev statistics list-command-table $module --statistics-only > /tmp/module_stats/${module}.json || true
done
azdev statistics list-command-table --statistics-only > /tmp/codegen_report.json || true
python /mnt/vss/_work/1/s/scripts/ci/codegen_report.py
env:
BUILD_ID: $(Build.BuildId)
BUILD_BRANCH: $(Build.SourceBranchName)
enabled: true
Loading