Closed zzn2 closed 1 month ago
12 files ±0 12 suites ±0 16s :stopwatch: -1s 62 tests ±0 62 :white_check_mark: ±0 0 :zzz: ±0 0 :x: ±0 744 runs ±0 744 :white_check_mark: ±0 0 :zzz: ±0 0 :x: ±0
Results for commit c8ef3b27. ± Comparison against base commit 11ac34bd.
:recycle: This comment has been updated with latest results.
4 files 4 suites 4m 18s :stopwatch: 244 tests 204 :white_check_mark: 40 :zzz: 0 :x: 976 runs 816 :white_check_mark: 160 :zzz: 0 :x:
Results for commit c8ef3b27.
:recycle: This comment has been updated with latest results.
0 tests ±0 0 :white_check_mark: ±0 0s :stopwatch: ±0s 0 suites ±0 0 :zzz: ±0 0 files ±0 0 :x: ±0
Results for commit c8ef3b27. ± Comparison against base commit 11ac34bd.
:recycle: This comment has been updated with latest results.
6 tests 6 :white_check_mark: 1m 23s :stopwatch: 1 suites 0 :zzz: 1 files 0 :x:
Results for commit c8ef3b27.
:recycle: This comment has been updated with latest results.
798 tests 798 :white_check_mark: 3m 43s :stopwatch: 1 suites 0 :zzz: 1 files 0 :x:
Results for commit c8ef3b27.
:recycle: This comment has been updated with latest results.
246 tests 239 :white_check_mark: 5m 15s :stopwatch: 1 suites 6 :zzz: 1 files 1 :x:
For more details on these failures, see this check.
Results for commit c8ef3b27.
:recycle: This comment has been updated with latest results.
4 files 4 suites 1h 5m 37s :stopwatch: 790 tests 767 :white_check_mark: 23 :zzz: 0 :x: 3 160 runs 3 068 :white_check_mark: 92 :zzz: 0 :x:
Results for commit c8ef3b27.
:recycle: This comment has been updated with latest results.
Description
The token calculation logic in promptflow-tracing merges two dictionaries related to token usage. i.e. Given these two dictionaries:
The merged result will be:
However, for some customized models, there might be more additional fields populated in the dictionaries, like:
Which causes the merging logic crash:
This PR is to fix the issue. It converts
null
s to0
s to avoid Python from raising errors.All Promptflow Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines