-
Notifications
You must be signed in to change notification settings - Fork 219
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
pylint unit test test_lint.py
should be executed "on demand" only (not as installation test on clients)
#1634
Comments
Yeah, that is annoying of course. 😃 Distinguishing between build and dev dependencies is easier when we have pyproject.toml (#1575). Also categorizing of unit tests will be easer then (#1489). |
Just one thought. Don't know how Arch handles this. But do the unit tests run every time a user will install BIT or just when @graysky2 build the new package? |
It is only run when a user builds the package. Once, built, it is not required. Users can optionally skip the check function when building as well. I think it's fine as-is. |
What is a "user" in Arch definition? Why should a "user" build a package? Users don't build they just download and install from my point of view. |
(deleted a comment in which I confused Arch with Gentoo) |
Arch provides pre-compiled packages like Debian. Of course, not everything is packaged officially. Backintime is not officially supported so the best way for users of Arch to get the software is from an unofficial source. That is the Arch User Repository (AUR). It does not host compiled packages, it does host the user-maintained (me in this case) recipes to build and package software using the Arch native package manager and tools. So... if any Arch user wants to run backintime, he/she can download the files I maintain from here. Once downloaded, the package is built by that same user. I hope this makes sense. |
So AUR packages are not pre-build? Every user need to run the build procedure by them self? What is the advantage using AUR compared to build and install from upstream? Just want to understand. Then why you (as package AUR maintainer) not just remove the "make test" from that procedure? It would save time, resources and a lot of CO2. It is IMHO unusual to have regular users running unit tests. |
Correct
Advantage is that all dependencies and files are handled by the Arch package manager
This is an option. The check function is optional, but custom is to include it if upstream offers one. I don't know what the official policy is for including it or not including it. Note that users can also build with the |
Thanks for making this clear. |
The PyLint unit test is executed only when PyLint is installed. Exception: On TravisCI the test is executed always. Fix #1634
In BiT relese 1.4.3 the
pylint
unit test is included an is always executed to check the source code (static code analyzer).This is not required for users and on distros who install BiT from the source code via
make
and execute the unit tests.In case of ARCH linux it creates an unnecessary dependency and slows down the installation process:
https://aur.archlinux.org/pkgbase/backintime#comment-954673
I suggest to
A new
Makefile
targetmake dev-test
similar tomake test
vs.make test-v
could also be a valid solutionwhich is the only target that executes the linter (meant for us as developer)
@buhtz Do you have an idea?
The text was updated successfully, but these errors were encountered: