Overview

Request 1173002 accepted

- Update to 7.5.1:
* Fix: a pragma comment on the continuation lines of a multi-line statement
now excludes the statement and its body, the same as if the pragma is
on the first line.
* Fix: very complex source files could cause a maximum recursion error when
creating an HTML report.
* HTML report improvements:
+ Support files (JavaScript and CSS) referenced by the HTML report now have
hashes added to their names to ensure updated files are used instead of
stale cached copies.
+ Missing branch coverage explanations that said "the condition was never
false" now read "the condition was always true" because it's easier to
understand.
+ Column sort order is remembered better as you move between the index
pages.
* Added initial support for function and class reporting in the HTML report.
* Other HTML report improvements:
+ There is now a "hide covered" checkbox to filter out 100% files.
+ The index page is always sorted by one of its columns, with clearer
indications of the sorting.
+ The "previous file" shortcut key didn't work on the index page, but now
it does.
* The debug output showing which configuration files were tried now shows
absolute paths to help diagnose problems where settings aren't taking
effect, and is renamed from "attempted_config_files" to the more logical
"config_files_attempted."
* Fix: in some cases, even with [run] relative_files=True, a data file
could be created with absolute path names. When combined with other
relative data files, it was random whether the absolute file names would
be made relative or not. If they weren't, then a file would be listed


Ana Guerrero's avatar

@StevenK:

Makes python-pytest-cov:test FTBFS:

