Skip to content

Commit 59f4deb

Browse files
jayesh-tannaJayesh Tanna
andauthored
Update fine-tuning test recordings with ID sanitizers (#44334)
* Adding recording and decorator for finetuning * removing extra * updating assets json * updating assets tag * applying black * adding cspell * updating assets * adding custom matcher for macos and ubuntu * pushing changes * adding recording --------- Co-authored-by: Jayesh Tanna <[email protected]>
1 parent a34f4a9 commit 59f4deb

File tree

6 files changed

+232
-166
lines changed

6 files changed

+232
-166
lines changed

sdk/ai/azure-ai-projects/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/ai/azure-ai-projects",
5-
"Tag": "python/ai/azure-ai-projects_56eacfd554"
5+
"Tag": "python/ai/azure-ai-projects_1d985f7ba5"
66
}

sdk/ai/azure-ai-projects/cspell.json

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
11
{
2-
"ignoreWords": [
3-
"agentic",
4-
"aiproject",
5-
"azureopenai",
6-
"GLEU",
7-
"aiservices",
8-
"azureai",
9-
"GENAI",
10-
"UPIA",
11-
"ansii",
12-
"getconnectionwithcredentials",
13-
"quantitive",
14-
"balapvbyostoragecanary",
15-
"fspath",
16-
"aread",
17-
"inpainting",
18-
"CSDL",
19-
"fstring",
20-
"aiprojectclient",
21-
"Tadmaq",
22-
"Udbk",
23-
"Ministral",
24-
"cogsvc",
25-
"evals",
26-
"FineTuning",
27-
"closefd"
28-
],
2+
"ignoreWords": [
3+
"agentic",
4+
"aiproject",
5+
"azureopenai",
6+
"GLEU",
7+
"aiservices",
8+
"azureai",
9+
"GENAI",
10+
"UPIA",
11+
"ansii",
12+
"getconnectionwithcredentials",
13+
"quantitive",
14+
"balapvbyostoragecanary",
15+
"fspath",
16+
"aread",
17+
"inpainting",
18+
"CSDL",
19+
"fstring",
20+
"aiprojectclient",
21+
"Tadmaq",
22+
"Udbk",
23+
"Ministral",
24+
"cogsvc",
25+
"evals",
26+
"FineTuning",
27+
"ftjob",
28+
"ftchkpt",
29+
"closefd"
30+
],
2931
"ignorePaths": [
3032
"*.csv",
3133
"*.json",

sdk/ai/azure-ai-projects/tests/conftest.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,15 @@ def sanitize_url_paths():
108108

109109
sanitize_url_paths()
110110

111+
# Sanitize fine-tuning job IDs in URLs and response bodies
112+
add_general_regex_sanitizer(regex=r"ftjob-[a-f0-9]+", value="sanitized-ftjob-id")
113+
114+
# Sanitize file IDs in URLs and response bodies
115+
add_general_regex_sanitizer(regex=r"file-[a-f0-9]+", value="sanitized-file-id")
116+
117+
# Sanitize checkpoint IDs in URLs and response bodies
118+
add_general_regex_sanitizer(regex=r"ftchkpt-[a-f0-9]+", value="sanitized-checkpoint-id")
119+
111120
# Sanitize API key from service response (this includes Application Insights connection string)
112121
add_body_key_sanitizer(json_path="credentials.key", value="sanitized-api-key")
113122

0 commit comments

Comments
 (0)