-
Notifications
You must be signed in to change notification settings - Fork 777
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
Fix the recordings to allow promptflow runs. #3477
base: main
Are you sure you want to change the base?
Conversation
promptflow SDK CLI Azure E2E Test Result nirovins/fix_pf_recordings 4 files 4 suites 4m 18s ⏱️ Results for commit a75fe00. ♻️ This comment has been updated with latest results. |
promptflow-evals test result 9 files 9 suites 2h 42m 28s ⏱️ Results for commit a75fe00. ♻️ This comment has been updated with latest results. |
SDK CLI Test Result nirovins/fix_pf_recordings 4 files 4 suites 1h 8m 30s ⏱️ Results for commit a75fe00. ♻️ This comment has been updated with latest results. |
…irovins/fix_pf_recordings
…irovins/fix_pf_recordings
…irovins/fix_pf_recordings
return value | ||
|
||
|
||
def sanitize_pf_run_ids(value: str) -> str: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just curious why we need such a utility here? is there any limitation that randstr
cannot support the scenario?
in pf-azure tests, it works well so that we don't need to apply sanitization, so i'd like to know the limitation here.
# Sanitize telemetry event | ||
if isinstance(body_dict, list) and "Microsoft.ApplicationInsights.Event" in body: | ||
body_dict = SanitizedValues.FAKE_APP_INSIGHTS | ||
# Sanitize the artifact paths |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code missing here, or reluctant comment line?
"parentRunUuid": null, "rootRunUuid": "a5390638-bc06-4129-b24f-2a96292f0df3", | ||
"lastStartTimeUtc": "2024-06-18T18:21:00.126+00:00", "currentComputeTime": | ||
"00:00:00", "computeDuration": null, "effectiveStartTimeUtc": "2024-06-18T18:21:00.126+00:00", | ||
"token": "eyJhbGciOiJSUzI1NiIsImtpZCI6IkZBMTRBODAyQjhDRTQ0MjQxRjE0NkU1RDgyNUQwNzJDODE3NjM0ODQiLCJ0eXAiOiJKV1Qif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2VeTaY_8JhXo51UQP3qBpRohlNRU0vx1Bv_kytu8uNPuq5FiXuEWQ", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe it's better to sanitize this
Description
The promptflow creates a lot of temporary files on-the -ground, which are being transferred to the cloud. In this PR I have added the code to sanitize the run names and added other fixes to allow run recordings.
See work item 3305909
All Promptflow Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines