Skip to content

Commit 472109d

Browse files
author
annie-mac
committed
Merge branch 'main' into addThroughputBucketSupport
2 parents 763f754 + aee2a77 commit 472109d

File tree

984 files changed

+70648
-5749
lines changed

Some content is hidden

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

984 files changed

+70648
-5749
lines changed

.github/CODEOWNERS

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
###########
1616

1717
# Catch all
18-
/** @joshfree @srnagar @anuchandy @conniey @lmolkova @jonathangiles
19-
/sdk/ @joshfree @srnagar @anuchandy @conniey @lmolkova @jonathangiles
18+
/** @Azure/azure-java-sdk
19+
/sdk/ @Azure/azure-java-sdk
2020

2121
# BOM
2222

@@ -321,6 +321,12 @@
321321
# ServiceLabel: %Compute - VMSS
322322
# ServiceOwners: @Drewm3 @avirishuv
323323

324+
# PRLabel: %Confidential Ledger
325+
/sdk/confidentialledger/ @amruthashree18 @musabbir
326+
327+
# ServiceLabel: %Confidential Ledger
328+
# ServiceOwners: @amruthashree18 @musabbir
329+
324330
# ServiceLabel: %Connected Kubernetes
325331
# ServiceOwners: @akashkeshari
326332

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Copilot Setup Steps
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
copilot-setup-steps:
7+
runs-on: ubuntu-latest
8+
9+
permissions:
10+
contents: read
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Install azsdk mcp server
17+
shell: pwsh
18+
run: |
19+
./eng/common/mcp/azure-sdk-mcp.ps1 -InstallDirectory $HOME/bin
20+

eng/common/mcp/azure-sdk-mcp.ps1

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
#!/bin/env pwsh
1+
#!/usr/bin/env pwsh
2+
3+
#Requires -Version 7.0
4+
#Requires -PSEdition Core
25

36
param(
47
[string]$FileName = 'Azure.Sdk.Tools.Cli',
@@ -9,21 +12,13 @@ param(
912
[string]$RunDirectory = (Resolve-Path (Join-Path $PSScriptRoot .. .. ..)),
1013
[switch]$Run,
1114
[switch]$UpdateVsCodeConfig,
12-
[switch]$Clean
15+
[switch]$UpdatePathInProfile
1316
)
1417

1518
$ErrorActionPreference = "Stop"
16-
17-
if (-not $InstallDirectory)
18-
{
19-
$homeDir = if ($env:HOME) { $env:HOME } else { $env:USERPROFILE }
20-
$InstallDirectory = (Join-Path $homeDir ".azure-sdk-mcp" "azsdk")
21-
}
2219
. (Join-Path $PSScriptRoot '..' 'scripts' 'Helpers' 'AzSdkTool-Helpers.ps1')
2320

24-
if ($Clean) {
25-
Clear-Directory -Path $InstallDirectory
26-
}
21+
$toolInstallDirectory = $InstallDirectory ? $InstallDirectory : (Get-CommonInstallDirectory)
2722

2823
if ($UpdateVsCodeConfig) {
2924
$vscodeConfigPath = Join-Path $PSScriptRoot ".." ".." ".." ".vscode" "mcp.json"
@@ -54,13 +49,33 @@ if ($UpdateVsCodeConfig) {
5449
$vscodeConfig | ConvertTo-Json -Depth 10 | Set-Content -Path $vscodeConfigPath -Force
5550
}
5651

57-
$exe = Install-Standalone-Tool `
52+
# Install to a temp directory first so we don't dump out all the other
53+
# release zip contents to one of the users bin directories.
54+
$tmp = $env:TEMP ? $env:TEMP : [System.IO.Path]::GetTempPath()
55+
$guid = [System.Guid]::NewGuid()
56+
$tempInstallDirectory = Join-Path $tmp "azsdk-install-$($guid)"
57+
$tempExe = Install-Standalone-Tool `
5858
-Version $Version `
5959
-FileName $FileName `
6060
-Package $Package `
61-
-Directory $InstallDirectory `
61+
-Directory $tempInstallDirectory `
6262
-Repository $Repository
6363

64+
if (-not (Test-Path $toolInstallDirectory)) {
65+
New-Item -ItemType Directory -Path $toolInstallDirectory -Force | Out-Null
66+
}
67+
$exeName = Split-Path $tempExe -Leaf
68+
$exeDestination = Join-Path $toolInstallDirectory $exeName
69+
Copy-Item -Path $tempExe -Destination $exeDestination -Force
70+
71+
Write-Host "Package $package is installed at $exeDestination"
72+
if (!$UpdatePathInProfile) {
73+
Write-Warning "To add the tool to PATH for new shell sessions, re-run with -UpdatePathInProfile to modify the shell profile file."
74+
} else {
75+
Add-InstallDirectoryToPathInProfile -InstallDirectory $toolInstallDirectory
76+
Write-Warning "'$exeName' will be available in PATH for new shell sessions."
77+
}
78+
6479
if ($Run) {
65-
Start-Process -WorkingDirectory $RunDirectory -FilePath $exe -ArgumentList 'start' -NoNewWindow -Wait
80+
Start-Process -WorkingDirectory $RunDirectory -FilePath $exeDestination -ArgumentList 'start' -NoNewWindow -Wait
6681
}

eng/common/scripts/Helpers/AzSdkTool-Helpers.ps1

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,61 @@ function Install-Standalone-Tool (
192192

193193
return $executable_path
194194
}
195+
196+
function Get-CommonInstallDirectory {
197+
$installDirectory = Join-Path $HOME "bin"
198+
if (-not (Test-Path $installDirectory)) {
199+
New-Item -ItemType Directory -Path $installDirectory -Force | Out-Null
200+
}
201+
202+
# Update PATH in current session
203+
if (-not ($env:PATH -like "*$InstallDirectory*")) {
204+
$env:PATH += ";$InstallDirectory"
205+
}
206+
207+
return $installDirectory
208+
}
209+
210+
function Add-InstallDirectoryToPathInProfile(
211+
[Parameter()]
212+
[string]$InstallDirectory = (Get-CommonInstallDirectory)
213+
) {
214+
$powershellProfilePath = $PROFILE
215+
$bashrcPath = Join-Path $HOME ".bashrc"
216+
$zshrcPath = Join-Path $HOME ".zshrc"
217+
$markerComment = " # azsdk install path"
218+
$pathCommand = ""
219+
$configFile = ""
220+
221+
if ($IsWindows) { # expect powershell for windows, cmd.exe path update is not currently supported
222+
$configFile = $powershellProfilePath
223+
$pathCommand = "if (-not (`$env:PATH -like `'*$InstallDirectory*`')) { `$env:PATH += ';$InstallDirectory`' }" + $markerComment
224+
}
225+
elseif ($IsLinux) { # handle bash or zsh shells for linux
226+
if (Test-Path $zshrcPath) {
227+
$configFile = $zshrcPath
228+
}
229+
else {
230+
$configFile = $bashrcPath
231+
}
232+
$pathCommand = "export PATH=`"`$PATH:$InstallDirectory`"" + $markerComment
233+
}
234+
elseif ($IsMacOS) { # mac os should use zsh by default
235+
$configFile = $zshrcPath
236+
$pathCommand = "export PATH=`"`$PATH:$InstallDirectory`"" + $markerComment
237+
}
238+
else {
239+
throw "Unsupported platform"
240+
}
241+
242+
if (-not (Test-Path $configFile)) {
243+
New-Item -ItemType File -Path $configFile -Force | Out-Null
244+
}
245+
246+
$configContent = Get-Content $configFile -Raw
247+
248+
if (!$configContent -or !$configContent.Contains($markerComment)) {
249+
Write-Host "Adding installation to PATH in shell profile at '$configFile'"
250+
Add-Content -Path $configFile -Value ([Environment]::NewLine + $pathCommand)
251+
}
252+
}

eng/versioning/external_dependencies.txt

Lines changed: 59 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -317,29 +317,29 @@ storage_com.microsoft.azure:azure-storage;8.6.6
317317

318318
# sdk\spring\pom.xml modules
319319
springboot3_com.diffplug.spotless:spotless-maven-plugin;2.30.0
320-
springboot3_com.fasterxml.jackson.core:jackson-annotations;2.19.1
321-
springboot3_com.fasterxml.jackson.core:jackson-core;2.19.1
322-
springboot3_com.fasterxml.jackson.core:jackson-databind;2.19.1
323-
springboot3_com.fasterxml.jackson.dataformat:jackson-dataformat-xml;2.19.1
324-
springboot3_com.fasterxml.jackson.datatype:jackson-datatype-jdk8;2.19.1
325-
springboot3_com.fasterxml.jackson.datatype:jackson-datatype-jsr310;2.19.1
326-
springboot3_com.fasterxml.jackson.module:jackson-module-afterburner;2.19.1
327-
springboot3_com.fasterxml.jackson.module:jackson-module-parameter-names;2.19.1
320+
springboot3_com.fasterxml.jackson.core:jackson-annotations;2.19.2
321+
springboot3_com.fasterxml.jackson.core:jackson-core;2.19.2
322+
springboot3_com.fasterxml.jackson.core:jackson-databind;2.19.2
323+
springboot3_com.fasterxml.jackson.dataformat:jackson-dataformat-xml;2.19.2
324+
springboot3_com.fasterxml.jackson.datatype:jackson-datatype-jdk8;2.19.2
325+
springboot3_com.fasterxml.jackson.datatype:jackson-datatype-jsr310;2.19.2
326+
springboot3_com.fasterxml.jackson.module:jackson-module-afterburner;2.19.2
327+
springboot3_com.fasterxml.jackson.module:jackson-module-parameter-names;2.19.2
328328
springboot3_com.github.spotbugs:spotbugs-maven-plugin;4.8.2.0
329329
springboot3_com.google.code.findbugs:jsr305;3.0.2
330-
springboot3_com.mysql:mysql-connector-j;9.2.0
330+
springboot3_com.mysql:mysql-connector-j;9.3.0
331331
springboot3_com.nimbusds:nimbus-jose-jwt;9.37.3
332332
springboot3_io.lettuce:lettuce-core;6.6.0.RELEASE
333-
springboot3_io.micrometer:micrometer-core;1.15.1
334-
springboot3_io.netty:netty-buffer;4.1.122.Final
335-
springboot3_io.netty:netty-codec-http;4.1.122.Final
336-
springboot3_io.netty:netty-common;4.1.122.Final
337-
springboot3_io.netty:netty-handler;4.1.122.Final
338-
springboot3_io.netty:netty-transport-native-epoll;4.1.122.Final
339-
springboot3_io.netty:netty-transport-native-kqueue;4.1.122.Final
340-
springboot3_io.netty:netty-transport;4.1.122.Final
341-
springboot3_io.projectreactor.netty:reactor-netty;1.2.7
342-
springboot3_io.projectreactor:reactor-test;3.7.7
333+
springboot3_io.micrometer:micrometer-core;1.15.2
334+
springboot3_io.netty:netty-buffer;4.1.123.Final
335+
springboot3_io.netty:netty-codec-http;4.1.123.Final
336+
springboot3_io.netty:netty-common;4.1.123.Final
337+
springboot3_io.netty:netty-handler;4.1.123.Final
338+
springboot3_io.netty:netty-transport-native-epoll;4.1.123.Final
339+
springboot3_io.netty:netty-transport-native-kqueue;4.1.123.Final
340+
springboot3_io.netty:netty-transport;4.1.123.Final
341+
springboot3_io.projectreactor.netty:reactor-netty;1.2.8
342+
springboot3_io.projectreactor:reactor-test;3.7.8
343343
springboot3_jakarta.servlet:jakarta.servlet-api;6.0.0
344344
springboot3_jakarta.validation:jakarta.validation-api;3.0.2
345345
springboot3_javax.annotation:javax.annotation-api;1.3.2
@@ -366,54 +366,54 @@ springboot3_org.postgresql:postgresql;42.7.7
366366
springboot3_org.revapi:revapi-maven-plugin;0.14.6
367367
springboot3_org.slf4j:slf4j-api;2.0.17
368368
springboot3_org.slf4j:slf4j-simple;2.0.17
369-
springboot3_org.springframework.boot:spring-boot-actuator-autoconfigure;3.5.3
370-
springboot3_org.springframework.boot:spring-boot-actuator;3.5.3
371-
springboot3_org.springframework.boot:spring-boot-autoconfigure;3.5.3
372-
springboot3_org.springframework.boot:spring-boot-configuration-metadata;3.5.3
373-
springboot3_org.springframework.boot:spring-boot-configuration-processor;3.5.3
374-
springboot3_org.springframework.boot:spring-boot-docker-compose;3.5.3
375-
springboot3_org.springframework.boot:spring-boot-starter-actuator;3.5.3
376-
springboot3_org.springframework.boot:spring-boot-starter-data-jdbc;3.5.3
377-
springboot3_org.springframework.boot:spring-boot-starter-integration;3.5.3
378-
springboot3_org.springframework.boot:spring-boot-starter-parent;3.5.3
379-
springboot3_org.springframework.boot:spring-boot-starter-test;3.5.3
380-
springboot3_org.springframework.boot:spring-boot-starter-web;3.5.3
381-
springboot3_org.springframework.boot:spring-boot-starter;3.5.3
382-
springboot3_org.springframework.boot:spring-boot-test;3.5.3
383-
springboot3_org.springframework.boot:spring-boot-testcontainers;3.5.3
369+
springboot3_org.springframework.boot:spring-boot-actuator-autoconfigure;3.5.4
370+
springboot3_org.springframework.boot:spring-boot-actuator;3.5.4
371+
springboot3_org.springframework.boot:spring-boot-autoconfigure;3.5.4
372+
springboot3_org.springframework.boot:spring-boot-configuration-metadata;3.5.4
373+
springboot3_org.springframework.boot:spring-boot-configuration-processor;3.5.4
374+
springboot3_org.springframework.boot:spring-boot-docker-compose;3.5.4
375+
springboot3_org.springframework.boot:spring-boot-starter-actuator;3.5.4
376+
springboot3_org.springframework.boot:spring-boot-starter-data-jdbc;3.5.4
377+
springboot3_org.springframework.boot:spring-boot-starter-integration;3.5.4
378+
springboot3_org.springframework.boot:spring-boot-starter-parent;3.5.4
379+
springboot3_org.springframework.boot:spring-boot-starter-test;3.5.4
380+
springboot3_org.springframework.boot:spring-boot-starter-web;3.5.4
381+
springboot3_org.springframework.boot:spring-boot-starter;3.5.4
382+
springboot3_org.springframework.boot:spring-boot-test;3.5.4
383+
springboot3_org.springframework.boot:spring-boot-testcontainers;3.5.4
384384
springboot3_org.springframework.cloud:spring-cloud-bus;4.3.0
385385
springboot3_org.springframework.cloud:spring-cloud-context;4.3.0
386386
springboot3_org.springframework.cloud:spring-cloud-starter-bootstrap;4.3.0
387387
springboot3_org.springframework.cloud:spring-cloud-starter-stream-kafka;4.3.0
388388
springboot3_org.springframework.cloud:spring-cloud-stream-test-binder;4.3.0
389389
springboot3_org.springframework.cloud:spring-cloud-stream;4.3.0
390-
springboot3_org.springframework.data:spring-data-commons;3.5.1
391-
springboot3_org.springframework.data:spring-data-redis;3.5.1
392-
springboot3_org.springframework.integration:spring-integration-core;6.5.0
393-
springboot3_org.springframework.kafka:spring-kafka;3.3.7
390+
springboot3_org.springframework.data:spring-data-commons;3.5.2
391+
springboot3_org.springframework.data:spring-data-redis;3.5.2
392+
springboot3_org.springframework.integration:spring-integration-core;6.5.1
393+
springboot3_org.springframework.kafka:spring-kafka;3.3.8
394394
springboot3_org.springframework.retry:spring-retry;2.0.12
395-
springboot3_org.springframework.security:spring-security-config;6.5.1
396-
springboot3_org.springframework.security:spring-security-oauth2-client;6.5.1
397-
springboot3_org.springframework.security:spring-security-oauth2-jose;6.5.1
398-
springboot3_org.springframework.security:spring-security-oauth2-resource-server;6.5.1
399-
springboot3_org.springframework.security:spring-security-web;6.5.1
400-
springboot3_org.springframework:spring-beans;6.2.8
401-
springboot3_org.springframework:spring-context-support;6.2.8
402-
springboot3_org.springframework:spring-context;6.2.8
403-
springboot3_org.springframework:spring-core-test;6.2.8
404-
springboot3_org.springframework:spring-core;6.2.8
405-
springboot3_org.springframework:spring-expression;6.2.8
406-
springboot3_org.springframework:spring-jdbc;6.2.8
407-
springboot3_org.springframework:spring-jms;6.2.8
408-
springboot3_org.springframework:spring-messaging;6.2.8
409-
springboot3_org.springframework:spring-test;6.2.8
410-
springboot3_org.springframework:spring-tx;6.2.8
411-
springboot3_org.springframework:spring-web;6.2.8
412-
springboot3_org.springframework:spring-webmvc;6.2.8
413-
springboot3_org.testcontainers:junit-jupiter;1.21.2
414-
springboot3_org.testcontainers:azure;1.21.2
395+
springboot3_org.springframework.security:spring-security-config;6.5.2
396+
springboot3_org.springframework.security:spring-security-oauth2-client;6.5.2
397+
springboot3_org.springframework.security:spring-security-oauth2-jose;6.5.2
398+
springboot3_org.springframework.security:spring-security-oauth2-resource-server;6.5.2
399+
springboot3_org.springframework.security:spring-security-web;6.5.2
400+
springboot3_org.springframework:spring-beans;6.2.9
401+
springboot3_org.springframework:spring-context-support;6.2.9
402+
springboot3_org.springframework:spring-context;6.2.9
403+
springboot3_org.springframework:spring-core-test;6.2.9
404+
springboot3_org.springframework:spring-core;6.2.9
405+
springboot3_org.springframework:spring-expression;6.2.9
406+
springboot3_org.springframework:spring-jdbc;6.2.9
407+
springboot3_org.springframework:spring-jms;6.2.9
408+
springboot3_org.springframework:spring-messaging;6.2.9
409+
springboot3_org.springframework:spring-test;6.2.9
410+
springboot3_org.springframework:spring-tx;6.2.9
411+
springboot3_org.springframework:spring-web;6.2.9
412+
springboot3_org.springframework:spring-webmvc;6.2.9
413+
springboot3_org.testcontainers:junit-jupiter;1.21.3
414+
springboot3_org.testcontainers:azure;1.21.3
415415
# Used for Spring version updates
416-
springboot3_org.springframework.boot:spring-boot-dependencies;3.5.3
416+
springboot3_org.springframework.boot:spring-boot-dependencies;3.5.4
417417
springboot3_org.springframework.cloud:spring-cloud-dependencies;2025.0.0
418418

419419
# Java 7 support

0 commit comments

Comments
 (0)