Skip to content
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

Selftest failing on Alpine Linux #73

Closed
ganwell opened this issue Mar 23, 2017 · 2 comments
Closed

Selftest failing on Alpine Linux #73

ganwell opened this issue Mar 23, 2017 · 2 comments
Labels
feedback Information has been requested; may be closed in 30 days if not provided. portability unison fails to compile or work on some particular system

Comments

@ganwell
Copy link

ganwell commented Mar 23, 2017

I try to get unison into alpine linux community repos, but I need to selftest to work.

  1. I use unison since a more than 6 month on alpine -> no problems
  2. When I google it seems that the selftest also fails on other lightwight distros
    -> Maybe due to busybox or musl?
Contacting server...
Running internal tests...
fastercheckUNSAFE 1...
Test fastercheckUNSAFE 1 / 2b:
Expected R2 =
  Dir [("x", File "newcontents")]
but found
  Dir [("x", File "bar")]

Fatal error: Self-test fastercheckUNSAFE 1 / 2b failed!

I first thought it fails because fastcheckUNSAFE is - well - UNSAFE. I then patched it away, but next test fails.

$> unison -selftest
Contacting server...
Running internal tests...
backups 1 (local)...
backups 2...
backups 2a...
Test backups 2a / 4:
Expected R2 =
  Dir [("foo", File "2"); (".bak.0.foo", File "1")]
but found
  Dir [("foo", File "2")]

Fatal error: Self-test backups 2a / 4 failed!

Here is the version I am testing:

https://github.com/ganwell/aports/tree/bug_report/testing/unison

BTW I don't have both marshalling patches active at the same time. I just wanted to show, that I test both. I guess marshalling.patch is the correct one, right?

Unison is a important helper form me since many years. I can help you testing things on alpine, giving feedback or I can even give you a test environment. But I can't learn yet another language :-)

@bcpierce00
Copy link
Owner

It looks like the filesystem is behaving differently on this distro. Next step would be to try to look at what Unison is doing in these tests and reproduce its behavior manually (by directly manipulating the same files). OCaml knowledge needed should be minimal, fortunately.

@bcpierce00 bcpierce00 added help wanted portability unison fails to compile or work on some particular system labels Nov 26, 2017
@gdt gdt added feedback Information has been requested; may be closed in 30 days if not provided. and removed help wanted labels Sep 14, 2020
@gdt
Copy link
Collaborator

gdt commented Oct 14, 2020

Please file a new bug if this is still an issue with the current code.

@gdt gdt closed this as completed Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback Information has been requested; may be closed in 30 days if not provided. portability unison fails to compile or work on some particular system
Projects
None yet
Development

No branches or pull requests

3 participants