-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.12.0: pytest is failing with errors because it needs git tree? #6
Comments
Yes, currently this project relies on git to locate the baseline code for its performance. I'm not sure it's the best approach and it's certainly undesirable to have that dependency, but currently that's the best it's got. I could potentially update the test suite to be lenient to such cases, but would that help, or would you just run into the same issue again downstream when a project is using this package to test its performance (and again relies on git to find that upstream)? |
#4 has been merged and released as 0.13.0. Does passing Correction: #4 only provided facilities for soliciting the |
I tried to test 0.13.1 and the following six tests failed because of this issue:
Note: tested without |
Maybe pytest-perf should simply skip any tests if a baseline copy is unavailable. That is, in the general case, when testing a single sdist in isolation from the world, there's nothing against which to compare performance. It's not obvious to me whether pytest-perf should detect this condition implicitly or whether downstream integrators should be expected to opt out of running the relevant tests. And there's probably a third option, where downstream integrators could provide some signal that they're doing an isolated build (e.g. an env variable |
In the feature/no-git branch, I've added a trap for the condition where the runner can't be constructed, and in that case, skip the tests. Unfortunately, that doesn't address the unit tests in the docstrings ( Is there really value in making sure the tests run from a source dist, even if the results are mostly meaningless? In other words, maybe downstream packagers should just make a note not to run the tests for this package. |
Since few key projects needs The other option would be to patch out the |
I'm trying to package your module as an rpm package. So I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulesLooks like
pytest-perf
test suite is glued to git working tree (I'm using as input source tar ball autogenerated tar by github from git tag).Here is pytest output:
Is it any way to use test suite sithout git tree? 🤔
(I donl't provide network acces from my build systems)
The text was updated successfully, but these errors were encountered: