-
Notifications
You must be signed in to change notification settings - Fork 270
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
Enable running install_ltp and ltp_run in the same job #8329
Conversation
I haven't test it my PR well, but expect chicken & egg problems as in main_ltp.pm is needed to have runtest files, which are only after installation. If it works (don't have this problem, it'd be better solution for IPMI). It'd be good to check if |
Hmm, I didn't notice that Unfortunately, I don't have access to this issue (error 403). |
I've solved the chicken & egg problem by scheduling testcases at the end of If you run install and tests in the same job on OpenQA without the above PR applied, the testcases will execute just fine but the results will not show up in the web UI. |
@mdoucha nice :). And yes, ajax or page redirection would be great when |
@mdoucha please keep [WIP] or something in the subject so nobody merges it before openQA functionality in os-autoinst/openQA#2302 is merged and deployed on both osd and o3. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Elegant solution, it just need to wait for os-autoinst/openQA#2302 deployment.
@richiejp FYI |
One more dependency: os-autoinst/os-autoinst#1208
|
d824ff2
to
0d42a54
Compare
There were some conflicting changes in |
OK, we're waiting for os-autoinst/openQA#2302 and os-autoinst/os-autoinst#1208 to be released and deployed :). |
Dependencies have been deployed, this PR is ready to be merged. |
Verification runs maybe? |
I did one back when the PR was created, but agree a new one wouldn't harm. |
Now that the dependencies have been deployed, I can finally create one: https://openqa.suse.de/tests/3435241 (install_ltp + ltp_math) |
I see only install_ltp, is that correct? |
No, that's not correct. It appears that os-autoinst wasn't deployed together with openQA... |
that last statement is incorrect. As can be seen from https://openqa.suse.de/tests/3435241/file/autoinst-log.txt the version of os-autoinst running is "4.5.1569914332.5870aebd" corresponding to https://github.com/os-autoinst/os-autoinst/commits/5870aebd which includes os-autoinst/os-autoinst#1208 so the only logical explanation I have at this time is that the feature does not work as expected due to other reasons |
*Facepalm* You're right. Now I know where the problem is. I've created the verification run from an install job and didn't remove the PUBLISH_HDD_1/PUBLISH_PFLASH_VARS variables. These somehow block the usual result upload loop if the test is too short (which it is here) and OpenQA won't notice that test_order.json has changed. This verification run will work: https://openqa.suse.de/tests/3439736 |
...or at least it would have worked if I set the right boot image... One more try: https://openqa.suse.de/tests/3439742 |
This sounds like actually the known issue https://progress.opensuse.org/issues/39845 and this is being worked on. |
@mdoucha @okurz @cfconrad @perlpunk Dependency os-autoinst/openQA#2327 (poo#39845) has been deployed. Although it does not display during running test (poo#58826), we might want to merge it before. Or do we want to wait till poo#39845 is solved? Anyway, verification runs for some LTP jobs (cloned jobs with added |
The real problem is that the dependencies are not deployed. Period. I can see the expected log entries only in jobs executed on openqaworker2, openqaworker10, all ppc64le workers and all aarch64 workers. I've started 2 more verification runs. |
Good point, let's wait. |
And the results are in - exactly as predicted in my previous comment. So my statement from almost a month ago is correct after all:
os-autoinst on openqaworker6 may be up to date but it's apparently talking to OpenQA API which is more than a month old. That's why the test schedule doesn't get updated - because the code that is supposed to reload test_order.json and write the new test schedule into database still hasn't been deployed there. |
So what exactly are you waiting for? Or who should do what? As a side-note: you can check the version of os-autoinst in the log file of every job and the version of the openQA webui in the webui itself, including the changelog |
@okurz IMHO os-autoinst being installed on workers (and maybe openQA as well). |
I know that, but it'd be nice to have internal site showing os-autoinst, openQA* package versions of all workers. That'd help a lot to see the actual deployment. |
The OpenQA webUI version is irrelevant because the worker is not talking to it in the first place. The os-autoinst process on the worker is talking to OpenQA API on the worker. |
To answer your question, you need to update the openQA-common package on the following workers:
Then we can merge this. |
@pevik yes, but this is done already. We have a recent version installed – unless you can show me a machine where we really missed this.
Well, on top of the log files that show the versions you can also check https://openqa.opensuse.org/admin/workers (or correspondingly for every other server) that shows the "os-autoinst API version" and "Websocket Api version" which should be the relevant numbers. It can happen that we miss to update these numbers in pull requests but everyone can propose this with simple code change. For o3 there is an automatic nightly deployment so you can assume that by default the current git master is also running on the o3 webUI and workers.
Let's discuss these OSD specifics internally. |
I have merged now after all services have been restarted to ensure the new code is used. |
This is a convenience patch for LTP testcase debugging. When both
INSTALL_LTP
andLTP_COMMAND_FILE
are specified in the same job, run the testcase immediately afterinstall_ltp
and VM reboot.Currently, running an LTP testcase from fresh sources requires two separate jobs: One to install LTP from Git and publish the HDD image, second to actually run the testcase. This is perfectly fine for regression tests but it's too cumbersome for quick one-off debug runs on special hardware.