From c31884bee433b3f421bb34e51397fa0991413348 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 31 Jan 2026 12:07:43 +0900 Subject: [PATCH] internal/rosa: disable broken tests These fail when running as users with supplementary groups, since they are unmapped in the container. This was not the case in the development container where all groups were dropped, so the failure was missed. Signed-off-by: Ophestra --- internal/rosa/gnu.go | 3 +++ internal/rosa/go.go | 15 +++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/internal/rosa/gnu.go b/internal/rosa/gnu.go index 5a0265d..ee9ef50 100644 --- a/internal/rosa/gnu.go +++ b/internal/rosa/gnu.go @@ -203,6 +203,9 @@ test_disable() { chmod +w "$2" && echo "$1" > "$2"; } test_disable '#!/bin/sh' gnulib-tests/test-c32ispunct.sh test_disable '#!/bin/sh' tests/split/line-bytes.sh test_disable '#!/bin/sh' tests/dd/no-allocate.sh +test_disable 'int main(){return 0;}' gnulib-tests/test-chown.c +test_disable 'int main(){return 0;}' gnulib-tests/test-fchownat.c +test_disable 'int main(){return 0;}' gnulib-tests/test-lchown.c `, Flag: TEarly, }, diff --git a/internal/rosa/go.go b/internal/rosa/go.go index 4cd2a07..76f84f8 100644 --- a/internal/rosa/go.go +++ b/internal/rosa/go.go @@ -71,7 +71,11 @@ func (t Toolchain) newGoLatest() pkg.Artifact { "9_e0aFHsIkVxWVGsp9T2RvvjOc3p4n9o9S8tkNe9Cvgzk_zI2FhRQB7ioQkeAAro", []string{"CGO_ENABLED=0"}, ` rm \ - crypto/tls/handshake_client_test.go + crypto/tls/handshake_client_test.go \ + os/os_unix_test.go +echo \ + 'type syscallDescriptor = int' >> \ + os/rawconn_test.go `, t.newGoBootstrap(), ) @@ -85,7 +89,11 @@ sed -i \ rm \ crypto/tls/handshake_client_test.go \ - crypto/tls/handshake_server_test.go + crypto/tls/handshake_server_test.go \ + os/os_unix_test.go +echo \ + 'type syscallDescriptor = int' >> \ + os/rawconn_test.go `, go119, ) @@ -106,6 +114,9 @@ sed -i \ sed -i \ 's,/lib/ld-musl-`+linuxArch()+`.so.1,/system/bin/linker,' \ cmd/link/internal/`+runtime.GOARCH+`/obj.go + +rm \ + os/root_unix_test.go `, go123, )