Skip to content

feat: migrate morgan stanley test to canadacentral#1145

Open
vittoriasalim wants to merge 7 commits intomainfrom
vitto/ms_canadacentral
Open

feat: migrate morgan stanley test to canadacentral#1145
vittoriasalim wants to merge 7 commits intomainfrom
vitto/ms_canadacentral

Conversation

@vittoriasalim
Copy link
Copy Markdown
Contributor

migrate benchmark test to canadacentral

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Migrates the nap-complex perf-eval (“Morgan Stanley”) benchmark setup to support running in Azure canadacentral, updating scenario inputs and the benchmark pipeline to include a new canadacentral stage.

Changes:

  • Added a new azure-canadacentral.tfvars terraform input for the nap-complex scenario.
  • Updated the nap-complex Karpenter NodePool allowed VM SKUs.
  • Updated the autoscale benchmark pipeline schedules and added a canadacentral stage wired to the new tfvars.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
scenarios/perf-eval/nap-complex/terraform-inputs/azure-canadacentral.tfvars New canadacentral-specific Terraform inputs (networking, firewall, ACR, AKS, jumpbox).
scenarios/perf-eval/nap-complex/kubernetes/karpenter_nodepool.azure.yml Adjusted allowed Azure SKU names for the default NodePool.
pipelines/perf-eval/Autoscale Benchmark/node-auto-provisioning-benchmark-complex.yml Added an additional schedule and a new canadacentral benchmark stage using the new tfvars.

Comment on lines +120 to +123
"mcr.microsoft.com",
"*.mcr.microsoft.com",
"*.data.mcr.microsoft.com",
"*.azurecr.io",
Copy link

Copilot AI Apr 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The target_fqdns list contains duplicate entries (e.g., mcr.microsoft.com and *.azurecr.io appear more than once). Duplicates make the rule harder to audit and can contribute to Azure Firewall rule-size limits; please deduplicate the list.

Suggested change
"mcr.microsoft.com",
"*.mcr.microsoft.com",
"*.data.mcr.microsoft.com",
"*.azurecr.io",
"*.mcr.microsoft.com",
"*.data.mcr.microsoft.com",

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please fix

Comment on lines +3 to 12
# eastus2 - weekly
- cron: "0 21 * * 0"
displayName: "Every week at 9:00 PM"
branches:
include:
- main
always: true
# canadacentral - daily
- cron: "0 21 * * *"
displayName: "Every day at 9:00 PM"
Copy link

Copilot AI Apr 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The added weekly and daily schedules both trigger the entire pipeline; as written, the eastus2 stage will still run on the daily schedule too. If the intent is “eastus2 weekly, canadacentral daily”, add stage conditions based on the schedule display name (e.g., Build.CronSchedule.DisplayName) or split into separate pipelines.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix

Comment on lines +69 to +72
name = "AzureBastionSubnet"
# Dedicated subnet required by Azure Bastion (/27 or larger)
address_prefix = "10.224.0.32/27"
},
Copy link

Copilot AI Apr 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The header comment says there is “No Bastion host”, but the VNet still defines an AzureBastionSubnet with a comment stating it’s required for Bastion. Either remove the Bastion subnet (if truly unused) or update the comments to reflect why it’s still present.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please fix

regions:
- canadacentral
terraform_input_file_mapping:
- canadacentral: "scenarios/perf-eval/nap-complex/terraform-inputs/azure-canadacentral.tfvars"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need a new input file here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because there is different rule for different regions

Image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can add canadacentral and eastus2 to the rule

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, agree this. if we only have 2 regions the only difference is the FQDN, we can add both in the rules instead of a new file, wdyt

trigger: none
schedules:
# On-Demand Schedule with Morgan Stanley cluster config
# eastus2 - weekly
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we still keep eastus2?

name = "AllowSSH"
priority = 100
destination_port_range = "22"
# No Bastion in canadacentral; allow SSH from any source (pipeline agent).
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants