Skip to content

Commit bb6d517

Browse files
Merge pull request microsoft#74 from microsoft/hotfix
fix: Merging hotfix branches to main
2 parents 0605de3 + 7355efe commit bb6d517

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

+3766
-156
lines changed

.devcontainer/devcontainer.json

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
{
2-
"name": "Multi Agent Custom Automation Engine Solution Accelerator",
3-
"image": "mcr.microsoft.com/devcontainers/python:3.10",
4-
"features": {
5-
"ghcr.io/devcontainers/features/azure-cli:1.0.8": {},
6-
"ghcr.io/azure/azure-dev/azd:latest": {},
7-
"ghcr.io/rchaganti/vsc-devcontainer-features/azurebicep:1.0.5": {}
8-
},
9-
10-
"postCreateCommand": "sudo chmod +x .devcontainer/setupEnv.sh && ./.devcontainer/setupEnv.sh",
11-
12-
"customizations": {
13-
"vscode": {
14-
"extensions": [
15-
"ms-azuretools.azure-dev",
16-
"ms-azuretools.vscode-bicep",
17-
"ms-python.python"
18-
]
19-
},
20-
"codespaces": {
21-
"openFiles": [
22-
"README.md"
23-
]
24-
}
25-
},
26-
27-
"remoteUser": "vscode",
28-
"hostRequirements": {
29-
"memory": "8gb"
30-
}
31-
}
1+
{
2+
"name": "Multi Agent Custom Automation Engine Solution Accelerator",
3+
"image": "mcr.microsoft.com/devcontainers/python:3.10",
4+
"features": {
5+
"ghcr.io/devcontainers/features/azure-cli:1.0.8": {},
6+
"ghcr.io/azure/azure-dev/azd:latest": {},
7+
"ghcr.io/rchaganti/vsc-devcontainer-features/azurebicep:1.0.5": {}
8+
},
9+
10+
"postCreateCommand": "sudo chmod +x .devcontainer/setupEnv.sh && ./.devcontainer/setupEnv.sh",
11+
12+
"customizations": {
13+
"vscode": {
14+
"extensions": [
15+
"ms-azuretools.azure-dev",
16+
"ms-azuretools.vscode-bicep",
17+
"ms-python.python"
18+
]
19+
},
20+
"codespaces": {
21+
"openFiles": [
22+
"README.md"
23+
]
24+
}
25+
},
26+
27+
"remoteUser": "vscode",
28+
"hostRequirements": {
29+
"memory": "8gb"
30+
}
31+
}

.devcontainer/setupEnv.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ pip install --upgrade pip
55

66
(cd ./src/frontend; pip install -r requirements.txt)
77

8-
(cd ./src/backend; pip install -r requirements.txt)
8+
9+
(cd ./src/backend; pip install -r requirements.txt)
10+
11+

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
max-line-length = 88
33
extend-ignore = E501
44
exclude = .venv, frontend
5-
ignore = E203, W503, G004, G200
5+
ignore = E203, W503, G004, G200, E402

.github/workflows/test.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ jobs:
3737
run: |
3838
python -m pip install --upgrade pip
3939
pip install -r src/backend/requirements.txt
40-
pip install pytest-cov
41-
pip install pytest-asyncio
4240
4341
- name: Check if test files exist
4442
id: check_tests
@@ -50,7 +48,6 @@ jobs:
5048
echo "Test files found, running tests."
5149
echo "skip_tests=false" >> $GITHUB_ENV
5250
fi
53-
5451
- name: Run tests with coverage
5552
if: env.skip_tests == 'false'
5653
run: |
@@ -59,4 +56,4 @@ jobs:
5956
- name: Skip coverage report if no tests
6057
if: env.skip_tests == 'true'
6158
run: |
62-
echo "Skipping coverage report because no tests were found."
59+
echo "Skipping coverage report because no tests were found."

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ To add your newly created backend image:
177177
name: 'FRONTEND_SITE_NAME'
178178
value: 'https://<website Name>.azurewebsites.net'
179179

180-
name: 'APPLICATIONINSIGHTS_INSTRUMENTATION_KEY'
181-
value: <Application Insights Instrumentation Key>
180+
name: 'APPLICATIONINSIGHTS_CONNECTION_STRING'
181+
value: <Application Insights Connection String>
182182

183183
- Click 'Save' and deploy your new revision
184184

deploy/macae-continer-oc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.32.4.45862",
9-
"templateHash": "13282901028774763433"
9+
"templateHash": "14272651486454797588"
1010
}
1111
},
1212
"parameters": {
@@ -368,7 +368,7 @@
368368
"value": "[format('https://{0}.azurewebsites.net', format(variables('uniqueNameFormat'), 'frontend'))]"
369369
},
370370
{
371-
"name": "APPLICATIONINSIGHTS_INSTRUMENTATION_KEY",
371+
"name": "APPLICATIONINSIGHTS_CONNECTION_STRING",
372372
"value": "[reference('appInsights').ConnectionString]"
373373
}
374374
]

deploy/macae-continer.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ resource containerApp 'Microsoft.App/containerApps@2024-03-01' = {
280280
value: 'https://${format(uniqueNameFormat, 'frontend')}.azurewebsites.net'
281281
}
282282
{
283-
name: 'APPLICATIONINSIGHTS_INSTRUMENTATION_KEY'
283+
name: 'APPLICATIONINSIGHTS_CONNECTION_STRING'
284284
value: appInsights.properties.ConnectionString
285285
}
286286
]

documentation/LocalDeployment.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
# Local setup
1010

1111
> **Note for macOS Developers**: If you are using macOS on Apple Silicon (ARM64) the DevContainer will **not** work. This is due to a limitation with the Azure Functions Core Tools (see [here](https://github.com/Azure/azure-functions-core-tools/issues/3112)). We recommend using the [Non DevContainer Setup](./NON_DEVCONTAINER_SETUP.md) instructions to run the accelerator locally.
12+
1213
The easiest way to run this accelerator is in a VS Code Dev Containers, which will open the project in your local VS Code using the [Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers):
1314

1415
1. Start Docker Desktop (install it if not already installed)
@@ -96,8 +97,8 @@ The files for the dev container are located in `/.devcontainer/` folder.
9697
**Using a Different Database in Cosmos:**
9798
9899
You can set the solution up to use a different database in Cosmos. For example, you can name it something like autogen-dev. To do this:
99-
1. Change the environment variable **COSMOSDB_DATABASE** to the new database name.
100-
2. You will need to create the database in the Cosmos DB account. You can do this from the Data Explorer pane in the portal, click on the drop down labeled “_+ New Container_” and provide all the necessary details.
100+
1. Change the environment variable **COSMOSDB_DATABASE** to the new database name.
101+
2. You will need to create the database in the Cosmos DB account. You can do this from the Data Explorer pane in the portal, click on the drop down labeled “_+ New Container_” and provide all the necessary details.
101102
102103
6. **Create a `.env` file:**
103104

src/__init__.py

Whitespace-only changes.

src/backend/.env.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ AZURE_OPENAI_ENDPOINT=
66
AZURE_OPENAI_MODEL_NAME=gpt-4o
77
AZURE_OPENAI_DEPLOYMENT_NAME=gpt-4o
88
AZURE_OPENAI_API_VERSION=2024-08-01-preview
9-
APPLICATIONINSIGHTS_INSTRUMENTATION_KEY=
9+
APPLICATIONINSIGHTS_CONNECTION_STRING=
1010

1111
BACKEND_API_URL='http://localhost:8000'
1212
FRONTEND_SITE_NAME='http://127.0.0.1:3000'

0 commit comments

Comments
 (0)