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

Skip 2nd&3rd runs when all selecting patterns in sle15 #4632

Merged
merged 1 commit into from Mar 20, 2018

Conversation

jknphy
Copy link
Contributor

@jknphy jknphy commented Mar 16, 2018

While this bug/future requested feature related with conflicts among cloud patterns is fixed/implemented we can skip from the test 2nd and 3rd run (which I was not able to figure out what is its purpose for old products) but at least in this test we will select all patterns not conflicting atm. Added checking if there is some conflicting package, we flag it and then we skip next runs.

@jknphy jknphy changed the title Skip 2nd&3rd runs when selecting patterns in sle15 [WIP] Skip 2nd&3rd runs when selecting patterns in sle15 Mar 16, 2018
@jknphy jknphy changed the title [WIP] Skip 2nd&3rd runs when selecting patterns in sle15 [WIP] Skip 2nd&3rd runs when all selecting patterns in sle15 Mar 16, 2018
@jknphy jknphy changed the title [WIP] Skip 2nd&3rd runs when all selecting patterns in sle15 Skip 2nd&3rd runs when all selecting patterns in sle15 Mar 16, 2018
$self->gotopatterns;
$self->package_action('unblock');
if (is_sle('15+') and check_var('PATTERNS', 'all')) {
record_soft_failure "bsc#1084064 - Cloud patterns conflicts"; # skip second & third runs
Copy link
Member

Choose a reason for hiding this comment

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

Would it somehow be possible to actually detect the situation? Here we will not see when the bug got fixed and the soft failure will be preserved, right?

@jknphy jknphy changed the title Skip 2nd&3rd runs when all selecting patterns in sle15 [WIP] Skip 2nd&3rd runs when all selecting patterns in sle15 Mar 16, 2018
@jknphy jknphy force-pushed the fix_select_all_patterns branch 2 times, most recently from 4456ed9 to 7801e71 Compare March 19, 2018 07:58
@jknphy jknphy changed the title [WIP] Skip 2nd&3rd runs when all selecting patterns in sle15 Skip 2nd&3rd runs when all selecting patterns in sle15 Mar 19, 2018
Copy link
Member

@okurz okurz left a comment

Choose a reason for hiding this comment

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

btw, you changed code and did not write a comment that you changed something. Be aware that a notification is only sent out in github when you write a comment, not just when code is updated.

@@ -84,6 +84,7 @@ sub workaround_dependency_issues {
sleep 2;
}
}
return 1;
Copy link
Member

Choose a reason for hiding this comment

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

can you comment on this change? What does it change/fix?

Copy link
Contributor Author

@jknphy jknphy Mar 20, 2018

Choose a reason for hiding this comment

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

if the function detects the dependency issue returns 1, so we can know that at least there was a conflict. Otherwise returns undef (that is was originally was returning).

Copy link
Member

Choose a reason for hiding this comment

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

let's hope for the best then :)

$self->workaround_dependency_issues;
# stick to the default patterns
$dep_issue = $self->workaround_dependency_issues || $dep_issue; # check if at least 1 dep. issue was displayed
# stick to the default patterns
Copy link
Member

Choose a reason for hiding this comment

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

better to split the comments from the code, i.e. move the comment in the previous above the code and not next to it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

tidy put together, yes, better on the top.

@jknphy
Copy link
Contributor Author

jknphy commented Mar 20, 2018

I didn't know that. I will remember to write a comment in these cases. Thx :)

@okurz okurz merged commit 883379f into os-autoinst:master Mar 20, 2018
@jknphy jknphy deleted the fix_select_all_patterns branch September 7, 2018 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants