allow passing extra params to ISO post, updates URL to CLI
ClosedPublic

Authored by adamwill on Apr 1 2016, 12:31 AM.

Details

Summary

this commit adds a fairly generic mechanism for passing extra
params into the ISO post command when scheduling jobs, and an
arg to the compose sub-command which takes advantage of this
to let you specify an updates image URL which will cause the
new GRUBADD var to be specified when POSTing the jobs, thus
loading that updates image for all the tests. This should give
us a handy way to run a full openQA test run on any updates
image we like.

When extra parameters are specified, the BUILD value is changed
so this test run can be identified as not being a 'pure' one.
get_passed_testcases is tweaked to make sure we never report
results to the wiki for such tests.

This goes with D801 for the tests.

Test Plan

With D801 applied to the tests, try something like
fedora-openqa-schedule.py compose -f --updates http://dlehman.fedorapeople.org/updates/1322943.0.img https://kojipkgs.fedoraproject.org/compose/rawhide/Fedora-Rawhide-20160331.n.0/compose/
and see what happens; it should add a GRUBADD var to all
tests which should cause that updates image to be loaded. The
updates image loading tests will fail, but all other tests
should now get further than they would without the updates
image (which fixes an early crasher bug). The build should be
the compose ID with -EXTRA appended, and if you try reporting
results to the wiki it should find no passed testcases, with
a debug log message. I will need to adjust the check-compose
consumer to ignore such builds (though we should never run
tests like this on the production openQA, I don't think, at
most we might do it on staging) and I'll also adjust the wiki
report consumer not to even bother trying to report results
for these composes, just to double the protection.

Diff Detail

Repository
rOPENQA fedora_openqa
Branch
test-updates
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 524
Build 524: arc lint + arc unit
adamwill retitled this revision from to allow passing extra params to ISO post, updates URL to CLI.Apr 1 2016, 12:31 AM
adamwill updated this object.
adamwill edited the test plan for this revision. (Show Details)
adamwill added reviewers: jskladan, garretraziel.
garretraziel accepted this revision.Apr 5 2016, 11:58 AM

Looks OK.

This revision is now accepted and ready to land.Apr 5 2016, 11:58 AM
adamwill closed this revision.Apr 8 2016, 8:24 PM

I landed this manually as dealing with diffs-on-diffs is a bit of a pain with the way the commit messages get rewritten and IDs changed.