-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
test failure #273
Comments
Hmm, how exactly are you building those? Can you try a standard The The Similarly, |
I'm building them as in here void-linux/void-packages@5d82020 with
and
Notice that the The test fails in the same way if I use make and make check:
and also here I see the objdump warnings (if i skip tests). |
As for incus-agent, |
if instead i use
but then objtool does not complain, and i get a static executable |
the test failure is still there though. |
Pretty sure you don't want |
What's the output of |
go version go1.21.4 linux/amd64 |
what do you suggest then, besides /cmd/{incus,fuidshift} ? |
@dkwo the current Void LXD package ships these binaries:
Seems like the matching commands are:
We also probably want: cmd/lxd-to-incus Edit: Not sure if we can just use |
Thanks. The building part now looks better:
I'm still testing with
Is this the wrong way? the test failure happens during go test. |
You probably don't want to run the
Can you show the full output you're getting? It could be that it's a somewhat unrelated piece of code like |
Got it. The build indeed is inside a chroot. I attach the full log. incus.log |
Right, so it's the tests in |
I tracked it down, it's because you're missing the On most systems, that should be located at You likely are just missing some kind of dependency to bring that in in your case. Alternatively, you can skip that particular test with:
|
Thanks a lot! If I skip that test, it passes all checks.
but even if I add lxc to checkdepends, the test still fails. Let's not worry about that though. |
@stgraber I now have a working PR for incus on void linux at void-linux/void-packages#47573 All tests pass, except for TestConvertNetworkConfig (even with lxc in checkdepends, which contains the
is this worth investigating? One last question: since void folks seem to prefer to keep around lxd for a while, I can make it conflict with incus. However, both require raft. Current raft is at 0.16 in void and lxd at 5.9, so my question: What is the minimal raft version required to build incus and cowsql? My pr packages 0.19.1 from the forked repo, but it seems arch linux can make it work with 0.18 from the old repo (they have a more recent lxd though). |
Nah, I wouldn't bother. It's a pretty finicky test which validates the behavior of
I would try to avoid having Incus and LXD conflict with each other as you need both of them installed at the same time to transition the data with cowsql/raft is made to remain compatible with LXD's own use of raft, so you should be able to update the Linux distribution as a whole to use cowsql/raft as the source for the raft package and then have both cowsql and dqlite use that (which are then used for both Incus and LXD). |
btw, a bunch of |
I've never seen those warnings here, but so long as the resulting binary is indeed static, it "should" be fine. You'd likely know pretty quickly if something is wrong by launching a few VMs and testing the incus-agent that way. |
Many thanks.
as well as (possibly due to our outdated binutils 2.39)
when building. While if i use
and the warnings I mentioned during build time:
Maybe my best option is 2nd one? |
Yeah, I guess so, we definitely don't want anything dynamic in there since it needs to run in an unknown environment (the VM). |
Got it. I think in my case I have to be careful that building everything with |
Trying to build and package incus for void linux void-linux/void-packages#47573 , I noticed the warnings
as well as encountered a test failure (after many passing tests)
Could you help debug this?
The text was updated successfully, but these errors were encountered: