Bug 1714301 - Please remove YAMLLoadWarning
Summary: Please remove YAMLLoadWarning
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: fmf
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Šplíchal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-27 15:12 UTC by Lukas Slebodnik
Modified: 2019-08-10 08:32 UTC (History)
1 user (show)

Fixed In Version: fmf-0.7-1.fc30 fmf-0.7-1.fc29 fmf-0.7-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-04 01:13:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lukas Slebodnik 2019-05-27 15:12:54 UTC
Version-Release number of selected component (if applicable):
sh$ rpm -q python3-fmf
python3-fmf-0.6-1.fc29.noarch
python3-pyyaml-5.1-1.fc29.x86_64

How reproducible:
deterministic

Steps to Reproduce:
1. dnf install -y python3-fmf
2. mkdir /tmp/.fmf
3. echo 1 > /tmp/.fmf/version
4. touch /tmp/test.fmf
5. python3 -c 'import fmf; fmf.base.Tree("/tmp")'

Actual results:
sh$ python3 -c 'import fmf; fmf.base.Tree("/tmp")'
/usr/lib/python3.7/site-packages/fmf/base.py:248: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  data = yaml.load(datafile) 

Expected results:
sh$ python3 -c 'import fmf; fmf.base.Tree("/tmp")'
sh$ echo $?
0

Comment 1 Petr Šplíchal 2019-07-26 13:36:28 UTC
This should be fixed in fmf-0.7:
https://github.com/psss/fmf/commit/610c1e5

Comment 2 Fedora Update System 2019-07-26 13:39:05 UTC
FEDORA-2019-264494cbb8 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-264494cbb8

Comment 3 Fedora Update System 2019-07-26 13:39:12 UTC
FEDORA-2019-add85400c1 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-add85400c1

Comment 4 Lukas Slebodnik 2019-07-26 13:41:40 UTC
Is there any reason why you cannot use yaml.safe_load?

Comment 5 Petr Šplíchal 2019-07-26 13:50:09 UTC
SafeLoader loads a subset of the YAML language:

    https://msg.pyyaml.org/load 

So FullLoader seems to be a better choice.

Comment 6 Lukas Slebodnik 2019-07-26 13:52:25 UTC
OK and thank you for update in bodhi

Comment 7 Fedora Update System 2019-07-26 14:26:14 UTC
FEDORA-EPEL-2019-bc1a482afe has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-bc1a482afe

Comment 8 Fedora Update System 2019-07-27 01:22:26 UTC
fmf-0.7-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-264494cbb8

Comment 9 Fedora Update System 2019-07-27 01:50:38 UTC
fmf-0.7-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-add85400c1

Comment 10 Fedora Update System 2019-07-27 05:35:20 UTC
fmf-0.7-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-bc1a482afe

Comment 11 Fedora Update System 2019-08-04 01:13:26 UTC
fmf-0.7-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2019-08-04 02:40:19 UTC
fmf-0.7-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2019-08-10 08:32:32 UTC
fmf-0.7-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.