python3Packages.python-arango: init at 7.5.1#193783
python3Packages.python-arango: init at 7.5.1#193783SuperSandro2000 merged 1 commit intoNixOS:masterfrom jsoo1:jsoo1/upstream-python-arango
Conversation
|
The library has tests on the main repository. It would be recommended to use |
|
I'm waiting to merge #194670 before this goes in. Plus I'd like to understand the test failures more before I am confident this library is ok. |
|
@WolfangAukang I was able to reenable a bunch of tests and update the commentary. Some of these test failures look like things that were missed upstream, some are due to the sandbox. I am much more confident this is ready. Plus #194670 was merged. |
|
Result of 2 packages failed to build:
|
This suggests to me this ran into the portability issues I mentioned here: arangodb/arangodb#17454 Can you do me a favor and send the output of please? |
Not sure if this is the expected response. |
Thank you! I wanted to check what model cpu you have. (arangodb is configured to build for haswell by default - which is model Note: on haswell the other two packages that failed for you do succeed. Edit: Since this is a client library, the architecture issue probably does not matter (the python driver would talk over the network to arangodb). It would be nice to disable the tests conditionally because of the lack of arangodb portability. |
|
That makes sense. Like you mentioned, this is the client and the error was related to the database. I haven't had a case where the CPU model needs to be considered, so I can't provide more input unfortunately. |
Ok. In that case I'll disable tests but keep the test code around for the next time I need to upgrade. |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/1436 |
SuperSandro2000
left a comment
There was a problem hiding this comment.
Your attribute ordering is a bit off. It should be after src like:
- src
- propagatedBuildInputs
- checkInputs
- preCheck
- pytestFlagsArray
- pythonImportsCheck
- meta
There was a problem hiding this comment.
| # | |
| # nonetheless, the client library should remain in nixpkgs - since | |
| # the client library will talk to arangodb across the network and | |
| # architecture issues will be irrelevant. |
There was a problem hiding this comment.
Then we should limit the package to those platforms or only the tests instead of disabling them completely.
There was a problem hiding this comment.
I would like to do that, but I don't know how. How would you go about it?
There was a problem hiding this comment.
@SuperSandro2000 Just for some background, the architectures that arango is sensitive to are not (i.e.) x86 vs aarch, it is haswell vs sandy-bridge.
There was a problem hiding this comment.
Thats a problem because we have no system to detect this that does not require a mass rebuild. Can we force an older architecture like westmere?
|
@SuperSandro2000 I reordered/renamed the attrs but I don't know how to conditionally disable the checks. |
|
Ideally we want to force arango onto an older architecture like westmere. Also please squash the review commits into the init one(s). |
Squashed.
Right now it defaults to haswell. I think this client library shouldn't matter though, since it is going to be communicating with arangod over the network. Do you think it would be enough to add one commit removing the tests so they could be resurrected in a reverting commit if the arango architecture can be made portable? Edit: I ask because it was a PITA to figure out the reasons tests were failing, arangod invocation for preCheck, etc. |
|
We could make an option that disabled those tests. There are some other packages that do that already. Should have remembered that earlier. |
Could it be overridden in |
|
For only tests that can be done. |
|
Ah, sorry. I thought you had something else in mind other than disabling the tests by default. The only difference in your last commit is that we are now always using an overlay. |
Ok right. Sorry I don't understand what you have in mind, then. Do you have an example maybe? |
SuperSandro2000
left a comment
There was a problem hiding this comment.
we used enough time on this. Must be good enough for now without tests
|
Ok. Thank you so much for your time! |
|
@ofborg build python310Packages.python-arango |
Description of changes
Introduce the python ArangoDB driver library.
Things done
sandbox)sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes