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

Handle undefined $text in find_bugref and find_bugrefs #1947

Merged
merged 1 commit into from Jan 14, 2019

Conversation

AdamWill
Copy link
Contributor

@AdamWill AdamWill commented Jan 9, 2019

We have quite a few warnings like this in Fedora's openQA logs:

Jan 09 17:55:55 openqa-stg01.qa.fedoraproject.org openqa[27943]: Use of uninitialized value $text in pattern match (m//) at /usr/share/openqa/script/../lib/OpenQA/Utils.pm line 629

It seems like something is calling find_bugref with $text
undefined. Rather than figuring out exactly what's doing that,
it seems easier to just tweak find_bugref to handle being
called with the text undefined. And we may as well do the same
for find_bugrefs since it's, like, right there!

See https://progress.opensuse.org/issues/39923

Signed-off-by: Adam Williamson awilliam@redhat.com

We have quite a few warnings like this in Fedora's openQA logs:

Jan 09 17:55:55 openqa-stg01.qa.fedoraproject.org openqa[27943]: Use of uninitialized value $text in pattern match (m//) at /usr/share/openqa/script/../lib/OpenQA/Utils.pm line 629

It seems like something is calling `find_bugref` with `$text`
undefined. Rather than figuring out exactly what's doing that,
it seems easier to just tweak `find_bugref` to handle being
called with the text undefined. And we may as well do the same
for `find_bugrefs` since it's, like, right there!

See https://progress.opensuse.org/issues/39923

Signed-off-by: Adam Williamson <awilliam@redhat.com>
@Martchus
Copy link
Contributor

Btw, the failing test is unrelated.

@okurz
Copy link
Member

okurz commented Jan 12, 2019

LGTM

retriggered the failed job, something about "# Subtest: test cancelled by quitting the session
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself."

Should we use travis_retry?

@codecov
Copy link

codecov bot commented Jan 12, 2019

Codecov Report

Merging #1947 into master will decrease coverage by 0.27%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1947      +/-   ##
==========================================
- Coverage   89.09%   88.82%   -0.28%     
==========================================
  Files         154      154              
  Lines       10373    10421      +48     
==========================================
+ Hits         9242     9256      +14     
- Misses       1131     1165      +34
Impacted Files Coverage Δ
lib/OpenQA/Utils.pm 92.15% <100%> (-0.16%) ⬇️
lib/OpenQA/Scheduler/Scheduler.pm 88.47% <0%> (-2.31%) ⬇️
lib/OpenQA/Worker/Common.pm 82.04% <0%> (-2.12%) ⬇️
lib/OpenQA/WebSockets/Server.pm 90.41% <0%> (-1.83%) ⬇️
lib/OpenQA/Schema/Result/Jobs.pm 89.53% <0%> (-1.68%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9d93125...95507be. Read the comment docs.

@Martchus Martchus merged commit 5672fc3 into os-autoinst:master Jan 14, 2019
coolo pushed a commit that referenced this pull request Jan 14, 2019
commit 5672fc3
Merge: 680a199 95507be
Author:     Martchus <martchus@gmx.net>
AuthorDate: Mon Jan 14 11:27:03 2019 +0100
Commit:     GitHub <noreply@github.com>
CommitDate: Mon Jan 14 11:27:03 2019 +0100

    Merge pull request #1947 from AdamWill/bugref-undefined

    Handle undefined `$text` in `find_bugref` and `find_bugrefs`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants