remote_exec: update to latest packages even when cache is outdated
ClosedPublic

Authored by kparal on May 19 2016, 9:57 AM.

Details

Summary

When setting up minion, try harder to install latest packages. Since dnf
has not install-or-update, we need to use install --best to achieve
the same. We didn't do that before in case the cache was outdated. Now
we do that, and only if it doesn't work, we drop --best.

Also print the executed command to taskotron-stdio.log to make it more
readable.

Test Plan

I reproduced the problem from T798 locally and this fixes it. Also unit tests adjusted.

Diff Detail

Repository
rLTRN libtaskotron
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kparal retitled this revision from to remote_exec: update to latest packages even when cache is outdated.May 19 2016, 9:57 AM
kparal updated this object.
kparal edited the test plan for this revision. (Show Details)
kparal added a reviewer: libtaskotron.
jskladan accepted this revision.May 19 2016, 10:37 AM
jskladan added a reviewer: jskladan.
This revision is now accepted and ready to land.May 19 2016, 10:37 AM
mkrizek accepted this revision.May 19 2016, 10:49 AM
mkrizek added a reviewer: mkrizek.
This revision was automatically updated to reflect the committed changes.