Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 888896 - dev-util/pkgcheck-0.10.20 fails tests
Summary: dev-util/pkgcheck-0.10.20 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PkgCore project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-29 21:09 UTC by Agostino Sarubbo
Modified: 2022-12-31 11:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,249.39 KB, text/plain)
2022-12-29 21:09 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-12-29 21:09:03 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-util/pkgcheck-0.10.20 fails tests.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-29 21:09:06 UTC
Created attachment 845700 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-12-29 21:09:07 UTC
Error(s) that match a know pattern:


'
E           AssertionError: assert '' == 'profile warning: foo
Failed importing: No module named 'pkgcheck-0'!
FAILED tests/scripts/test_pkgcheck_replay.py::TestPkgcheckReplay::test_replay_pipe_stdin
SKIPPED [1] tests/checks/test_perl.py:39: PerlCheck: failed to run perl script: Can't open perl script "/usr/share/pkgcheck/perl-version.pl": No such file or directory
SKIPPED [1] tests/checks/test_perl.py:44: PerlCheck: failed to run perl script: Can't open perl script "/usr/share/pkgcheck/perl-version.pl": No such file or directory
SKIPPED [1] tests/checks/test_perl.py:58: PerlCheck: failed to run perl script: Can't open perl script "/usr/share/pkgcheck/perl-version.pl": No such file or directory
SKIPPED [1] tests/checks/test_perl.py:62: PerlCheck: failed to run perl script: Can't open perl script "/usr/share/pkgcheck/perl-version.pl": No such file or directory
SKIPPED [1] tests/checks/test_perl.py:69: PerlCheck: failed to run perl script: Can't open perl script "/usr/share/pkgcheck/perl-version.pl": No such file or directory
tests/checks/test_all.py::TestMetadataError::test_register_missing_attr PASSED [132/838]
tests/checks/test_all.py::TestMetadataError::test_reregister_error PASSED [131/838]
tests/checks/test_perl.py::TestPerlCheck::test_matching SKIPPED (PerlCheck: failed to run perl script: Can't open perl script "/usr/share/pkgcheck/perl-version.pl": No such file or directory) [370/838]
tests/checks/test_perl.py::TestPerlCheck::test_no_dist_version SKIPPED (PerlCheck: failed to run perl script: Can't open perl script "/usr/share/pkgcheck/perl-version.pl": No such file or directory) [372/838]
tests/checks/test_perl.py::TestPerlCheck::test_nonmatching SKIPPED (PerlCheck: failed to run perl script: Can't open perl script "/usr/share/pkgcheck/perl-version.pl": No such file or directory) [371/838]
tests/checks/test_perl.py::TestPerlCheck::test_no_perl_deps SKIPPED (PerlCheck: failed to run perl script: Can't open perl script "/usr/share/pkgcheck/perl-version.pl": No such file or directory) [374/838]
tests/checks/test_perl.py::TestPerlCheck::test_no_perl SKIPPED (PerlCheck: failed to run perl script: Can't open perl script "/usr/share/pkgcheck/perl-version.pl": No such file or directory) [373/838]
Comment 3 Larry the Git Cow gentoo-dev 2022-12-31 11:31:45 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=c219e33c3cb40dceb5b3796e00dbd25b3c9dcf8a

commit c219e33c3cb40dceb5b3796e00dbd25b3c9dcf8a
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2022-12-31 11:19:02 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2022-12-31 11:31:23 +0000

    test_pkgcheck_replay: fix test_replay_pipe_stdin from sdist
    
    We don't ship `bin/` in the sdist, so we are unable to run the script
    `bin/pkgcheck` from the sdist. Instead, use monkey-patching and `tool`
    to run with stdin `pkgcheck replay`.
    
    Bug: https://bugs.gentoo.org/888896
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 bin/pkgcheck                          |  1 -
 tests/scripts/test_pkgcheck_replay.py | 58 +++++++++++++++++------------------
 2 files changed, 29 insertions(+), 30 deletions(-)
Comment 4 Larry the Git Cow gentoo-dev 2022-12-31 11:32:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10717ac4ea34a89ed60d1d0d118c491102de9862

commit 10717ac4ea34a89ed60d1d0d118c491102de9862
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2022-12-31 11:30:19 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2022-12-31 11:30:19 +0000

    dev-util/pkgcheck: fix missing bin/ for replay test
    
    Closes: https://bugs.gentoo.org/888896
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 .../files/pkgcheck-0.10.20-fix-replay-bin.patch    | 109 +++++++++++++++++++++
 dev-util/pkgcheck/pkgcheck-0.10.20.ebuild          |   4 +
 2 files changed, 113 insertions(+)