llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

libc.src/sys/socket/linux/libc.test.src.sys.socket.linux.sockatmark_test failing on `release/23.x` branch

Open delcypher opened this issue 3 months ago • 5 comments

While trying to test https://github.com/llvm/llvm-project/pull/217720 I hit a test failure that appears unrelated.

https://github.com/llvm/llvm-project/actions/runs/32403041612/job/96535529431?pr=217720

libc.src/sys/socket/linux/libc.test.src.sys.socket.linux.sockatmark_test

[32m[==========] [0mRunning 3 tests from 1 test suite.
[32m[ RUN      ] [0mLlvmLibcSockatmarkTest.SocketpairReturnsFalse
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/test/src/sys/socket/linux/sockatmark_test.cpp:37: FAILURE
Failed to match LIBC_NAMESPACE::sockatmark(sockpair[0]) against Succeeds(0).
Expected return value to be equal to 0 but got -1.
Expected errno to be equal to 0(0) but got ENOTSUP(95).
[31m[  FAILED  ] [0mLlvmLibcSockatmarkTest.SocketpairReturnsFalse
[32m[ RUN      ] [0mLlvmLibcSockatmarkTest.InvalidFdFails
[32m[       OK ] [0mLlvmLibcSockatmarkTest.InvalidFdFails (0 ns)
[32m[ RUN      ] [0mLlvmLibcSockatmarkTest.NonSocketFdFails
[32m[       OK ] [0mLlvmLibcSockatmarkTest.NonSocketFdFails (7 us)
Ran 3 tests.  PASS: 2  FAIL: 1

delcypher avatar Aug 20 '26 22:08 delcypher

@llvm/issue-subscribers-infrastructure

Author: Dan Liew (delcypher)

While trying to test https://github.com/llvm/llvm-project/pull/217720 I hit a test failure that appears unrelated.

https://github.com/llvm/llvm-project/actions/runs/32403041612/job/96535529431?pr=217720

libc.src/sys/socket/linux/libc.test.src.sys.socket.linux.sockatmark_test

[32m[==========] [0mRunning 3 tests from 1 test suite.
[32m[ RUN      ] [0mLlvmLibcSockatmarkTest.SocketpairReturnsFalse
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/test/src/sys/socket/linux/sockatmark_test.cpp:37: FAILURE
Failed to match LIBC_NAMESPACE::sockatmark(sockpair[0]) against Succeeds(0).
Expected return value to be equal to 0 but got -1.
Expected errno to be equal to 0(0) but got ENOTSUP(95).
[31m[  FAILED  ] [0mLlvmLibcSockatmarkTest.SocketpairReturnsFalse
[32m[ RUN      ] [0mLlvmLibcSockatmarkTest.InvalidFdFails
[32m[       OK ] [0mLlvmLibcSockatmarkTest.InvalidFdFails (0 ns)
[32m[ RUN      ] [0mLlvmLibcSockatmarkTest.NonSocketFdFails
[32m[       OK ] [0mLlvmLibcSockatmarkTest.NonSocketFdFails (7 us)
Ran 3 tests.  PASS: 2  FAIL: 1

@llvm/issue-subscribers-libc

Author: Dan Liew (delcypher)

While trying to test https://github.com/llvm/llvm-project/pull/217720 I hit a test failure that appears unrelated.

https://github.com/llvm/llvm-project/actions/runs/32403041612/job/96535529431?pr=217720

libc.src/sys/socket/linux/libc.test.src.sys.socket.linux.sockatmark_test

[32m[==========] [0mRunning 3 tests from 1 test suite.
[32m[ RUN      ] [0mLlvmLibcSockatmarkTest.SocketpairReturnsFalse
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/test/src/sys/socket/linux/sockatmark_test.cpp:37: FAILURE
Failed to match LIBC_NAMESPACE::sockatmark(sockpair[0]) against Succeeds(0).
Expected return value to be equal to 0 but got -1.
Expected errno to be equal to 0(0) but got ENOTSUP(95).
[31m[  FAILED  ] [0mLlvmLibcSockatmarkTest.SocketpairReturnsFalse
[32m[ RUN      ] [0mLlvmLibcSockatmarkTest.InvalidFdFails
[32m[       OK ] [0mLlvmLibcSockatmarkTest.InvalidFdFails (0 ns)
[32m[ RUN      ] [0mLlvmLibcSockatmarkTest.NonSocketFdFails
[32m[       OK ] [0mLlvmLibcSockatmarkTest.NonSocketFdFails (7 us)
Ran 3 tests.  PASS: 2  FAIL: 1

Thanks to @conrade-ctc for pointing out that the fix was made to main in c84d20b18026fc230a7957c8faf3cf3a40d9cb55, I'm going to back-port the fix which should hopefully get this test passing on the release branch.

dyung avatar Aug 25 '26 05:08 dyung

So I tried to do the cherry-pick automatically and it failed. Trying to do it manually I realized that I would at a minimum also need to pull in c5837b469c6d6f35eb0822cd9ebd7c2aa7e2ab75 which is a bit risky at this point, so we are going to have to live with the failure for now unfortunately unless we want to disable it in the release/23.x branch.

dyung avatar Aug 25 '26 05:08 dyung

This failure also occurred while testing backport PR #218584:

https://github.com/llvm/llvm-project/pull/218584 https://github.com/llvm/llvm-project/actions/runs/32812226304/job/97693625790

The failure is the same sockatmark_test case returning ENOTSUP. The backport only changes Clang coroutine semantic analysis, Clang tests, and release notes, so this appears unrelated to the patch.

Lane0218 avatar Aug 25 '26 08:08 Lane0218