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

Change softfailure to info for s390x shutdown #15176

Merged
merged 1 commit into from
Jul 5, 2022

Conversation

rakoenig
Copy link
Contributor

@rakoenig rakoenig commented Jul 5, 2022

Backend does not implement is_shutdown so there is not much chance to detect a shutdown from the GUI. Nevertheless we can replace the softfailure with just an info.

@github-actions
Copy link

github-actions bot commented Jul 5, 2022

Great PR! Please pay attention to the following items before merging:

Files matching lib/**.pm:

  • Consider adding or extending unit tests in t/

This is an automatically generated QA checklist based on modified files

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.

The commit message could have a bit more details, e.g. what issue is fixed, why this needs to change, to which versions of which product it applies, link to a bug or a fate entry, the choices you made, etc. Also see https://commit.style/ or http://chris.beams.io/posts/git-commit/ as a helpful guide how to write good commit messages.

I recommend for the subject line to tell about the important effect, not just what you changed.

What you put into the description of the pull request could also be in the commit message details. I don't know how you created your pull request but your git commit messages has only the subject line while the pull request description has more details. Please keep in mind that the github pull request description is only visible on github, the commit can be considered permanent information storage.

I can recommend the tool hub (zypper in rubygem-hub) for easier PR creation. Also, I myself use a script git-pr-last to create a PR with proper description for these simple one-commit PRs:

$ cat $(which git-pr-last )
#!/bin/sh -e
target="${target:-"$USER"}"
git push $target && git show --no-patch --format=%B | hub pull-request -F -

See https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/CONTRIBUTING.md#coding-style for more details

Also the change of newline at the end of the file is an unrelated whitespace change that should be avoided within the same commit. You can create a separate commit in the same PR though.

Copy link
Member

@ge0r ge0r left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -277,7 +277,7 @@ sub power_action {
}
elsif ($action eq 'poweroff') {
if (is_backend_s390x) {
record_soft_failure('poo#58127 - Temporary workaround, because shutdown module is marked as failed on s390x backend when shutting down from GUI.');
record_info('poo#58127 - Temporary workaround, because shutdown module is marked as failed on s390x backend when shutting down from GUI.');
Copy link
Member

Choose a reason for hiding this comment

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

Maybe for better visibility you could do
record_info('poo#58127', 'Temporary workaround, because shutdown module is marked as failed on s390x backend when shutting down from GUI.');

- Backend does not implement is_shutdown so there is not
  much chance to detect a shutdown from the GUI.
  Nevertheless we can replace the softfailure with just an info.

  Related ticket: https://progress.opensuse.org/issues/110437
  Needles: -
  Verification run: https://openqa.suse.de/tests/9072280#
@ge0r ge0r merged commit 8a55476 into os-autoinst:master Jul 5, 2022
@okurz
Copy link
Member

okurz commented Jul 5, 2022

@ge0r have you overlooked my review or did you think it was not important or already resolved (which it wasn't)?

@ge0r
Copy link
Member

ge0r commented Jul 6, 2022

@ge0r have you overlooked my review or did you think it was not important or already resolved (which it wasn't)?

I did not overlook it, which is why I did not merge the PR, it did not make sense for me to repeat the commit message point since it was already addressed, so I marked it as ok as far as the implementation went, with a suggestion from my side.

@okurz
Copy link
Member

okurz commented Jul 6, 2022

But my review included multiple points and only one was addressed. I would prefer if a review is taken seriously and not disregarded, especially not without a comment, e.g. "sorry, I need to merge this because whole production is down today and we urgently need this fixed and the git commit author has gone to vacation and nobody else can fix the typo in the comment that you flagged".

@jknphy
Copy link
Contributor

jknphy commented Jul 11, 2022

Hi @rakoenig as we agreed a time ago, after our initial investigation of the issue by a couple of team members in our squad we didn't find what was the problem, so we will be creating the record_info with a ticket for the tools teams's backlog. We should not reference the progress ticket 'Resolved', which by they way we use 'Close' in our flow.

Other than that, regarding the feedback, I didn't see the previous version of the PR, but now looks sort of ok, I would only had added 'shutdown from GUI' to title/commit to make it more clear probably. It is a good suggestion from Oliver to use some automatic tool, as I can see that we sometimes forget to match PR title and PR commit, please consider that.

@rakoenig rakoenig deleted the verify_s390_gui_shutdown branch July 15, 2022 07:58
Zaoliang added a commit to Zaoliang/os-autoinst-distri-opensuse that referenced this pull request Jul 25, 2022
see https://progress.opensuse.org/issues/114439
with PR os-autoinst#15176 we expect the failure
of GUI shutdown because record_soft_failure got removed and no fix was in place.
Zaoliang added a commit to Zaoliang/os-autoinst-distri-opensuse that referenced this pull request Jul 25, 2022
see https://progress.opensuse.org/issues/114439
with PR os-autoinst#15176 we expect the failure
of GUI shutdown because record_soft_failure got removed and no fix was in place.
Zaoliang added a commit to Zaoliang/os-autoinst-distri-opensuse that referenced this pull request Jul 25, 2022
see https://progress.opensuse.org/issues/114439
with PR os-autoinst#15176 we expect the failure
of GUI shutdown because record_soft_failure got removed and no fix was in place.
Zaoliang added a commit to Zaoliang/os-autoinst-distri-opensuse that referenced this pull request Jul 26, 2022
see https://progress.opensuse.org/issues/114439
with PR os-autoinst#15176 we expect the failure
of GUI shutdown because record_soft_failure got removed and no fix was in place.
Zaoliang added a commit to Zaoliang/os-autoinst-distri-opensuse that referenced this pull request Jul 26, 2022
see https://progress.opensuse.org/issues/114439
with PR os-autoinst#15176 we expect the failure
of GUI shutdown because record_soft_failure got removed and no fix was in place.
Zaoliang added a commit to Zaoliang/os-autoinst-distri-opensuse that referenced this pull request Jul 26, 2022
see https://progress.opensuse.org/issues/114439
with PR os-autoinst#15176 we expect the failure
of GUI shutdown because record_soft_failure got removed and no fix was in place.
Zaoliang added a commit to Zaoliang/os-autoinst-distri-opensuse that referenced this pull request Jul 26, 2022
see https://progress.opensuse.org/issues/114439
with PR os-autoinst#15176 we expect the failure
of GUI shutdown because record_soft_failure got removed and no fix was in place.

verification run:
https://openqa.suse.de/tests/9215576#step/shutdown/14
Zaoliang added a commit to Zaoliang/os-autoinst-distri-opensuse that referenced this pull request Jul 26, 2022
see https://progress.opensuse.org/issues/114439
with PR os-autoinst#15176 we expect the failure
of GUI shutdown because record_soft_failure got removed and no fix was in place.

verification run:
https://openqa.suse.de/tests/9215576#step/shutdown/14
Zaoliang added a commit to Zaoliang/os-autoinst-distri-opensuse that referenced this pull request Jul 27, 2022
see https://progress.opensuse.org/issues/114439
with PR os-autoinst#15176 we expect the failure
of GUI shutdown because record_soft_failure got removed and no fix was in place.

verification run:
https://openqa.suse.de/tests/9215576#step/shutdown/14
Zaoliang added a commit to Zaoliang/os-autoinst-distri-opensuse that referenced this pull request Jul 27, 2022
See https://progress.opensuse.org/issues/114439 for details.
With PR os-autoinst#15176 we expect the failure
of GUI shutdown because record_soft_failure got removed and no fix was in place.

Verification run:
https://openqa.suse.de/tests/9225020#step/shutdown
Zaoliang added a commit to Zaoliang/os-autoinst-distri-opensuse that referenced this pull request Jul 28, 2022
See https://progress.opensuse.org/issues/114439 for details.
With PR os-autoinst#15176 we expect the failure
of GUI shutdown because record_soft_failure got removed and no fix was in place.

Verification run:
https://openqa.suse.de/tests/9225020#step/shutdown
Zaoliang added a commit to Zaoliang/os-autoinst-distri-opensuse that referenced this pull request Jul 28, 2022
See https://progress.opensuse.org/issues/114439 for details.
With PR os-autoinst#15176 we expect the failure
of GUI shutdown because record_soft_failure got removed and no fix was in place.

Verification run:
https://openqa.suse.de/tests/9225020#step/shutdown
Zaoliang added a commit to Zaoliang/os-autoinst-distri-opensuse that referenced this pull request Jul 28, 2022
See https://progress.opensuse.org/issues/114439 for details.
With PR os-autoinst#15176 we expect the failure
of GUI shutdown because record_soft_failure got removed and no fix was in place.

Verification run:
https://openqa.suse.de/tests/9225020#step/shutdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants