ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Vitaly Lipatov <lav@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Cc: "Vladimir D. Seleznev" <vseleznv@altlinux.org>
Subject: Re: [devel] ModuleNotFoundError: No module named 'borg.testsuite'
Date: Wed, 02 Dec 2020 20:36:47 +0300
Message-ID: <4efd2682ce6838cd838e854149a74d2d@altlinux.ru> (raw)
In-Reply-To: <20201202171303.GC204633@portlab>

Vladimir D. Seleznev писал 2.12.20 20:13:
> Traceback (most recent call last):
>   File "/usr/lib64/python3/site-packages/borg/archiver.py", line 81, in
>   <module>
>       from .selftest import selftest
>         File "/usr/lib64/python3/site-packages/borg/selftest.py", line
> 	21, in <module>
> 	    from .testsuite.hashindex import HashIndexDataTestCase,
> 	    HashIndexRefcountingTestCase, HashIndexTestCase
> 	    ModuleNotFoundError: No module named 'borg.testsuite'
> 	    Command exited with non-zero status 2
> 
> Наверное, не все тесты одинаково не нужны в рантайме.
Напротив, нужно вырезать выполнение этого теста selfttest.py в рантайме, 
проследив, что он выполняется после сборки пакета.
Это тест на правильность упаковки:
«to discover issues with the way Borg was compiled or packaged and also 
bugs in Borg itself.»

Я не думаю, что нужно тянуть unittest, и выполнять юнит-тесты при 
запуске программы. Это чересчур. Но если мантейнер сочтёт, что они 
нужны-нужны, то, конечно, придётся тесты паковать.

В данном случае неупакованные тесты позволили обнажить подход 
разработчиков borg к тестированию.

-- 
С уважением,
Виталий Липатов,
ALT Linux Team


  reply	other threads:[~2020-12-02 17:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-02 17:13 Vladimir D. Seleznev
2020-12-02 17:36 ` Vitaly Lipatov [this message]
2020-12-02 17:54   ` Vladimir D. Seleznev
2020-12-03  2:30     ` Vitaly Lipatov
2020-12-03 15:51       ` Vladimir D. Seleznev
2020-12-03 22:17         ` [devel] Выполнение тестов в рантайме was: " Vitaly Lipatov
2020-12-03 22:31           ` Vladimir D. Seleznev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4efd2682ce6838cd838e854149a74d2d@altlinux.ru \
    --to=lav@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    --cc=vseleznv@altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git