squad icon indicating copy to clipboard operation
squad copied to clipboard

Add 'replace testjob' button

Open mwasilew opened this issue 5 years ago • 4 comments

It should be possible to replace existing test job and it's results with new one. It sometimes happens that test definition needs to be updated. Re-running the test job will only add new results to the build while it is requested to replace existing results. So the action should do the following:

  • resubmit the job
  • delete old job
  • delete test run associated with old job
  • delete all tests/metrics from old test run

Button should be added next to 'resubmit' buttons and should be available to project admins

mwasilew avatar Mar 18 '20 10:03 mwasilew

How do you feel having it in a dropdown box instead of next to 'resubmit'?

This way we could add other actions to each test job, e.g. https://github.com/Linaro/squad/issues/653

chaws avatar Mar 23 '20 22:03 chaws

I'm probably OK with that but it might be confusing. Maybe a dropdown + button press should be followed by confirmation dialog? This way we could mitigate at least part of the confusion.

mwasilew avatar Mar 24 '20 08:03 mwasilew

I guess we have to go for some dropdown + button. There already are 3 actions in this box: resubmit, force resubmit, cancel.

mwasilew avatar May 06 '20 10:05 mwasilew

Just for the record: Deleting a testrun also deletes the attached testjob, i know it's written in the code, but I just thought about this issue when I read that.

chaws avatar Jun 25 '20 21:06 chaws