GSK-2902 GSK-2418 Add a method to execute test suite and upload result to Hub programmatically + result cleanup#1818
Conversation
|
|
||
|
|
||
| class TestSuiteExecutionResult(str, Enum): | ||
| IN_PROGRESS = ("IN_PROGRESS",) |
There was a problem hiding this comment.
Why ( "", ), and "ERROR" ? are the parenthesis needed ?
There was a problem hiding this comment.
My bad I added unnecessary commas and the pre-commit reformatted like that
| metadata: Dict[str, List[str]] | ||
|
|
||
|
|
||
| class SaveSuiteTestExecutionDTO(ConfiguredBaseModel): |
There was a problem hiding this comment.
That's a lot of data. Everything is needed ?
There was a problem hiding this comment.
Everything is saved into the Hub.
I agree that we don't use nor need all those information into the Hub. We might probably want to cleanup everything. (Both from Hub and programatic execution)
| def _test_result_to_dto(result: SuiteResult): | ||
| datasets = {dataset.id: dataset for dataset in result.params.values() if isinstance(dataset, Dataset)} | ||
|
|
||
| return SaveSuiteTestExecutionDTO( |
There was a problem hiding this comment.
Created issue and listed unused stuff: https://linear.app/giskard/issue/GSK-2902/cleanup-testresult-information-that-are-sent-to-the-hub
There was a problem hiding this comment.
I can work work on this on this PR it's relatively safe to clean this up
# Conflicts: # giskard/core/suite.py
Hartorn
left a comment
There was a problem hiding this comment.
I did give this PR a try, and had some issues :
- I had some issues with suite_id not being set (I added a commit for this)
- I cannot debug uploaded test results (issue with uuid badly formatted ?
- when executing test suite from downloaded one, the labels are different (maybe unrelated)
|
Execution in notebook uploaded (see with uuid) Finally download + execution in notebook + uploade (see label of tests) The notebook |
|
@Hartorn Thanks for the feedback, I fixed the issue with the |
|
@kevinmessiaen I did try it again, but still cannot debug |
Yes it was the wrong id send ( I updated the save so that we can keep track of all generated ids properly |
b93076a to
c7eabb1
Compare
|






Description
Added an
uploadmethod to theTestResultin order to allow saving them to the Hub.The method have the following params:
Nonethe label of the execution. IfNonethe execution date will be the labelExample code to execute:
Cleanup of test result information sent to up
Removed unused inforamtion:
Related Issue
Type of Change