ceph / pulpito-ng

5 stars 7 forks source link

Feature: rerun button on Run page #78

Open VallariAg opened 2 months ago

VallariAg commented 2 months ago

Add a new button to rerun failed jobs in a test run. The button would appear on run page like "kill run" button does in https://github.com/ceph/pulpito-ng/pull/51.

We can use existing /suite endpoint of teuthology-api to request for a rerun. Pulpito-ng can fill the request payload by using the values from the run page data. Like run name (--run-name), rerun-statuses, etc.

Rerun command example:

teuthology-suite --rerun yuriw-2024-06-18_22:03:07-rbd-wip-yuri8-testing-2024-06-18-0723-distro-default-smithi -p 100 --suite-repo https://github.com/vallariag/ceph.git --suite-branch wip-yuri8-testing-2024-06-18-0723 --sha1 9b63bc2c7e1aad253c89228f5672e68aaea112dc -vv

Refer to docs: https://docs.ceph.com/projects/teuthology/en/latest/commands/teuthology-suite.html

To see how to send requests to teuthology-api from pulpito-ng, refer https://github.com/ceph/pulpito-ng/pull/23/files#diff-5f8be92e87d171bfafe635ee330fd0b888ca0871572c4888425bf5476064dc54R28

yashathwani commented 1 month ago

Would like to work on this issue could you please assign it to me !

VallariAg commented 1 month ago

Go ahead, @yashathwani!