Skip to content

Microsoft.CodeTransparency Python SDK #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1,558 commits into
base: main
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1558 commits
Select commit Hold shift + click to select a range
7164cde
Update .gitignore (#40605)
raych1 Apr 18, 2025
32a2eac
remove duplicate __init__ docstring in AutoLockRenewer (#40562)
Ikwus Apr 18, 2025
9712d82
Cosmos Diagnostics Logging Filters and optimizations. (#39897)
bambriz Apr 18, 2025
1100a73
Added DocumentRetrievalEvaluator to Azure AI Evaluation to support ev…
abhahn Apr 19, 2025
1d83aaf
[RedTeam] Call evaluate_with_rai_service instead of evaluate (#40520)
slister1001 Apr 20, 2025
81c99a0
[AutoRelease] t2-datafactory-2025-03-18-43866(can only be merged by S…
azure-sdk Apr 21, 2025
839cbb3
[AutoRelease] t2-storage-2025-04-03-73783(can only be merged by SDK o…
azure-sdk Apr 21, 2025
fe38d6e
[AutoRelease] t2-appcontainers-2025-03-27-96702(can only be merged by…
azure-sdk Apr 21, 2025
a8f4b0f
[AutoRelease] t2-networkcloud-2025-04-02-99243(can only be merged by …
azure-sdk Apr 21, 2025
c875783
[AutoRelease] t2-netapp-2025-04-04-80956(can only be merged by SDK ow…
azure-sdk Apr 21, 2025
2f8f325
[AutoRelease] t2-elasticsan-2025-04-03-61852(can only be merged by SD…
azure-sdk Apr 21, 2025
acc0d4a
[AutoRelease] t2-storageactions-2025-04-04-80705(can only be merged b…
azure-sdk Apr 21, 2025
a55603d
Allow for alphanumeric in column mapping (#40556)
slister1001 Apr 21, 2025
f32a6c2
Add async support for _SafetyEvaluation (#40623)
slister1001 Apr 21, 2025
1d47c03
update evaluation sdk tsg to include section for redteam, recent gith…
slister1001 Apr 21, 2025
1ad3542
Add CodeVulnerabilityEvaluator and UngroundedAttributesEvaluator to _…
slister1001 Apr 21, 2025
4d0a196
[Identity] Deprecate VisualStudioCodeCredential (#40613)
pvaneck Apr 21, 2025
0a19a46
[AutoRelease] t2-dependencymap-2025-03-25-78535(can only be merged by…
azure-sdk Apr 22, 2025
a3fdda2
Pin major version of external dependencies (#40580)
kingernupur Apr 22, 2025
52fde9f
[AutoRelease] t2-standbypool-2025-04-17-62642(can only be merged by S…
azure-sdk Apr 22, 2025
76cbd69
[AutoRelease] t2-apimanagement-2025-03-28-08926(can only be merged by…
azure-sdk Apr 22, 2025
7bb8807
[AutoRelease] t2-neonpostgres-2025-04-07-16147(can only be merged by …
azure-sdk Apr 22, 2025
8ee563e
[AutoRelease] t2-redisenterprise-2025-04-09-65351(can only be merged …
azure-sdk Apr 22, 2025
8e17ebf
code and test (#40494)
azure-sdk Apr 22, 2025
1310d7e
fix (#40639)
msyyc Apr 22, 2025
2100678
[AutoRelease] t2-servicebus-2025-04-22-13305(can only be merged by SD…
azure-sdk Apr 22, 2025
f833b9e
Update CHANGELOG.md (#40643)
ChenxiJiang333 Apr 22, 2025
d5c31d9
Increment package version after release of azure-monitor-opentelemetr…
azure-sdk Apr 22, 2025
b4bc1be
Fix additional TriggerPaths not being honored in Get-PrPkgProperties …
azure-sdk Apr 22, 2025
4b4e38e
Cosmos Scale Testing (#40611)
tvaron3 Apr 22, 2025
892002e
Users/singankit/update 1dp client (#40647)
singankit Apr 22, 2025
081ff91
build: enable pushing emitter nuget packages (#40646)
azure-sdk Apr 22, 2025
1d19d94
[monitor] Extend version range for `psutil` to include 7.x (#40459)
bartvanandel Apr 22, 2025
f32da5e
Adding Throughput Bucket Header (#40340)
andrewmathew1 Apr 22, 2025
8b9851a
[Storage] [STG 98] Merge STG 98 Base Branch into Main (#40381)
weirongw23-msft Apr 23, 2025
16de815
[AutoRelease] t2-redisenterprise-2025-04-23-71837(can only be merged …
azure-sdk Apr 23, 2025
3be08f1
[AutoRelease] t2-recoveryservicessiterecovery-2025-04-17-62709(can on…
azure-sdk Apr 23, 2025
1cee683
[AutoRelease] t2-portalservicescopilot-2025-04-15-94466(can only be m…
azure-sdk Apr 23, 2025
7f659e6
remove temp file for changelog when timeout (#40676)
msyyc Apr 23, 2025
8a87462
Updating changelog for Pin major version of external dependencies (#4…
jayesh-tanna Apr 23, 2025
ebbbd27
fix broken link in samples readme (#40658)
kristapratico Apr 23, 2025
2b75d19
Regenerating Python SDK for 2024-12-09 Preview version to apply fix f…
amruthashree18 Apr 23, 2025
914a957
Beta10 release of Python Projects SDK (#40681)
dargilco Apr 23, 2025
8a8bd3d
Bugfix/better error for simulations (#39802)
nagkumar91 Apr 23, 2025
7482dba
[Storage] Enabled soft delete in ARM template (#40657)
weirongw23-msft Apr 23, 2025
fadb096
Updating changelog with release date (#40688)
amruthashree18 Apr 23, 2025
e797804
Add Evaluation Service 1DP Client (#40683)
singankit Apr 23, 2025
54e3fe6
Sync .github/workflows directory with azure-sdk-tools repository (#40…
azure-sdk Apr 23, 2025
597650e
next-pylint (#40650)
l0lawrence Apr 23, 2025
b044fee
Adding new changes for Metrics on Upload Eval (#40689)
singankit Apr 23, 2025
0e91c75
Increment package version after release of azure-confidentialledger (…
azure-sdk Apr 23, 2025
1051c2d
Sync eng/common directory with azure-sdk-tools for PR 10432 (#40691)
azure-sdk Apr 23, 2025
e60744e
bump typespec-python (#40667)
msyyc Apr 24, 2025
5c9de2a
Add Log Handler Filter To workload tests to reduce logging noise (#40…
bambriz Apr 24, 2025
f31ab9a
Make batch deployment subclasses GA (#40619)
PratibhaShrivastav18 Apr 24, 2025
88a96e1
Foundry change (#40679)
achauhan-scc Apr 24, 2025
6f78dc7
Bug Retrying Writes (#40672)
tvaron3 Apr 24, 2025
06ac03d
Partition Key Feed Range Bug (#40677)
tvaron3 Apr 24, 2025
35647ac
Added Configuration Instructions in Readme for Throughput Buckets (#4…
andrewmathew1 Apr 24, 2025
0a2bd99
Update _base_eval.py (#40706)
singankit Apr 24, 2025
1a81d3f
Sync eng/common directory with azure-sdk-tools for PR 10411 (#40701)
azure-sdk Apr 24, 2025
26c5c00
Add excluded location configs to workload testing (#40704)
allenkim0129 Apr 24, 2025
32f976b
remove deprecated mgmt pkgs from main (#40666)
swathipil Apr 24, 2025
7e6ad3d
[SchemaRegistry] pylint (#40709)
swathipil Apr 24, 2025
d4fef13
sever typespec
l0lawrence Apr 24, 2025
36b0850
stash
l0lawrence Apr 24, 2025
aeb2e1a
[RedTeam] Add new CI stage for running unit tests with pyrit installe…
slister1001 Apr 24, 2025
0a1ad04
got rid of container and database level requests (#40708)
andrewmathew1 Apr 24, 2025
7e8b8eb
added logging, and we get folder output on tsp init command
l0lawrence Apr 24, 2025
f19bb2f
keeps trying to create a new env, removing this for now
l0lawrence Apr 24, 2025
c56698d
adding root_dir **unsure if this is working
l0lawrence Apr 24, 2025
fe0ab0f
[Identity] Handle MSAL string response scenario (#40281)
pvaneck Apr 25, 2025
66499e1
[AutoRelease] t2-containerregistry-2025-04-23-30815(can only be merge…
azure-sdk Apr 25, 2025
610a33b
[AutoRelease] t2-durabletask-2025-04-16-69057(can only be merged by S…
azure-sdk Apr 25, 2025
c0f09ca
[Cosmos] fix response_hook not being passed through for complex queri…
simorenoh Apr 25, 2025
cdcdd65
Add missing dependency (#40715)
ralph-msft Apr 25, 2025
35f6922
Sync eng/common directory with azure-sdk-tools for PR 10461 (#40719)
azure-sdk Apr 25, 2025
5958ede
Experiment/red team agent tool (#40481)
nagkumar91 Apr 25, 2025
f189c8b
[AutoRelease] t2-carbonoptimization-2025-04-22-36001(can only be merg…
azure-sdk Apr 25, 2025
858389b
[Corehttp] Implement tracing capabilities (#39172)
pvaneck Apr 25, 2025
3f1ad07
Resolved queue references (#40714)
weirongw23-msft Apr 25, 2025
edb98b8
remove deprecated data plane pkgs from main (#40712)
swathipil Apr 25, 2025
4b02fc0
[Deprecation] remove deprecated pkg from main (#40625)
swathipil Apr 25, 2025
ebf29c4
Docs matching the actual values in the evaluators for thresholds (#40…
nagkumar91 Apr 25, 2025
37034c4
[Projects] Initial SDK commit (#39960)
annatisch Apr 27, 2025
ba90e15
Foundry change (#40753)
achauhan-scc Apr 28, 2025
c554729
Azure Storage Sample Automation (#39944)
Yionse Apr 28, 2025
c202be6
Adversarial simulator add korean (#40723)
nagkumar91 Apr 28, 2025
98a16f6
Azure App Configuration Provider Allocation Id (#40730)
mrm9084 Apr 28, 2025
765f880
Mar25/evals/aoai integration (#40630)
MilesHolland Apr 28, 2025
82c373b
Set the resource group prefix after we get the tenantId (#40761)
azure-sdk Apr 28, 2025
1ceac21
fix reports after removal of deprecated pkgs (#40758)
kristapratico Apr 28, 2025
937c4aa
Data only red team mode (#40531)
nagkumar91 Apr 28, 2025
6f2720c
[Identity] Add README section about Powershell credential (#40729)
pvaneck Apr 28, 2025
7ce1917
Fix Client Settings issue with missing available regions (#40763)
allenkim0129 Apr 28, 2025
b7075c4
Adding change log for excluded location feature (#40764)
allenkim0129 Apr 28, 2025
da09607
open ai dev dep (#40770)
MilesHolland Apr 28, 2025
26aedf7
[Identity] Emit warning in EnvironmentCredential for user/pass (#40595)
pvaneck Apr 28, 2025
20244cf
Users/singankit/upload evaluation run 1rp (#40771)
singankit Apr 28, 2025
abdb8e0
make all graders use their own credential-based client (#40774)
MilesHolland Apr 28, 2025
21d8b16
Update CODEOWNERS (#40746)
msyyc Apr 29, 2025
f18bf9b
use working directory in eng\common\pipelines\templates\steps\save-pa…
azure-sdk Apr 29, 2025
c23d8e5
[AutoRelease] t2-lambdatesthyperexecute-2025-04-16-52083(can only be …
azure-sdk Apr 29, 2025
0b80655
[AutoRelease] t2-containerregistry-2025-04-25-51769(can only be merge…
azure-sdk Apr 29, 2025
b710ffc
Foundry change (#40755)
achauhan-scc Apr 29, 2025
be6af6e
Stops the request from being logged twice (#40767)
bambriz Apr 29, 2025
2c9172e
Fix typo for workingDirectory (#40788)
azure-sdk Apr 29, 2025
aad1252
Sync eng/common directory with azure-sdk-tools for PR 10467 (#40768)
azure-sdk Apr 29, 2025
19c8b26
meet apiview requirements (#40796)
MilesHolland Apr 29, 2025
fcaff6e
Add reason to end run for red team (#40777)
nagkumar91 Apr 29, 2025
634716a
mcp
l0lawrence Apr 29, 2025
f7761cc
Sync eng/common directory with azure-sdk-tools for PR 10482 (#40803)
azure-sdk Apr 29, 2025
9082fa1
Sync eng/common directory with azure-sdk-tools for PR 10470 (#40805)
azure-sdk Apr 29, 2025
6ac6107
SDK 1DP Integration (#40656)
w-javed Apr 29, 2025
08e0cd8
Update Github Event Processor version number (#40801)
azure-sdk Apr 29, 2025
8e7f1a8
[Core] Add method for setting span status (#40703)
pvaneck Apr 29, 2025
07a7286
Sync eng/common directory with azure-sdk-tools for PR 10508 (#40808)
azure-sdk Apr 30, 2025
e041e32
add validation server
cperaltah Apr 30, 2025
b484b70
[AutoRelease] t2-workloadssapvirtualinstance-2025-04-11-63477(can onl…
azure-sdk Apr 30, 2025
aa62911
using latest version for auto rest (#40787)
achauhan-scc Apr 30, 2025
8f330a1
Update CODEOWNERS (#40800)
lmazuel Apr 30, 2025
76883c4
update mcp.json
cperaltah Apr 30, 2025
d8eb3cd
update pyproject.toml
cperaltah Apr 30, 2025
8e61a00
Cosmos DB Python SDK Version updates to 4.11.0b1 (#40817)
allenkim0129 Apr 30, 2025
aeb1f84
copilot instructions
cperaltah Apr 30, 2025
7d64115
Update CODEOWNERS for Durable Task Scheduler (#40807)
berndverst Apr 30, 2025
702fd24
Editing (#40814)
l0lawrence Apr 30, 2025
abf9905
fix
cperaltah Apr 30, 2025
8c1cc77
fixes
cperaltah Apr 30, 2025
0b2d8a5
Fixing evaluation upload with 1RP Project (#40836)
singankit May 1, 2025
400a359
Increment package version after release of azure-cosmos (#40823)
azure-sdk May 1, 2025
ec469b2
[Core] Drop Python 3.8 support (#40831)
pvaneck May 1, 2025
4aa4ae1
[EventHub] add amqp proxy recordings for tests (#40778)
swathipil May 1, 2025
b8255e7
[EventHub] add amqpproxy recordings (#40826)
swathipil May 1, 2025
aeeb1f0
1dp sdk followup (#40813)
w-javed May 1, 2025
7e16561
[Tables] Add audience keyword argument support (#40487)
pvaneck May 1, 2025
3487e95
[Core] Prep changelog for release (#40846)
pvaneck May 1, 2025
7202429
this works
l0lawrence May 1, 2025
83e913b
Add back support for Entra ID auth with Prompty files (#40838)
ralph-msft May 1, 2025
1af86fe
this
l0lawrence May 2, 2025
e7e144f
this is working better
l0lawrence May 2, 2025
b8007d0
this
l0lawrence May 2, 2025
b7d52e7
add root dir
l0lawrence May 2, 2025
0c885b1
Sync eng/common directory with azure-sdk-tools for PR 10523 (#40864)
azure-sdk May 2, 2025
6744f68
some clean up and wip for tox version checking
cperaltah May 2, 2025
ce36075
Increment package version after release of azure-core (#40853)
azure-sdk May 2, 2025
6fd58c2
fix function header (#40792)
MilesHolland May 2, 2025
a6a249d
chore: Prepare changelog for 1.6.0 release (#40863)
kdestin May 2, 2025
a9a04a3
Fixing evaluation upload (#40867)
singankit May 2, 2025
77a5c9e
[EventHub] remove flagged recordings (#40868)
swathipil May 2, 2025
803cfcf
[Key Vault] Create Security Domain library (#37929)
mccoyp May 3, 2025
3923754
Fix CODEOWNERS (#40832)
lmazuel May 5, 2025
0f2ff43
[Identity] Release prep and cleanup (#40827)
pvaneck May 5, 2025
eeba9ca
first commit (#40872)
w-javed May 5, 2025
659ceb1
added agent support (#40775)
xiangyan99 May 5, 2025
9673c5e
Scope Change in SDK (#40882)
w-javed May 5, 2025
f279e40
Do not use sudo for npm install in typespec automation init (#40898)
benbp May 5, 2025
a04ef82
[Identity] Remove AzureApplicationCredential (#40901)
pvaneck May 6, 2025
fa88072
[SDK generation pipeline] Update automation_init.sh (#40907)
msyyc May 6, 2025
e480f3c
fix changelog (#40910)
msyyc May 6, 2025
2785b7d
[AutoRelease] t2-onlineexperimentation-2025-04-22-80414(can only be m…
azure-sdk May 6, 2025
f24c334
Sync eng/common directory with azure-sdk-tools for PR 10542 (#40902)
azure-sdk May 6, 2025
b661c88
AOAI results nits: fix order and _result column (#40897)
MilesHolland May 6, 2025
c572fa7
Sync eng/common directory with azure-sdk-tools for PR 10534 (#40903)
azure-sdk May 6, 2025
d5ad959
force default aoai version (#40917)
MilesHolland May 6, 2025
3b2d219
Release dates for STG 98 Beta (#40921)
weirongw23-msft May 6, 2025
5a5ff63
[Key Vault] Fix async sleep reference in tests (#40924)
mccoyp May 6, 2025
0a0daa1
Change Workloads For Circuit Breaker (#40843)
tvaron3 May 6, 2025
d5b00d7
Increment package version after release of azure-identity (#40925)
azure-sdk May 6, 2025
05efc2a
Increment versions after STG 98 Beta Release (#40937)
weirongw23-msft May 7, 2025
a0ca627
[Tables] Post-release updates (#40936)
pvaneck May 7, 2025
3399059
deploy the proxy with human-readable multipart output (#40851)
azure-sdk May 7, 2025
d4c265e
[AutoRelease] t2-cosmosdb-2025-05-06-70774(can only be merged by SDK …
azure-sdk May 7, 2025
6a76d31
Developer documentation updates (#40870)
jovinson-ms May 7, 2025
a0ac02d
Red Team Upload changes (#40895)
w-javed May 7, 2025
066b303
Update Azure Monitor OpenTelemetry owners (#40932)
hectorhdzg May 7, 2025
3c3dc04
[Key Vault] Reintroduce activation skipping in security domain upload…
mccoyp May 7, 2025
1bf3a61
add
l0lawrence May 7, 2025
7de1b80
this
l0lawrence May 7, 2025
372556c
[Key Vault] Extend timeout for link verification throttling (#40961)
mccoyp May 7, 2025
a9b5cac
expose indexer_permission_options (#40952)
xiangyan99 May 8, 2025
0aaf84b
[AutoRelease] t2-iotfirmwaredefense-2025-04-21-51309(can only be merg…
azure-sdk May 8, 2025
cca51a6
Update CHANGELOG.md (#40965)
ChenxiJiang333 May 8, 2025
f7eca67
bump typespec-python (#40971)
msyyc May 8, 2025
103bf15
[AutoRelease] t2-secretsstoreextension-2025-04-29-56947(can only be m…
azure-sdk May 8, 2025
d7d04c0
[AutoRelease] t2-iotfirmwaredefense-2025-05-08-19147(can only be merg…
azure-sdk May 8, 2025
b64185c
Feature/azure ai agents v1 (#40818)
howieleung May 8, 2025
d6612d0
Sync eng/common directory with azure-sdk-tools for PR 10521 (#40893)
azure-sdk May 8, 2025
bd62a45
account for OAI breaking changes (#40984)
MilesHolland May 9, 2025
05e9aac
adding ai agents instrumentation (#40866)
M-Hietala May 9, 2025
9fe6528
check (#40985)
MilesHolland May 9, 2025
e453b20
update tool accuracy for new behavior around built-in tools (#40829)
stevepon May 9, 2025
c707cea
update doc string (#40962)
w-javed May 9, 2025
a121425
working init
l0lawrence May 9, 2025
f344aac
Fix updated references (#40987)
mccoyp May 9, 2025
170a4dd
Fix release pipeline (#41002)
dargilco May 9, 2025
1ae42ae
updating changelog (#41007)
M-Hietala May 9, 2025
6364ba3
Honor MWR config in client (#40999)
tvaron3 May 9, 2025
2df28d4
remote package check (#41006)
MilesHolland May 9, 2025
832d03f
Increment package version after release of azure-keyvault-securitydom…
azure-sdk May 9, 2025
9194780
Sync eng/common directory with azure-sdk-tools for PR 10579 (#40993)
azure-sdk May 10, 2025
e87bc46
handle keyerror if key not present by passing default value (#40975)
PratibhaShrivastav18 May 12, 2025
206fa48
Update changelog and version.py after release cut (#40752)
pdhotems May 12, 2025
8bc0fd6
Updated walk_blobs rtype to reflect both BlobProperties and BlobPrefi…
weirongw23-msft May 12, 2025
9fe57d9
Add get_thread_run span, add missing ids to end run, update tracing s…
lmolkova May 12, 2025
3441543
Sync eng/common directory with azure-sdk-tools for PR 10593 (#41010)
azure-sdk May 12, 2025
7420394
DocumentRetrievalEvaluator: Small fixes for importing, threshold sett…
abhahn May 12, 2025
595c58a
_SafetyEvaluation randomization seed, concurrent tasks async (#41033)
slister1001 May 12, 2025
459ac58
Update CHANGELOG.md (#41035)
lzchen May 12, 2025
4f97e11
updating for local
l0lawrence May 12, 2025
f32244d
M hietala/merge remove enable telemetry function (#41009)
M-Hietala May 12, 2025
8a0135b
first pass at separate converters for legacy vs fdp (#41017)
stevepon May 12, 2025
1063688
Evaluation SDK Release 1.7.0 (#41037)
singankit May 13, 2025
7d574c2
fix init scenario
cperaltah May 13, 2025
edeec97
add more info about init
cperaltah May 13, 2025
4f8929f
[AutoRelease] t2-weightsandbiases-2025-05-07-86867(can only be merged…
azure-sdk May 13, 2025
a8d8b09
[AutoRelease] t2-arizeaiobservabilityeval-2025-05-07-52006(can only b…
azure-sdk May 13, 2025
2e940a2
[AutoRelease] t2-dellstorage-2025-05-07-39206(can only be merged by S…
azure-sdk May 13, 2025
a7dd48c
[AutoRelease] t2-recoveryservicesdatareplication-2025-05-08-49328(can…
azure-sdk May 13, 2025
66d166d
[AutoRelease] t2-servicenetworking-2025-04-23-64871(can only be merge…
azure-sdk May 13, 2025
83bb4dd
[AutoRelease] t2-programmableconnectivity-2025-04-18-82732(can only b…
azure-sdk May 13, 2025
0346175
Sync eng/common directory with azure-sdk-tools for PR 10611 (#41038)
azure-sdk May 13, 2025
6c30600
Jhakulin/delete ops update (#41025)
howieleung May 13, 2025
f7d2b64
Agents v1 version (#41051)
jhakulin May 13, 2025
bee4cd4
Use correct variable name in error (#41063)
azure-sdk May 13, 2025
b3bd27f
Fix lint (#41059)
lzchen May 13, 2025
377257d
[Storage] Formatted `azure-storage-queue` and other shared directorie…
weirongw23-msft May 13, 2025
0eae710
Update changelog (#41061)
xiangyan99 May 13, 2025
6af1969
Alpha SDK Version Upgrade (#40848)
v-saasomani May 13, 2025
e06dbae
Update text_similarity_grader.py (#41064)
singankit May 13, 2025
4fe13f2
Update version number (#41065)
howieleung May 13, 2025
95b6c31
Identity token cred env (#41060)
xiangyan99 May 13, 2025
9ba4d9f
need pip (#41070)
l0lawrence May 13, 2025
b9be54d
Search fix 40157 (#41066)
xiangyan99 May 13, 2025
65e21ae
Update changelog (#41071)
xiangyan99 May 13, 2025
34634fc
update codeowners so that l0lawrence isn't sole approver of pylintrc …
scbedd May 13, 2025
67455e4
Adding data collection disclosure to readme (#40989)
sandeep-sen May 13, 2025
55937c0
Increment package version after release of azure-identity (#41075)
azure-sdk May 14, 2025
0eee84a
[AI] [Agents] typespec update (#41069)
glharper May 14, 2025
d992724
Increment package version after release of azure-monitor-opentelemetr…
azure-sdk May 14, 2025
41db3b2
removing instrumentor call for azure monitor samples (#41068)
M-Hietala May 14, 2025
91ab6cc
updating tools
l0lawrence May 14, 2025
6c8e7cb
HtmlDecode hrefs (#41091)
azure-sdk May 14, 2025
0ccf1d5
Update agent error details (#41092)
jhakulin May 14, 2025
92c683a
Sync eng/common directory with azure-sdk-tools for PR 10522 (#40860)
azure-sdk May 14, 2025
10f65bd
[EG] may system events (#41093)
l0lawrence May 14, 2025
fd9e90f
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
l0lawrence May 14, 2025
3e7b7d4
tool change (#41098)
l0lawrence May 14, 2025
bd332a0
Updating instructions (#41249)
l0lawrence May 22, 2025
353bb9f
Initial version of Microsoft.CodeTransparency Python SDK
l0lawrence May 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 4 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ omit =
*/test*
env*
*/_serialization.py
*/azure/ai/ml/_restclient

[paths]
source =
Expand All @@ -20,8 +21,10 @@ exclude_lines =
if headers:
if response.status_code not in
if TYPE_CHECKING:
@overload
omit =
*/test*
env*
*/_serialization.py
*/sms/_shared/*
*/sms/_shared/*
*/azure/ai/ml/_restclient/*
134 changes: 69 additions & 65 deletions .github/CODEOWNERS

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/z-learn-feedback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ body:
required: true
attributes:
label: Document Version Independent Id
- type: input
id: platformId
validations:
required: true
attributes:
label: Platform Id
- type: input
id: author
validations:
Expand Down
136 changes: 136 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
# Copilot Instructions


# General Repository Guidelines
- DO check this [website](https://azure.github.io/azure-sdk/python_design.html), and link to pages found there, if possible, when asked about guidelines, or guidance on how to write SDKs. The general guidelines for SDK in this repo are defined there.
- DO ensure folks have the appropriate setup when working with this repository. Use the verify_setup tool in the azure-sdk-validation server.


# Generating an SDK From TypeSpec

## Agent Context
- Check if there are any TypeSpec project paths in the context. If there are, use those paths to locally generate the SDK from the tsp-config.yaml file. If there
are no TypeSpec project paths in the context, ask the user for the path to the tsp-config.yaml file. If the user does not have a path, ask them to provide one.

## Prerequisites
- The user should have a GitHub account and be logged in to GitHub using the GitHub CLI `gh auth login`.
- The user should have a GitHub Personal Access Token (PAT) with the `repo` scope.

## Basic Rules:
### When running tsp-client commands:
- If syncing from a local repo, do not grab a commit hash.
- Do not manually create directories. The command will create the directories for you.
- If asked to sync or generate `package-name` we need to find the path to the package's tsp-location.yaml
in the azure-sdk-for-python repo and run the command in the same directory.
- If provided a url to a tspconfig.yaml ensure it has the most recent commit hash of the tspconfig.yaml file
instead of a branch name like `main`. If the url does not have a commit hash, use the GitHub API to get the most recent commit hash of the tspconfig.yaml file.
If you are unable to do this, ask the user to provide the correct url.
`curl -s "https://api.github.com/repos/Azure/azure-rest-api-specs/commits?path=,path to tspconfig.yaml>&per_page=1"`
- Ensure that node, python, tox, and the required dependencies are installed in your environment (@azure-tools/typespec-client-generator-cli)


## Steps to Generate:

### Step 1: Validate the correct environment is set up
- Check if the user has the correct environment set up. If not, guide them to set it up.
- Using the `verify_setup` tool in the azure-sdk-validation server is a good way to do this.

### Step 2: Run the correct tsp-client command(s):
- The typspec-python mcp server tools should be used to run the commands.
- If any of the commands fail, check the error message and guide the user to fix the issue.
- If a command fails due to a TypeSpec error, direct the user back to the TypeSpec to fix the error.
- If the user is generating a new package, ensure that the package name is valid and follows the naming conventions for Python packages.

### Step 3: Validate the generated SDK and Fix the issues
- Installing the newly generated package and its dev_requirements in a .venv and installing tox.
- Use the tox mcp tool from the azure-sdk-validation server to run the following validations when possible:
- Running pylint validation using tox: `tox -e pylint -c [path to tox.ini] --root .`
- Running mypy type checking using tox: `tox -e mypy -c [path to tox.ini] --root .`
- Running pyright validation using tox: `tox -e pyright -c [path to tox.ini] --root .`
- Running verifytypes validation using tox: `tox -e verifytypes -c [path to tox.ini] --root .`
- Fix issues found during validation.
- If there are any issues that cannot be fixed, please ask the user to fix them and then come back to proceed with the next step.

### Step 4: Post-Processing of the SDK
- Create a CHANGELOG.md entry for the changes made. If there is no CHANGELOG.md file, create one in the root directory of the package. If the package version is not correct, update it in _version.py and the CHANGELOG entry.
- Confirm that the package version in the most recent CHANGELOG entry is correct based on the API spec version and the last released package version.

The CHANGELOG entry should look like:
```markdown
# Release History

## 1.0.0 (YYYY-MM-DD)

### Features Added
- Added a new feature to do X.

### Breaking Changes
- Changed the way Y is done, which may break existing code that relies on the old behavior.

### Bugs Fixed
- Fixed a bug that caused Z to not work as expected.

### Other Changes
- Updated the documentation to reflect the new changes.
- Refactored the code to improve readability and maintainability.
```

### Step 5: Commit and Push the Changes
- Display the list of changed files in the repository and prompt the user to confirm the changes. Ignore uncommitted changes in .github and .vscode folders.
- If the user confirms:
- Prompt the user to commit the changes:
- Run `git add <changed files>` to stage the changes.
- Run `git commit -m "<commit message>"` to commit the changes.
- Push the changes to the GitHub remote, ensuring the branch name is not "main."
- Run `git push -u origin <branch name>` to push the changes.
- If the push fails due to authentication, prompt the user to run `gh auth login` and retry the push command.
- If the user does not confirm, prompt them to fix the changes and re-run validation.

### Step 6: Manage Pull Requests
- Check if a pull request exists for the current branch:
- If a pull request exists, inform the user and display its details.
- If no pull request exists:
- Ensure the current branch name is not "main." If it is, prompt the user to create a new branch using `git checkout -b <branch name>`.
- Push the changes to the remote branch. If the branch does not exist on GitHub, create it and push the changes.
- Generate a title and description for the pull request based on the changes. Prompt the user to confirm or edit them.
- Prompt the user to select the target branch for the pull request, defaulting to "main."
- Create the pull request in DRAFT mode with the specified project, target branch, title, and description.
- Retrieve and display the pull request summary, including its status, checks, and comments. Highlight any action items.
- Return the link to the pull request for the user to review.

### Step 7: Finalize the Process
- Prompt the user to review the pull request and make any necessary changes.
- If the user is satisfied with the pull request guide them to go back to the TypeSpec project and make any necessary changes.


# Pylint

## Running Pylint
- When asked how to run pylint, or given a command to run pylint, DO check [this website](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/pylint_checking.md) and guide the user based on the information you find there.
- Do run pylint using the command `tox -e pylint --c <path to tox.ini> --root .` if the user is working on a specific file. The path to the tox.ini file by default is `azure-sdk-for-python/eng/tox/tox.ini`
- For formatting the tox command DO check [this website](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/tests.md#tox) and guide the user based on the information you find there.



## Fixing Pylint Warnings

### Dos and Don'ts
- DO use the table in https://github.com/Azure/azure-sdk-tools/blob/main/tools/pylint-extensions/azure-pylint-guidelines-checker/README.md and the code examples as a guide on how to fix each rule.
- DO refer to the pylint documentation: https://pylint.readthedocs.io/en/stable/user_guide/checkers/features.html.


- DO NOT solve a pylint warning if you are not 100% confident about the answer. If you think your approach might not be the best, stop trying to fix the warning and leave it as is.
- DO NOT create a new file when solving a pylint error, all solutions must remain in the current file.
- DO NOT import a module or modules that do not exist to solve a pylint warning.
- DO NOT add new dependencies or imports to the project to solve a pylint warning.
- DO NOT make larger changes where a smaller change would fix the issue.
- DO NOT change the code style or formatting of the code unless it is necessary to fix a pylint warning.
- DO NOT delete code or files unless it is necessary to fix a warning.


# MyPy

## Running MyPy and Fixing MyPy Warnings
- When asked how to run mypy, or given a command to run mypy, DO check [this website](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/tests.md#tox) and guide the user based on the information you find there.
- Do check this website on guidance on how to best fix MyPy issues [website link](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/static_type_checking_cheat_sheet.md)
- DO use a python 3.9 environment that is compatible with the code you are working on. If you are not sure, please ask the user for the python version they are using.
1 change: 1 addition & 0 deletions .github/prompts/next-pylint.prompt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
You are a helpful pylint bot. You solve pylint warnings for a specific library. You will be given a GitHub issue link that contains the details of the warnings and the steps to fix them. You will get the github issue body and read the pylint warnings. These are the warnings you want to fix. If you are not sure about a specific warning, leave it as is and do not attempt to fix it. Request the user to provide the issue for the code that needs to be fixed.
5 changes: 1 addition & 4 deletions .github/workflows/azure-sdk-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,20 @@ on:
paths:
- "tools/azure-sdk-tools/**"


jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# todo before checkin: multiplex to include running tests on py38 -> 312
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Install azure-sdk-tools
run: |
python -m pip install -e tools/azure-sdk-tools[build,ghtools]
python -m pip install -e tools/azure-sdk-tools[build,ghtools,conda]
python -m pip freeze
shell: bash

Expand Down
28 changes: 18 additions & 10 deletions .github/workflows/event-processor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
run: >
dotnet tool install
Azure.Sdk.Tools.GitHubEventProcessor
--version 1.0.0-dev.20240917.2
--version 1.0.0-dev.20250314.4
--add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json
--global
shell: bash
Expand Down Expand Up @@ -87,17 +87,21 @@ jobs:

- name: Process Action Event
run: |
cat > payload.json << 'EOF'
${{ toJson(github.event) }}
EOF
github-event-processor ${{ github.event_name }} payload.json
github-event-processor ${{ github.event_name }} ${{ github.event_path }}
shell: bash
env:
# This is a temporary secret generated by github
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LABEL_SERVICE_API_KEY: ${{ env.LABEL_SERVICE_API_KEY }}

- name: Archive github event data
uses: actions/upload-artifact@v4
if: always()
with:
name: event
path: ${{ github.event_path }}

event-handler:
permissions:
issues: write
Expand All @@ -114,7 +118,7 @@ jobs:
run: >
dotnet tool install
Azure.Sdk.Tools.GitHubEventProcessor
--version 1.0.0-dev.20240917.2
--version 1.0.0-dev.20250314.4
--add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json
--global
shell: bash
Expand Down Expand Up @@ -143,12 +147,16 @@ jobs:

- name: Process Action Event
run: |
cat > payload.json << 'EOF'
${{ toJson(github.event) }}
EOF
github-event-processor ${{ github.event_name }} payload.json
github-event-processor ${{ github.event_name }} ${{ github.event_path }}
shell: bash
env:
# This is a temporary secret generated by github
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Archive github event data
uses: actions/upload-artifact@v4
if: always()
with:
name: event
path: ${{ github.event_path }}
29 changes: 29 additions & 0 deletions .github/workflows/post-apiview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: After APIView

on:
check_run:
types: [completed]

permissions:
pull-requests: write
contents: read

jobs:
post-apiview:
name: After APIView
runs-on: ubuntu-24.04
if: |
github.event.check_run.check_suite.app.name == 'Azure Pipelines' && (
contains(github.event.check_run.name, 'Build Build') ||
contains(github.event.check_run.name, 'Build Analyze') )
steps:
- name: Checkout
uses: actions/checkout@v4
with:
sparse-checkout: 'eng/common'

- name: Create APIView Comment on PR
run: |
. "eng/common/scripts/Helpers/ApiView-Helpers.ps1"
Set-ApiViewCommentForRelatedIssues -HeadCommitish ${{ github.event.check_run.head_sha }} -AuthToken ${{ secrets.GITHUB_TOKEN }}
shell: pwsh
44 changes: 15 additions & 29 deletions .github/workflows/scheduled-event-processor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: >
dotnet tool install
Azure.Sdk.Tools.GitHubEventProcessor
--version 1.0.0-dev.20240917.2
--version 1.0.0-dev.20250425.1
--add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json
--global
shell: bash
Expand Down Expand Up @@ -69,76 +69,62 @@ jobs:
- name: Close Stale Issues Scheduled Event
if: github.event.schedule == '0 1 * * *'
run: |
cat > payload.json << 'EOF'
${{ toJson(github.event) }}
EOF
github-event-processor ${{ github.event_name }} payload.json CloseStaleIssues
github-event-processor ${{ github.event_name }} ${{ github.event_path }} CloseStaleIssues
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Identify Stale PullRequests Scheduled Event
if: github.event.schedule == '0 5 * * FRI'
run: |
cat > payload.json << 'EOF'
${{ toJson(github.event) }}
EOF
github-event-processor ${{ github.event_name }} payload.json IdentifyStalePullRequests
github-event-processor ${{ github.event_name }} ${{ github.event_path }} IdentifyStalePullRequests
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Close Stale PullRequests Scheduled Event
if: github.event.schedule == '30 2,8,14,20 * * *'
run: |
cat > payload.json << 'EOF'
${{ toJson(github.event) }}
EOF
github-event-processor ${{ github.event_name }} payload.json CloseStalePullRequests
github-event-processor ${{ github.event_name }} ${{ github.event_path }} CloseStalePullRequests
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Identify Stale Issues Scheduled Event
if: github.event.schedule == '30 3,9,15,21 * * *'
run: |
cat > payload.json << 'EOF'
${{ toJson(github.event) }}
EOF
github-event-processor ${{ github.event_name }} payload.json IdentifyStaleIssues
github-event-processor ${{ github.event_name }} ${{ github.event_path }} IdentifyStaleIssues
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Close Addressed Issues Scheduled Event
if: github.event.schedule == '30 4,10,16,22 * * *'
run: |
cat > payload.json << 'EOF'
${{ toJson(github.event) }}
EOF
github-event-processor ${{ github.event_name }} payload.json CloseAddressedIssues
github-event-processor ${{ github.event_name }} ${{ github.event_path }} CloseAddressedIssues
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Lock Closed Issues Scheduled Event
if: github.event.schedule == '30 5,11,17,23 * * *'
run: |
cat > payload.json << 'EOF'
${{ toJson(github.event) }}
EOF
github-event-processor ${{ github.event_name }} payload.json LockClosedIssues
github-event-processor ${{ github.event_name }} ${{ github.event_path }} LockClosedIssues
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Enforce Max Life of Issues Scheduled Event
if: github.event.schedule == '0 18 * * 1,3,5'
run: |
cat > payload.json << 'EOF'
${{ toJson(github.event) }}
EOF
github-event-processor ${{ github.event_name }} payload.json EnforceMaxLifeOfIssues
github-event-processor ${{ github.event_name }} ${{ github.event_path }} EnforceMaxLifeOfIssues
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Archive github event data
uses: actions/upload-artifact@v4
if: always()
with:
name: event
path: ${{ github.event_path }}
Loading