[  103s] =================================== FAILURES ===================================
[  103s] _____________ test_term_report_does_not_interact_with_html_output ______________
[  103s] /home/abuild/rpmbuild/BUILD/pytest-cov-5.0.0/tests/test_pytest_cov.py:295: in test_term_report_does_not_interact_with_html_output
[  103s]     assert sorted(dest_dir.visit('**/*.html')) == [dest_dir.join('index.html'), dest_dir.join('test_funcarg_py.html')]
[  103s] E   AssertionError: assert [local('/tmp/...arg_py.html')] == [local('/tmp/...arg_py.html')]
[  103s] E     At index 0 diff: local('/tmp/pytest-of-abuild/pytest-0/test_term_report_does_not_interact_with_html_output0/cov_dest/class_index.html') != local('/tmp/pytest-of-abuild/pytest-0/test_term_report_does_not_interact_with_html_output0/cov_dest/index.html')
[  103s] E     Left contains 2 more items, first extra item: local('/tmp/pytest-of-abuild/pytest-0/test_term_report_does_not_interact_with_html_output0/cov_dest/index.html')
[  103s] E     Full diff:
[  103s] E       [
[  103s] E     +  local('/tmp/pytest-of-abuild/pytest-0/test_term_report_does_not_interact_with_html_output0/cov_dest/class_index.html'),
[  103s] E     +  local('/tmp/pytest-of-abuild/...
[  103s] E     
[  103s] E     ...Full output truncated (4 lines hidden), use '-vv' to show
[  103s] ----------------------------- Captured stdout call -----------------------------
[  103s] running: /usr/bin/python3.10 -mpytest --basetemp=/tmp/pytest-of-abuild/pytest-0/test_term_report_does_not_interact_with_html_output0/runpytest-0 -v --cov=/tmp/pytest-of-abuild/pytest-0/test_term_report_does_not_interact_with_html_output0 --cov-report=term-missing:skip-covered --cov-report=html:cov_dest /tmp/pytest-of-abuild/pytest-0/test_term_report_does_not_interact_with_html_output0/test_funcarg.py --basetemp=/tmp/pytest-of-abuild/pytest-0/basetemp
[  103s]      in: /tmp/pytest-of-abuild/pytest-0/test_term_report_does_not_interact_with_html_output0
[  103s] ============================= test session starts ==============================
[  103s] platform linux -- Python 3.10.14, pytest-7.4.4, pluggy-1.3.0 -- /usr/bin/python3.10
[  103s] cachedir: .pytest_cache
[  103s] rootdir: /tmp/pytest-of-abuild/pytest-0/test_term_report_does_not_interact_with_html_output0
[  103s] plugins: xdist-3.5.0, cov-5.0.0
[  103s] collecting ... collected 1 item
[  103s] 
[  103s] test_funcarg.py::test_foo PASSED                                         [100%]
[  103s] 
[  103s] ---------- coverage: platform linux, python 3.10.14-final-0 ----------
[  103s] Name    Stmts   Miss  Cover   Missing
[  103s] -------------------------------------
[  103s] TOTAL       3      0   100%
[  103s] 
[  103s] 1 file skipped due to complete coverage.
[  103s] Coverage HTML written to dir cov_dest
[  103s] 
[  103s] 
[  103s] ============================== 1 passed in 0.03s ===============================
[  103s] =========================== short test summary info ============================
[  103s] SKIPPED [1] tests/test_pytest_cov.py:372: condition: coverage.version_info >= (6, 3)
[  103s] SKIPPED [3] tests/test_pytest_cov.py:1098: condition: sys.platform != "win32"
[  103s] FAILED tests/test_pytest_cov.py::test_term_report_does_not_interact_with_html_output
[  103s] ====== 1 failed, 119 passed, 4 skipped, 6 deselected in 92.31s (0:01:32) =======
[  103s] error: Bad exit status from /var/tmp/rpm-tmp.eoEidf (%check)
Request History
Steve Kowalik's avatar

StevenK created request

- Update to 7.5.1:
* Fix: a pragma comment on the continuation lines of a multi-line statement
now excludes the statement and its body, the same as if the pragma is
on the first line.
* Fix: very complex source files could cause a maximum recursion error when
creating an HTML report.
* HTML report improvements:
+ Support files (JavaScript and CSS) referenced by the HTML report now have
hashes added to their names to ensure updated files are used instead of
stale cached copies.
+ Missing branch coverage explanations that said "the condition was never
false" now read "the condition was always true" because it's easier to
understand.
+ Column sort order is remembered better as you move between the index
pages.
* Added initial support for function and class reporting in the HTML report.
* Other HTML report improvements:
+ There is now a "hide covered" checkbox to filter out 100% files.
+ The index page is always sorted by one of its columns, with clearer
indications of the sorting.
+ The "previous file" shortcut key didn't work on the index page, but now
it does.
* The debug output showing which configuration files were tried now shows
absolute paths to help diagnose problems where settings aren't taking
effect, and is renamed from "attempted_config_files" to the more logical
"config_files_attempted."
* Fix: in some cases, even with [run] relative_files=True, a data file
could be created with absolute path names. When combined with other
relative data files, it was random whether the absolute file names would
be made relative or not. If they weren't, then a file would be listed


Factory Auto's avatar

factory-auto added opensuse-review-team as a reviewer

Please review sources


Factory Auto's avatar

factory-auto accepted review

Check script succeeded


Saul Goodman's avatar

licensedigger accepted review

ok


Dominique Leuenberger's avatar

dimstar_suse set openSUSE:Factory:Staging:D as a staging project

Being evaluated by staging project "openSUSE:Factory:Staging:D"


Dominique Leuenberger's avatar

dimstar_suse accepted review

Picked "openSUSE:Factory:Staging:D"


Ruediger Oertel's avatar

oertel accepted review

Accepted review for by_group opensuse-review-team request 1173002 from user dimstar_suse


Dominique Leuenberger's avatar

dimstar_suse added factory-staging as a reviewer

Being evaluated by group "factory-staging"


Dominique Leuenberger's avatar

dimstar_suse accepted review

Unstaged from project "openSUSE:Factory:Staging:D"


Dominique Leuenberger's avatar

dimstar_suse set openSUSE:Factory:Staging:L as a staging project

Being evaluated by staging project "openSUSE:Factory:Staging:L"


Dominique Leuenberger's avatar

dimstar_suse accepted review

Picked "openSUSE:Factory:Staging:L"


Ana Guerrero's avatar

anag+factory added factory-staging as a reviewer

Being evaluated by group "factory-staging"


Ana Guerrero's avatar

anag+factory accepted review

Unstaged from project "openSUSE:Factory:Staging:L"


Ana Guerrero's avatar

anag+factory set openSUSE:Factory:Staging:H as a staging project

Being evaluated by staging project "openSUSE:Factory:Staging:H"


Ana Guerrero's avatar

anag+factory accepted review

Picked "openSUSE:Factory:Staging:H"


Ana Guerrero's avatar

anag+factory added factory-staging as a reviewer

Being evaluated by group "factory-staging"


Ana Guerrero's avatar

anag+factory accepted review

Unstaged from project "openSUSE:Factory:Staging:H"


Ana Guerrero's avatar

anag+factory set openSUSE:Factory:Staging:J as a staging project

Being evaluated by staging project "openSUSE:Factory:Staging:J"


Ana Guerrero's avatar

anag+factory accepted review

Picked "openSUSE:Factory:Staging:J"


Ana Guerrero's avatar

anag+factory added factory-staging as a reviewer

Being evaluated by group "factory-staging"


Ana Guerrero's avatar

anag+factory accepted review

Unstaged from project "openSUSE:Factory:Staging:J"


Ana Guerrero's avatar

anag+factory accepted review

Picked "openSUSE:Factory:Staging:E"


Ana Guerrero's avatar

anag+factory set openSUSE:Factory:Staging:E as a staging project

Being evaluated by staging project "openSUSE:Factory:Staging:E"


Ana Guerrero's avatar

anag+factory accepted review

Staging Project openSUSE:Factory:Staging:E got accepted.


Ana Guerrero's avatar

anag+factory approved review

Staging Project openSUSE:Factory:Staging:E got accepted.


Ana Guerrero's avatar

anag+factory accepted request

Staging Project openSUSE:Factory:Staging:E got accepted.

openSUSE Build Service is sponsored by