Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clear old tests from the results page

Tags:

saucelabs

How do I clear old tests from the tests page in Sauce Labs?

I've got allot of noise on there from trying out stuff and I'd like to tidy it up.

In the long run there will be lots of uninteresting builds, I'd like to be able to archive\remove them so that it isn't difficult to find the significant test runs.

like image 831
BanksySan Avatar asked Mar 15 '13 12:03

BanksySan


2 Answers

This is currently not possible in Saucelabs. See this forum post for reference: http://support.saucelabs.com/entries/23076777-I-to-delete-seesions-

these jobs stay in your account indefinitely, as we've found that users prefer to maintain the records for future reference (for example, in case something starts failing in the future that previously passed).

UPDATE In the meantime they made it possible to delete jobs and resources through their REST API: https://docs.saucelabs.com/reference/rest-api/#delete-job

like image 149
toubsen Avatar answered Oct 16 '22 17:10

toubsen


To quickly delete all your old SauceLabs jobs, you can use this command-line recipe:

SUN=$SAUCE_USERNAME; SAK=$SAUCE_ACCESS_KEY
curl -u $SUN:$SAK https://saucelabs.com/rest/v1/$SUN/jobs?format=csv \
  | perl -wpe 's/\r$//' \
  | xargs -I{} curl -u $SUN:$SAK -X DELETE "https://saucelabs.com/rest/v1/$SUN/jobs/{}"
like image 40
Lucas Cimon Avatar answered Oct 16 '22 15:10

Lucas Cimon