Open yuanming-hu opened 4 years ago
Hi, Yuanming, I reproduced this problem and had a look at the ChangeLog of pytest 6.1.0. In this version, they removed the class ResultLog
which is still used by the pytest plugin: pytest-rerunfailures
. We use this plugin to re-run some cases, that is to say, if we use the arg of '-r' or '--rerun' in our test command, this problem will occur.
Currently, the developers of pytest-rerunfailures
are working with this problem, see this issue and this pr.
Before they fix this problem, I think it is a good idea to just keep the pytest==6.0.2 version !
Awesome! Thanks for the detailed analysis, @Hanke98! It seems that we can simply wait.
The pytest-rerunfailures plugin version 9.1.1 has just been released which now supports newest pytest 6.1:
This issue seems no longer valid, the CI is running against -r2
(with pytest-rerunfailures enabled) and all work fine.
Please double check and close this, thanks.
Describe the bug
ti test -Cvr2 -t2
in the CI scripts do longer works withpytest 6.1.0
.To Reproduce
Run
ti test -Cvr2 -t2
withpytest 6.1.0
Log/Screenshots
Comments
It works fine with the previous version, i.e.,
pytest==6.0.2
. Therefore I enforced build bots to use this version (https://github.com/taichi-dev/taichi/pull/1900/files) instead for now so that the new version can be released. It's worth figuring out what exactly went wrong.