Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduce Gru plugin #323

Merged
merged 10 commits into from
Apr 8, 2015
Merged

introduce Gru plugin #323

merged 10 commits into from
Apr 8, 2015

Conversation

coolo
Copy link
Contributor

@coolo coolo commented Apr 4, 2015

it's inspired by minion plugin but puts the tasks in our database
without further requirements

  • replacing optimize_images with gru tasks
  • queue a task to reduce test results after 14 days

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.5%) to 64.83% when pulling 2009328 on coolo_issue_6956 into a91fa01 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.32%) to 65.01% when pulling 7a736a9 on coolo_issue_6956 into a91fa01 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.55%) to 65.88% when pulling 24e84d2 on coolo_issue_6956 into c2a5e1d on master.

@coolo
Copy link
Contributor Author

coolo commented Apr 6, 2015

it should be noted that once this is in, factory/iso need to be owned by geekotest as the gru user is then responsible for cleanup.

@coolo coolo force-pushed the coolo_issue_6956 branch 2 times, most recently from 5c7ed69 to 6e64c5a Compare April 6, 2015 19:59
}

sub add_task {
($_[0]->{tasks}->{$_[1]} = $_[2]) and return $_[0];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're doing a bad name for perl :D

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's what you get when copying from mojo code :)

@coolo
Copy link
Contributor Author

coolo commented Apr 7, 2015

I made the code a bit clearer in c44e9cf - but the test suite fails now for reasons I don't get

it's inspired by minion plugin but puts the tasks in our database
without further requirements

- replacing optimize_images with gru tasks
- queue a task to reduce test results after 14 days
@coolo
Copy link
Contributor Author

coolo commented Apr 8, 2015

found the problem (hopefully without introducing another :)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.66%) to 65.76% when pulling 6156d67 on coolo_issue_6956 into fadafa6 on master.

$c->run('run', '-o');

is(1, -f "t/data/openqa/factory/iso/openSUSE-13.1-DVD-i586-Build0091-Media.iso", "iso 1 is still there");
is(1, -f "t/data/openqa/factory/iso/openSUSE-13.1-DVD-x86_64-Build0091-Media.iso", "iso 2 is still there");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you use ok(..) instead? I was wondering about travis results why it expects undef and then noticed you switched tested and expected result. Took like 5mins form my life :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fine with me - rewrote history, so you got your 5 mins back :)

For this I added a size column to the asset table as cache
@coveralls
Copy link

Coverage Status

Coverage increased (+0.66%) to 65.76% when pulling d4ba064 on coolo_issue_6956 into fadafa6 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.66%) to 65.76% when pulling d4ba064 on coolo_issue_6956 into fadafa6 on master.

@coolo
Copy link
Contributor Author

coolo commented Apr 8, 2015

@nadvornik created_by is in

@aaannz
Copy link
Contributor

aaannz commented Apr 8, 2015

LGTM, but my hoarding complex does not like 14 day expiration.

Use case probably not relevant for opensuse testing, but i.e. back then when autotesting autoyast the tests were triggered automatically when new iso was published. Now it was during summer holidays, people were off for weeks so checking older results was common.

@coolo
Copy link
Contributor Author

coolo commented Apr 8, 2015

well, it's configurable

@coolo coolo merged commit c831834 into master Apr 8, 2015
@coolo
Copy link
Contributor Author

coolo commented Apr 8, 2015

I merged this now and 20d032c giving a default of 30 days

@coolo coolo deleted the coolo_issue_6956 branch April 8, 2015 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants