Skip to content

Commit 35740d1

Browse files
Merge pull request #350 from microsoft/dev
chore: Dev to main
2 parents 1e52477 + 507be23 commit 35740d1

11 files changed

Lines changed: 1024 additions & 956 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
WEBAPP_URL: ${{ steps.get_output_windows.outputs.WEBAPP_URL }}
5353
steps:
5454
- name: Checkout Code
55-
uses: actions/checkout@v4
55+
uses: actions/checkout@v6
5656

5757
- name: Validate Workflow Input Parameters
5858
shell: bash

.github/workflows/job-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ jobs:
270270
echo "Final EXP status: $EXP_ENABLED"
271271
272272
- name: Checkout Code
273-
uses: actions/checkout@v4
273+
uses: actions/checkout@v6
274274

275275
- name: Login to Azure
276276
shell: bash

.github/workflows/job-docker-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
IMAGE_TAG: ${{ steps.generate_docker_tag.outputs.IMAGE_TAG }}
3131
steps:
3232
- name: Checkout Code
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@v6
3434

3535
- name: Generate Unique Docker Image Tag
3636
id: generate_docker_tag

.github/workflows/test-automation-v2.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
TEST_REPORT_URL: ${{ steps.upload_report.outputs.artifact-url }}
3737
steps:
3838
- name: Checkout repository
39-
uses: actions/checkout@v5
39+
uses: actions/checkout@v6
4040

4141
- name: Set up Python
4242
uses: actions/setup-python@v6
@@ -136,7 +136,7 @@ jobs:
136136

137137
- name: Upload test report
138138
id: upload_report
139-
uses: actions/upload-artifact@v4
139+
uses: actions/upload-artifact@v6
140140
if: ${{ !cancelled() }}
141141
with:
142142
name: test-report

infra/main.bicep

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ param azureExistingAIProjectResourceId string = ''
118118
@description('Optional. Use this parameter to use an existing Log Analytics workspace resource ID. Defaults to empty string.')
119119
param existingLogAnalyticsWorkspaceId string = ''
120120

121+
var existingTags = resourceGroup().tags ?? {}
122+
121123
var allTags = union(
122124
{
123125
'azd-env-name': solutionName
@@ -157,13 +159,15 @@ param createdBy string = contains(deployer(), 'userPrincipalName')? split(deploy
157159
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
158160
name: 'default'
159161
properties: {
160-
tags: {
161-
...resourceGroup().tags
162-
...allTags
163-
TemplateName: 'Code Modernization'
164-
Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF'
165-
CreatedBy: createdBy
166-
}
162+
tags: union(
163+
existingTags,
164+
allTags,
165+
{
166+
TemplateName: 'Code Modernization'
167+
Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF'
168+
CreatedBy: createdBy
169+
}
170+
)
167171
}
168172
}
169173

infra/main.json

Lines changed: 74 additions & 66 deletions
Large diffs are not rendered by default.

infra/main_custom.bicep

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ param azureExistingAIProjectResourceId string = ''
120120
@description('Optional. Use this parameter to use an existing Log Analytics workspace resource ID. Defaults to empty string.')
121121
param existingLogAnalyticsWorkspaceId string = ''
122122

123+
var existingTags = resourceGroup().tags ?? {}
124+
123125
var allTags = union(
124126
{
125127
'azd-env-name': solutionName
@@ -154,18 +156,21 @@ var modelDeployment = {
154156
@description('Optional. Tag, Created by user name. Defaults to user principal name or object ID.')
155157
param createdBy string = contains(deployer(), 'userPrincipalName')? split(deployer().userPrincipalName, '@')[0]: deployer().objectId
156158

159+
var resourceGroupTagsValue = union(
160+
existingTags,
161+
allTags,
162+
{
163+
TemplateName: 'Code Modernization'
164+
Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF'
165+
CreatedBy: createdBy
166+
}
167+
)
157168

158169
// ========== Resource Group Tag ========== //
159170
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
160171
name: 'default'
161172
properties: {
162-
tags: {
163-
...resourceGroup().tags
164-
...allTags
165-
TemplateName: 'Code Modernization'
166-
Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF'
167-
CreatedBy: createdBy
168-
}
173+
tags: resourceGroupTagsValue
169174
}
170175
}
171176

src/backend/api/api_routes.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
from api.status_updates import app_connection_manager, close_connection
1515

1616
# Third-party
17-
from azure.monitor.opentelemetry import configure_azure_monitor
17+
# Azure Monitor OpenTelemetry integration is currently causing issues with OpenAI calls in process_batch_async, needs further investigation, commenting out for now
18+
# from azure.monitor.opentelemetry import configure_azure_monitor
1819

1920
from common.logger.app_logger import AppLogger
2021
from common.services.batch_service import BatchService
@@ -43,7 +44,8 @@
4344
instrumentation_key = os.getenv("APPLICATIONINSIGHTS_CONNECTION_STRING")
4445
if instrumentation_key:
4546
# Configure Application Insights if the Instrumentation Key is found
46-
configure_azure_monitor(connection_string=instrumentation_key)
47+
# commenting below line as configure_azure_monitor is causing issues with OpenAI calls in process_batch_async, needs further investigation
48+
# configure_azure_monitor(connection_string=instrumentation_key)
4749
logging.info(
4850
"Application Insights configured with the provided Instrumentation Key"
4951
)

src/backend/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ structlog
3535
typing-extensions
3636
python-jose[cryptography]
3737
passlib[bcrypt]
38-
semantic-kernel[azure]==1.39.0
38+
semantic-kernel[azure]==1.39.2
3939
sqlparse
4040
sqlglot
4141
unittest2
@@ -49,5 +49,5 @@ opentelemetry-sdk==1.39.0
4949
opentelemetry-api==1.39.0
5050
opentelemetry-semantic-conventions==0.60b0
5151
opentelemetry-instrumentation==0.60b0
52-
azure-monitor-opentelemetry==1.8.3
52+
azure-monitor-opentelemetry==1.8.6
5353
azure-ai-projects==1.0.0

0 commit comments

Comments
 (0)