From d9830e39524458fda5461edf69d3a1b98cfd4e5c Mon Sep 17 00:00:00 2001 From: David Zbarsky Date: Thu, 19 Mar 2026 16:13:54 -0400 Subject: [PATCH] Random bot fixes --- examples/mysql/BUILD.bazel | 2 ++ examples/redis/BUILD.redis | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/examples/mysql/BUILD.bazel b/examples/mysql/BUILD.bazel index 7f18412..f363159 100644 --- a/examples/mysql/BUILD.bazel +++ b/examples/mysql/BUILD.bazel @@ -67,6 +67,8 @@ itest_service( "127.0.0.1", "--port", "$${PORT}", + "--socket", + "$${SOCKET_DIR}/mysql.sock", ], autoassign_port = True, exe = ":with_migrations", diff --git a/examples/redis/BUILD.redis b/examples/redis/BUILD.redis index 6a731fd..98e1c22 100644 --- a/examples/redis/BUILD.redis +++ b/examples/redis/BUILD.redis @@ -1,5 +1,12 @@ load("@rules_shell//shell:sh_binary.bzl", "sh_binary") +REDIS_COPTS = [ + # Redis intentionally performs unaligned 64-bit loads in siphash.c. + # The Zig toolchain enables alignment UB traps in fastbuild, which causes + # the server to crash on arm64 before it becomes healthy. + "-fno-sanitize=alignment", +] + cc_library( name = "linenoise", srcs = glob([ @@ -64,6 +71,7 @@ cc_library( "src/redis-cli.c", ], ) + ["release.h"], + copts = REDIS_COPTS, textual_hdrs = select({ "@platforms//os:linux": ["src/ae_epoll.c"], "@platforms//os:osx": ["src/ae_kqueue.c", "src/ae_select.c"],