Project

General

Profile

Actions

action #18194

closed

[SLE][Migration][SLE15SP2] save solver-testcase for "patch_before_migration" and other setup steps

Added by okurz about 7 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
Enhancement to existing tests
Target version:
-
Start date:
2017-03-30
Due date:
% Done:

0%

Estimated time:
14.00 h
Difficulty:

Description

Proposal by Michael Andres by email:

Regarding https://bugzilla.suse.com/show_bug.cgi?id=1031634 looking at https://openqa.suse.de/tests/844411#step/patch_before_migration/26 he suggests to store zypper.log as well as the "solver-testcase"

  • Execute ZYPP_LOGFILE=/dev/null zypper in --debug-solver dummy and tar the directory /var/log/zypper.solverTestCase

  • for updates:
    if /var/log/updateTestcase-YYYY-MM-DD-hh-mm-ss directories exist, tar them as well and upload


Related issues 1 (0 open1 closed)

Has duplicate openQA Tests - action #39317: [functional][y] Implement "solver"-testcase, e.g. in post_fail hookRejectedokurz2018-08-08

Actions
Actions #1

Updated by okurz about 4 years ago

  • Has duplicate action #39317: [functional][y] Implement "solver"-testcase, e.g. in post_fail hook added
Actions #2

Updated by okurz about 4 years ago

  • Priority changed from Normal to Urgent

Closed #39317 requesting the same as duplicate. It is unfortunate to see this ticket receiving no update at all after 3 years. The necessary debug work for https://bugzilla.suse.com/show_bug.cgi?id=1155244 is making this more important now.

Actions #3

Updated by coolgw about 4 years ago

@oliver why this hold so long? Is there any difficult technical part for implement this?

Actions #4

Updated by maritawerner about 4 years ago

Well, that is the question to the QA migration team, why do you not implement that into the migration testcases?
Another bug with the same problem: https://bugzilla.suse.com/show_bug.cgi?id=1166695

Actions #5

Updated by coolgw about 4 years ago

  • Subject changed from [migration] save solver-testcase for "patch_before_migration" and other setup steps to [SLE][Migration][SLE15SP2] save solver-testcase for "patch_before_migration" and other setup steps
  • Assignee set to coolgw

put into my backlog

Actions #6

Updated by coolgw about 4 years ago

=== Just to make sure everybody knows how to create a solver testcase:

  • Repeat the failing zypper command adding --debug-solver as additional command option.
    Here:

    zypper -n patch --debug-solver --with-interactive -l

  • Then pack the output directory (for zypper /var/log/zypper.solverTestCase/) together
    with /var/log/zypper.log an provide it.

  • YAST AFAIK provides a menu button within the single package selection dialog to create
    a solver testcase and writes it to a directory below /var/log/YaST2.

A testcase is an abstract of all installed and available packages and all solver and system settings which influence dependency resolution on this system. It allows us to inspect all repositories and packages and to simulate solving jobs on this system.

Actions #7

Updated by coolgw about 4 years ago

first try
linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/solver-test-case http://openqa.suse.de/tests/4039261
Created job #4040732: sle-15-SP2-Migration-from-SLE15-SPX-to-SLE15-SP2-x86_64-Build164.1-offline_sles15_media_basesys-srv-desk-we-py2_all_full@64bit_cirrus -> http://openqa.suse.de/t4040732

Actions #8

Updated by coolgw about 4 years ago

linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/solver-test-case-debug http://openqa.suse.de/tests/4039261
Created job #4045759: sle-15-SP2-Migration-from-SLE15-SPX-to-SLE15-SP2-x86_64-Build164.1-offline_sles15_media_basesys-srv-desk-we-py2_all_full@64bit_cirrus -> http://openqa.suse.de/t4045759
linux-4360:~/openqa-distr #

Actions #9

Updated by coolgw about 4 years ago

also run a normal case
linux-4360:~/openqa/openqa_review # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/solver-test-case-debug http://openqa.suse.de/tests/4039342
Created job #4045835: sle-15-SP2-Migration-to-HPC15-SP2-x86_64-Build164.1-offline_hpc12sp5_pscc_def_full@64bit_cirrus -> http://openqa.suse.de/t4045835

Actions #10

Updated by coolgw about 4 years ago

another run for failed on other case, the test case should not upload either.
linux-4360:~/openqa-distr # /usr/local/bin/openqa-clone-custom-git-refspec https://github.com/coolgw/os-autoinst-distri-opensuse/tree/solver-test-case-debug http://openqa.suse.de/tests/4039187

Created job #4052025: sle-15-SP2-Migration-from-SLE12-SP5-to-SLE15-SP2-x86_64-Build164.1-offline_sles12sp5_pscc_phub_def_full@64bit_cirrus -> http://openqa.suse.de/t4052025

Actions #11

Updated by maritawerner about 4 years ago

Hello Wei Gao,

thanks for the updates. Michael Andres suggested that we add the solver-testcase to every testcase, where zypper fails. I am not sure if we can do that and how much work it is.

And could we please document it in our bug report descriptions so that we do not forget that again, e.g. when new employees join us?

Actions #12

Updated by coolgw about 4 years ago

  • Status changed from New to In Progress
Actions #13

Updated by coolgw about 4 years ago

  • Status changed from In Progress to Resolved

Hello Marita

https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/9897 already merged, this should support to every test cases. Also i will make some document for this when submit an issue.

BTW:thanks Oliver's help so we can fix it quickly.

Thanks.
Regards
Gao Wei

Actions #14

Updated by leli almost 4 years ago

  • Estimated time set to 14.00 h
Actions

Also available in: Atom PDF