Skip to content

Commit c6d28d4

Browse files
committed
Migrate backend from v3 to v4 and update workflows
Renamed backend/af to backend/v4, updating all references from v3 to v4 across backend, infra, and documentation. Updated GitHub Actions workflows to use v4 versions and latest action versions. Changed default image tags and parameters from latest_v3 to latest_v4 in Bicep and parameter files. Updated documentation and scripts to reference v4 paths. Applied minor formatting and consistency improvements in infrastructure code.
1 parent 6d10a8f commit c6d28d4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+383
-358
lines changed

.github/workflows/agnext-biab-02-containerimage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
# run: |
2222
# curl -fsSL ${{ vars.AUTOGEN_WHL_URL }} -o agnext-biab-02/autogen_core-0.3.dev0-py3-none-any.whl
2323
- name: Log in to the Container registry
24-
uses: docker/login-action@v3
24+
uses: docker/login-action@v4
2525
with:
2626
registry: ${{ env.REGISTRY }}
2727
username: ${{ github.actor }}

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161

6262
# Initializes the CodeQL tools for scanning.
6363
- name: Initialize CodeQL
64-
uses: github/codeql-action/init@v3
64+
uses: github/codeql-action/init@v4
6565
with:
6666
languages: ${{ matrix.language }}
6767
build-mode: ${{ matrix.build-mode }}
@@ -89,6 +89,6 @@ jobs:
8989
exit 1
9090
9191
- name: Perform CodeQL Analysis
92-
uses: github/codeql-action/analyze@v3
92+
uses: github/codeql-action/analyze@v4
9393
with:
9494
category: "/language:${{matrix.language}}"

.github/workflows/create-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
ref: ${{ github.event.workflow_run.head_sha }}
2020

21-
- uses: codfish/semantic-release-action@v3
21+
- uses: codfish/semantic-release-action@v4
2222
id: semantic
2323
with:
2424
tag-format: 'v${version}'

.github/workflows/deploy-waf.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Validate WAF Deployment v3
1+
name: Validate WAF Deployment v4
22

33
on:
44
push:
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout Code
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616

1717
- name: Run Quota Check
1818
id: quota-check

.github/workflows/deploy.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
name: Validate Deployment v3
1+
name: Validate Deployment v4
22

33
on:
44
workflow_run:
5-
workflows: ["Build Docker and Optional Push v3"]
5+
workflows: ["Build Docker and Optional Push v4"]
66
types:
77
- completed
88
branches:
99
- main
10-
- dev-v3
10+
- dev-v4
1111
- hotfix
1212
schedule:
1313
- cron: "0 11,23 * * *" # Runs at 11:00 AM and 11:00 PM GMT
@@ -27,7 +27,7 @@ jobs:
2727
CONTAINER_APP: ${{steps.get_backend_url.outputs.CONTAINER_APP}}
2828
steps:
2929
- name: Checkout Code
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3131

3232
- name: Run Quota Check
3333
id: quota-check
@@ -116,9 +116,9 @@ jobs:
116116
id: deploy
117117
run: |
118118
if [[ "${{ env.BRANCH_NAME }}" == "main" ]]; then
119-
IMAGE_TAG="latest_v3"
120-
elif [[ "${{ env.BRANCH_NAME }}" == "dev-v3" ]]; then
121-
IMAGE_TAG="dev_v3"
119+
IMAGE_TAG="latest_v4"
120+
elif [[ "${{ env.BRANCH_NAME }}" == "dev-v4" ]]; then
121+
IMAGE_TAG="dev_v4"
122122
elif [[ "${{ env.BRANCH_NAME }}" == "hotfix" ]]; then
123123
IMAGE_TAG="hotfix"
124124
else

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: Build Docker and Optional Push v3
1+
name: Build Docker and Optional Push v4
22

33
on:
44
push:
55
branches:
66
- main
7-
- dev-v3
8-
- demo-v3
7+
- dev-v4
8+
- demo-v4
99
- hotfix
1010
pull_request:
1111
types:
@@ -15,8 +15,8 @@ on:
1515
- synchronize
1616
branches:
1717
- main
18-
- dev-v3
19-
- demo-v3
18+
- dev-v4
19+
- demo-v4
2020
- hotfix
2121
workflow_dispatch:
2222

@@ -32,7 +32,7 @@ jobs:
3232
uses: docker/setup-buildx-action@v1
3333

3434
- name: Log in to Azure Container Registry
35-
if: ${{ github.ref_name == 'main' || github.ref_name == 'dev-v3'|| github.ref_name == 'demo-v3' || github.ref_name == 'hotfix' }}
35+
if: ${{ github.ref_name == 'main' || github.ref_name == 'dev-v4'|| github.ref_name == 'demo-v4' || github.ref_name == 'hotfix' }}
3636
uses: azure/docker-login@v2
3737
with:
3838
login-server: ${{ secrets.ACR_LOGIN_SERVER || 'acrlogin.azurecr.io' }}
@@ -52,11 +52,11 @@ jobs:
5252
id: determine_tag
5353
run: |
5454
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
55-
echo "TAG=latest_v3" >> $GITHUB_ENV
56-
elif [[ "${{ github.ref }}" == "refs/heads/dev-v3" ]]; then
57-
echo "TAG=dev_v3" >> $GITHUB_ENV
58-
elif [[ "${{ github.ref }}" == "refs/heads/demo-v3" ]]; then
59-
echo "TAG=demo_v3" >> $GITHUB_ENV
55+
echo "TAG=latest_v4" >> $GITHUB_ENV
56+
elif [[ "${{ github.ref }}" == "refs/heads/dev-v4" ]]; then
57+
echo "TAG=dev_v4" >> $GITHUB_ENV
58+
elif [[ "${{ github.ref }}" == "refs/heads/demo-v4" ]]; then
59+
echo "TAG=demo_v4" >> $GITHUB_ENV
6060
elif [[ "${{ github.ref }}" == "refs/heads/hotfix" ]]; then
6161
echo "TAG=hotfix" >> $GITHUB_ENV
6262
else

.github/workflows/pylint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v4
1313

1414
- name: Set up Python ${{ matrix.python-version }}
15-
uses: actions/setup-python@v3
15+
uses: actions/setup-python@v4
1616
with:
1717
python-version: ${{ matrix.python-version }}
1818

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
steps:
2828
- name: Checkout code
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3030

3131
- name: Set up Python
3232
uses: actions/setup-python@v4

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ PublishScripts/
337337
!**/packages/build/
338338
# Uncomment if necessary however generally it will be regenerated when needed
339339
#!**/packages/repositories.config
340-
# NuGet v3's project.json files produces more ignorable files
340+
# NuGet v4's project.json files produces more ignorable files
341341
*.nuget.props
342342
*.nuget.targets
343343

conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import pytest
99

1010
# Add the agents path
11-
agents_path = Path(__file__).parent.parent.parent / "backend" / "v3" / "magentic_agents"
11+
agents_path = Path(__file__).parent.parent.parent / "backend" / "v4" / "magentic_agents"
1212
sys.path.insert(0, str(agents_path))
1313

1414
@pytest.fixture

0 commit comments

Comments
 (0)