Skip to content

Commit fd09e2c

Browse files
2 parents 2952da8 + 3f1b8dd commit fd09e2c

20 files changed

Lines changed: 286 additions & 94 deletions

.github/workflows/codeql.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,22 @@ name: "CodeQL Advanced"
1414
on:
1515
push:
1616
branches: [ "main", "dev", "demo" ]
17+
paths:
18+
- 'src/**/*.py'
19+
- 'src/**/*.js'
20+
- 'src/**/*.ts'
21+
- 'src/**/*.tsx'
22+
- 'tests/**/*.py'
23+
- '.github/workflows/codeql.yml'
1724
pull_request:
1825
branches: [ "main", "dev", "demo" ]
26+
paths:
27+
- 'src/**/*.py'
28+
- 'src/**/*.js'
29+
- 'src/**/*.ts'
30+
- 'src/**/*.tsx'
31+
- 'tests/**/*.py'
32+
- '.github/workflows/codeql.yml'
1933
schedule:
2034
- cron: '44 20 * * 2'
2135

@@ -91,4 +105,4 @@ jobs:
91105
- name: Perform CodeQL Analysis
92106
uses: github/codeql-action/analyze@v4
93107
with:
94-
category: "/language:${{matrix.language}}"
108+
category: "/language:${{matrix.language}}"

.github/workflows/deploy-linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: Deploy-Test-Cleanup (v2) Linux
22
on:
33
workflow_run:
4-
workflows: ["Build Docker and Optional Push v3"]
4+
workflows: ["Build Docker and Optional Push v4"]
55
types:
66
- completed
77
branches:
88
- main
9-
- dev-v3
9+
- dev-v4
1010
- hotfix
1111
workflow_dispatch:
1212
inputs:

.github/workflows/deploy-orchestrator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
secrets: inherit
125125

126126
cleanup-deployment:
127-
if: always() && needs.deploy.result == 'success' && needs.deploy.outputs.RESOURCE_GROUP_NAME != '' && inputs.existing_webapp_url == '' && (inputs.trigger_type != 'workflow_dispatch' || inputs.cleanup_resources)
127+
if: "!cancelled() && needs.deploy.outputs.RESOURCE_GROUP_NAME != '' && inputs.existing_webapp_url == '' && (inputs.trigger_type != 'workflow_dispatch' || inputs.cleanup_resources)"
128128
needs: [docker-build, deploy, e2e-test]
129129
uses: ./.github/workflows/job-cleanup-deployment.yml
130130
with:

.github/workflows/deploy.yml

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126
elif [[ "${{ env.BRANCH_NAME }}" == "hotfix" ]]; then
127127
IMAGE_TAG="hotfix"
128128
else
129-
IMAGE_TAG="latest_v3"
129+
IMAGE_TAG="latest_v4"
130130
fi
131131
132132
# Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
@@ -183,28 +183,9 @@ jobs:
183183
184184
echo "Running post-deployment script..."
185185
186-
# Extract required resource names from the deployment
187-
STORAGE_ACCOUNT=$(az resource list --resource-group ${{ env.RESOURCE_GROUP_NAME }} --resource-type "Microsoft.Storage/storageAccounts" --query "[0].name" -o tsv)
188-
AI_SEARCH=$(az resource list --resource-group ${{ env.RESOURCE_GROUP_NAME }} --resource-type "Microsoft.Search/searchServices" --query "[0].name" -o tsv)
189-
190-
echo "Found Storage Account: $STORAGE_ACCOUNT"
191-
echo "Found AI Search Service: $AI_SEARCH"
192-
echo "Backend URL: ${{ steps.get_backend_url.outputs.MACAE_URL_API }}"
193-
194-
# Run upload team config script with parameters
195-
bash infra/scripts/upload_team_config.sh \
196-
"${{ steps.get_backend_url.outputs.MACAE_URL_API }}" \
197-
"data/agent_teams" \
198-
"${{ secrets.AZURE_SUBSCRIPTION_ID }}"
199-
200-
# Run process sample data script with parameters
201-
bash infra/scripts/process_sample_data.sh \
202-
"$STORAGE_ACCOUNT" \
203-
"sample-dataset" \
204-
"$AI_SEARCH" \
205-
"sample-dataset-index" \
206-
"${{ env.RESOURCE_GROUP_NAME }}" \
207-
"${{ secrets.AZURE_SUBSCRIPTION_ID }}"
186+
# Run PowerShell script with 'All' use case automatically selected
187+
# Provide two inputs: '1' for keeping current subscription, '5' for All use cases
188+
echo -e "1\n5" | pwsh -File infra/scripts/Selecting-Team-Config-And-Data.ps1 -ResourceGroup "${{ env.RESOURCE_GROUP_NAME }}"
208189
209190
echo "=== Post-Deployment Script Completed Successfully ==="
210191

