Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 847835 - dev-libs/libgit2-1.4.3: fails 'offline' test
Summary: dev-libs/libgit2-1.4.3: fails 'offline' test
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2022-05-28 01:20 UTC by Sam James
Modified: 2022-05-28 05:36 UTC (History)
1 user (show)

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


Attachments
build.log (file_847835.txt,861.03 KB, text/plain)
2022-05-28 01:20 UTC, Sam James
no flags Details
LastTest.log (file_847835.txt,11.16 KB, text/plain)
2022-05-28 01:20 UTC, Sam James
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-28 01:20:00 UTC
Created attachment 781097 [details]
build.log

1) Failure:
refs::revparse::date [/var/tmp/portage/dev-libs/libgit2-1.4.3/work/libgit2-1.4.3/tests/refs/revparse.c:28]
  String mismatch: objstr != expected_oid
  'a65fedf39aefe402d3bb6e24df4d4f5fe4547750' != 'be3563ae3f795b2b4353bcce3a527ad0a4f7f644' (at byte 0)



0% tests passed, 1 tests failed out of 1

Total Test time (real) = 210.52 sec

The following tests FAILED:
          1 - offline (Failed)
Errors while running CTest
 * ERROR: dev-libs/libgit2-1.4.3::gentoo failed (test phase):
 *   Tests failed. When you file a bug, please attach the following file:
 *      /var/tmp/portage/dev-libs/libgit2-1.4.3/work/libgit2-1.4.3_build/Testing/Temporary/LastTest.log
 *
 * Call stack:
 *     ebuild.sh, line  127:  Called src_test
 *   environment, line 2924:  Called cmake_src_test '-R' 'offline'
 *   environment, line 1485:  Called die
 * The specific snippet of code:
 *               die "Tests failed. When you file a bug, please attach the following file:
 *      ${BUILD_DIR}/Testing/Temporary/LastTest.log";

----
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-28 01:20:23 UTC
Created attachment 781100 [details]
LastTest.log
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-05-28 05:10:39 UTC
I wonder if it's due to OpenSSL 3.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-05-28 05:29:03 UTC
Ooookay.


commit bdab22384cc61d315005a65456a9f9563bb27c8f
Author: Carlos Martín Nieto <carlosmn@github.com>
Date:   Tue May 3 09:28:43 2022 +0200

    revparse: adjust reflog test as we move away from the dates
    
    The dates we use in `refs::revparse::date` has just passed the ten years, so
    now everything is beyond ten years, leading to an unexpected commit being
    returned.
    
    Adjust it to 11 years so it all looks fine again.

 tests/libgit2/refs/revparse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 Larry the Git Cow gentoo-dev 2022-05-28 05:36:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62b8f6febfd78798a960c68a2173c0fba893f0f4

commit 62b8f6febfd78798a960c68a2173c0fba893f0f4
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2022-05-28 05:29:49 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2022-05-28 05:36:27 +0000

    dev-libs/libgit2: Fix test regression due to time passing
    
    Closes: https://bugs.gentoo.org/847835
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-libs/libgit2/files/libgit2-1.4.3-test.patch | 30 +++++++++++++++++++++++++
 dev-libs/libgit2/libgit2-1.4.3.ebuild           |  4 ++++
 2 files changed, 34 insertions(+)