-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
WIP: fsrepo: fix musl detection for migrations #3698
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
Conversation
|
||
test_expect_success "startup fake dists server" ' | ||
pretend_server > dist_serv_out & | ||
echo $! > netcat_pid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should have a setp with kill $(cat netcat_pid) || true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks! forgot that
2b627e1
to
faa1d75
Compare
Thanks @whyrusleeping <3 LGTM with kill suggested by kuba |
The ldd command used for detection doesn't seem to have a --version flag on Alpine Linux. It would print the expected output, but instead of stdout, it would print it on stderr. The musl detection code would only scan stdout for mentions of "musl", and would thus *not* download the musl version of the fs-repo-migrations executable. This manifested in the well-known "fs-repo-migrations: not found" error, which you get when executing something that was linked against a different libc than the one present on the system. License: MIT Signed-off-by: Lars Gierth <[email protected]>
License: MIT Signed-off-by: Jeromy <[email protected]>
faa1d75
to
c817f09
Compare
Rebsed to master. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Note: the tests here are totally incomplete, I keep getting stuck :/
If someone else wants to take a look today, that'd be super helpful. The migrations code itself should be good.
The ldd command used for detection doesn't seem to have a
--version flag on Alpine Linux. It would print the expected
output, but instead of stdout, it would print it on stderr.
The musl detection code would only scan stdout for mentions
of "musl", and would thus not download the musl version
of the fs-repo-migrations executable.
This manifested in the well-known "fs-repo-migrations: not found"
error, which you get when executing something that was linked
against a different libc than the one present on the system.
License: MIT
Signed-off-by: Lars Gierth [email protected]