-
Notifications
You must be signed in to change notification settings - Fork 91
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
Update pip config #607
Update pip config #607
Conversation
I think we should keep the |
4737d65
f772d10
to
4737d65
Compare
We have a corporate security directive to avoid use of pip in general and source repositories are regularly scanned to nag about the presence of pip configuration information. These files got missed in earlier clean up activities. |
Would it more acceptable in a |
No, they get complained about as well. Basically anything with pip is deemed to be insecure and a problem with supply chain verification. |
I'm sorry corporate directives impair ability for devs inside Xenserver to work efficiently (even more so as I've endured such rules in past jobs), but surely we can find a way to provide dependency information in a standard machine-parsable way a public project? |
It doesn't actually impair us at all as we use the RPM build mock to run this stuff and that just derives everything it needs from the specfile. |
But then, not providing machine-parsable dependency info is impairing the community - providing them to the community does not force their internal use. |
@MarkSymsCtx As an open-source project under the umbrella of the Xen Project, it's important that there be a clear, practical way for external contributors to build and contribute xapi. Is such a method documented anywhere? Also, are there any other upstream projects that XenServer either consumes or contributes to, which have @ydirson Would it be practical for you to use mock to do building as well? Or alternately, would a Docker file or a vagrant file with the relevant dependencies be suitable? |
Mock is useful for build reproducibility of RPMs, but before we're at rpm-building stage we should be able to easily run unit tests, which can only run when we have the proper dependencies installed. Sure, the SM build scripts today ensure that unit tests and even pylint are run in the mock environment on each build, but this is much too costly for everyday use, for example when working on a specific failed test. Further more, allowing users to use pip makes it easy to test with different versions of dependencies and checker tools (in separate python virtual environments), which in turn allows to further improve the project quality. |
4737d65
to
f310c6d
Compare
Fine requirements file reinstated but we will not be maintaining it or keeping it updated (not least because we have no environment in which we could test that it is valid and/or useful) so it will most likely become stale quite quickly. |
Keeping it used by github actions would likely be the best option, that would ensure the info in there is still tested - and would avoid getting it duplicated in 2 places. |
f310c6d
to
2702b9e
Compare
2702b9e
to
ff0bb90
Compare
Signed-off-by: Mark Syms <mark.syms@citrix.com>
ff0bb90
to
e60fee3
Compare
Signed-off-by: Mark Syms <mark.syms@citrix.com>
e60fee3
to
621beff
Compare
I'm surprised when running pylint locally (fresh venv on CentOS7, populated with same commands as github actions):
Any idea why those errors don't appear in the CI ? |
Unfortunately not, if you do get to the bottom of please send an update PR to rectify the issues. |
Actually, the Although actually making this change makes the unit tests fail through a lack of coverage. |
Yes, that's why my question was why it indeed works on the CI, and I'm still in the dark there. |
I'm currently running some tests on this to check it's not regressed anything