.github/workflows/docker-build-and-push.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ on:
77
- dev-v4
88
- demo-v4
99
- hotfix
10+
paths:
11+
- 'src/frontend/**'
12+
- 'src/backend/**'
13+
- 'src/mcp_server/**'
14+
- '.github/workflows/docker-build-and-push.yml'
15+
- 'infra/main.bicep'
16+
- 'infra/modules/**/*.bicep'
17+
- 'infra/*.parameters.json'
18+
- 'infra/scripts/**'
19+
- '.github/workflows/deploy.yml'
20+
- 'azure.yaml'
21+
- 'azure_custom.yaml'
1022
pull_request:
1123
types:
1224
- opened
@@ -18,6 +30,18 @@ on:
1830
- dev-v4
1931
- demo-v4
2032
- hotfix
33+
paths:
34+
- 'src/frontend/**'
35+
- 'src/backend/**'
36+
- 'src/mcp_server/**'
37+
- '.github/workflows/docker-build-and-push.yml'
38+
- 'infra/main.bicep'
39+
- 'infra/modules/**/*.bicep'
40+
- 'infra/*.parameters.json'
41+
- 'infra/scripts/**'
42+
- '.github/workflows/deploy.yml'
43+
- 'azure.yaml'
44+
- 'azure_custom.yaml'
2145
workflow_dispatch:
2246

2347
jobs:

.github/workflows/job-deploy-linux.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ jobs:
173173
set -e
174174
az account set --subscription "${{ secrets.AZURE_SUBSCRIPTION_ID }}"
175175
176-
# Set environment variables for team_config_and_data.sh
176+
# Set environment variables for selecting_team_config_and_data.sh
177177
export AZURE_SUBSCRIPTION_ID="${{ secrets.AZURE_SUBSCRIPTION_ID }}"
178178
export AZURE_RESOURCE_GROUP="${{ inputs.RESOURCE_GROUP_NAME }}"
179179
export BACKEND_URL="${{ steps.get_output_linux.outputs.BACKEND_URL }}"
@@ -184,7 +184,8 @@ jobs:
184184
export AZURE_ENV_NAME="${{ steps.get_output_linux.outputs.AZURE_ENV_NAME }}"
185185
186186
# Upload team configurations and index sample data in one step
187-
bash infra/scripts/team_config_and_data.sh "${{ inputs.RESOURCE_GROUP_NAME }}"
187+
# Automatically select "6" (All use cases) for non-interactive deployment
188+
echo "6" | bash infra/scripts/selecting_team_config_and_data.sh
188189
189190
- name: Generate Deployment Summary
190191
if: always()

.github/workflows/job-deploy-windows.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,9 @@ jobs:
179179
$env:AZURE_AI_SEARCH_INDEX_NAME = "sample-dataset-index"
180180
$env:AZURE_ENV_NAME = "${{ steps.get_output_windows.outputs.AZURE_ENV_NAME }}"
181181
182-
# Run the script (PowerShell version)
183-
& infra\scripts\Team-Config-And-Data.ps1 "${{ inputs.RESOURCE_GROUP_NAME }}"
182+
# Upload team configurations and index sample data in one step
183+
# Automatically select "6" (All use cases) for non-interactive deployment
184+
bash -c "echo 6 | pwsh -File infra/scripts/Selecting-Team-Config-And-Data.ps1"
184185
185186
- name: Generate Deployment Summary
186187
if: always()

.github/workflows/job-deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,13 @@ jobs:
266266
echo "Current branch: $BRANCH_NAME"
267267
268268
if [[ "$BRANCH_NAME" == "main" ]]; then
269-
IMAGE_TAG="latest_v3"
270-
elif [[ "$BRANCH_NAME" == "dev-v3" ]]; then
271-
IMAGE_TAG="dev_v3"
269+
IMAGE_TAG="latest_v4"
270+
elif [[ "$BRANCH_NAME" == "dev-v4" ]]; then
271+
IMAGE_TAG="dev-v4"
272272
elif [[ "$BRANCH_NAME" == "hotfix" ]]; then
273273
IMAGE_TAG="hotfix"
274274
else
275-
IMAGE_TAG="latest_v3"
275+
IMAGE_TAG="latest_v4"
276276
fi
277277
echo "Using existing Docker image tag: $IMAGE_TAG"
278278
fi

.github/workflows/job-send-notification.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
runs-on: ubuntu-latest
7474
continue-on-error: true
7575
env:
76-
accelerator_name: "MACAE V3"
76+
accelerator_name: "MACAE V4"
7777
steps:
7878
- name: Determine Test Suite Display Name
7979
id: test_suite

.github/workflows/pylint.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: PyLint
22

3-
on: [push]
3+
on:
4+
push:
5+
paths:
6+
- 'src/backend/**/*.py'
7+
- 'src/mcp_server/**/*.py'
8+
- 'src/backend/requirements.txt'
9+
- '.flake8'
10+
- '.github/workflows/pylint.yml'
11+
412

513
jobs:
614
build:
@@ -24,4 +32,4 @@ jobs:
2432
2533
- name: Run flake8 and pylint
2634
run: |
27-
flake8 --config=.flake8 src/backend # Specify the directory to lint
35+
flake8 --config=.flake8 src/backend

0 commit comments

Comments
 (0)