testkube icon indicating copy to clipboard operation
testkube copied to clipboard

feat(TKC-1652): persist TestWorkflow Executions in the database

Open rangoo94 opened this issue 5 months ago • 2 comments

Pull request description

  • Persist TestWorkflowExecution along with its result in the MongoDB
  • Persist Log Output in Minio/S3
  • Add CLI commands for all the execution operations
  • Add API for all of the execution operations
  • Fix some bugs with the TestWorkflow controller

Checklist (choose whats happened)

  • [ ] breaking change! (describe)
  • [x] tested locally
  • [ ] tested on cluster
  • [ ] added new dependencies
  • [ ] updated the docs
  • [ ] added a test

Fixes

  • https://linear.app/kubeshop/issue/TKC-1652/testworkflows-prepare-persistence-for-the-executions

rangoo94 avatar Mar 06 '24 23:03 rangoo94

Deploy Preview for testkube-docs-preview canceled.

Name Link
Latest commit 81b10ff8e6c2dae4434835acf018520315f21769
Latest deploy log https://app.netlify.com/sites/testkube-docs-preview/deploys/65e99c6b2c96680008cacb2d

netlify[bot] avatar Mar 06 '24 23:03 netlify[bot]

Codecov Report

Attention: Patch coverage is 2.55682% with 343 lines in your changes are missing coverage. Please review.

Project coverage is 30.31%. Comparing base (acf0126) to head (81b10ff). Report is 4 commits behind head on develop.

Files Patch % Lines
...kg/api/v1/testkube/model_test_workflow_extended.go 0.00% 46 Missing :warning:
pkg/api/v1/client/testworkflow.go 0.00% 30 Missing :warning:
pkg/api/v1/testkube/model_event_extended.go 0.00% 30 Missing :warning:
...v1/testkube/model_test_workflow_status_extended.go 0.00% 26 Missing :warning:
pkg/storage/minio/minio.go 0.00% 26 Missing :warning:
...testkube/model_test_workflow_execution_extended.go 0.00% 24 Missing :warning:
.../model_test_workflow_execution_summary_extended.go 0.00% 23 Missing :warning:
...cl/testworkflowstcl/testworkflowcontroller/logs.go 0.00% 22 Missing :warning:
...i/v1/testkube/model_test_workflow_step_extended.go 0.00% 19 Missing :warning:
...ube/model_test_workflow_with_execution_extended.go 0.00% 19 Missing :warning:
... and 7 more
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5115      +/-   ##
===========================================
- Coverage    30.59%   30.31%   -0.29%     
===========================================
  Files          340      346       +6     
  Lines        31613    31927     +314     
===========================================
+ Hits          9673     9679       +6     
- Misses       21036    21345     +309     
+ Partials       904      903       -1     
Flag Coverage Δ
integrationtests 5.37% <0.00%> (-0.06%) :arrow_down:
unittests 26.65% <2.55%> (-0.25%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Mar 06 '24 23:03 codecov-commenter