Skip to content

ci: Add OpenIndiana job - #393

Draft
hebasto wants to merge 1 commit into
bitcoin-core:masterfrom
hebasto:261106-ci-illumos
Draft

hebasto wants to merge 1 commit into
bitcoin-core:masterfrom
hebasto:261106-ci-illumos

Conversation

@hebasto

@hebasto hebasto commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

The new CI job covers code paths for illumos-based systems.

Draft for now, as the "disconnects before being accepted" test fails, which is a reincarnation of #319.

@DrahtBot

DrahtBot commented Nov 6, 2026 •

Copy link
Copy Markdown

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline and AI policy for information on the review process.
A summary of reviews will appear here.

Conflicts

No conflicts as of last run.

@nullfail

nullfail commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Regarding the failing test (setsocketopt failure), you might want to skip the accept_error_seen assertion as we're currently doing for macOS

diff --git a/test/mp/test/listen_tests.cpp b/test/mp/test/listen_tests.cpp
index 41fb05a..d8d4984 100644
--- a/test/mp/test/listen_tests.cpp
+++ b/test/mp/test/listen_tests.cpp
@@ -253,8 +253,8 @@ KJ_TEST("ListenConnections handles a client that disconnects before being accept
         std::this_thread::sleep_for(std::chrono::milliseconds(1));
     }
 
-#ifndef __APPLE__
-    // No error is expected on platforms other than macOS.
+#if !defined(__APPLE__) && !defined(__sun)
+    // No error is expected on platforms other than macOS and illumos.
     KJ_REQUIRE(!accept_error_seen());
 #endif
     KJ_EXPECT(server.DisconnectedCount() == (accept_error_seen() ? 0 : 1));

@hebasto

hebasto commented Nov 6, 2026 •

Copy link
Copy Markdown
Member Author

Regarding the failing test (setsocketopt failure), you might want to skip the accept_error_seen assertion as we're currently doing for macOS

diff --git a/test/mp/test/listen_tests.cpp b/test/mp/test/listen_tests.cpp
index 41fb05a..d8d4984 100644
--- a/test/mp/test/listen_tests.cpp
+++ b/test/mp/test/listen_tests.cpp
@@ -253,8 +253,8 @@ KJ_TEST("ListenConnections handles a client that disconnects before being accept
         std::this_thread::sleep_for(std::chrono::milliseconds(1));
     }
 
-#ifndef __APPLE__
-    // No error is expected on platforms other than macOS.
+#if !defined(__APPLE__) && !defined(__sun)
+    // No error is expected on platforms other than macOS and illumos.
     KJ_REQUIRE(!accept_error_seen());
 #endif
     KJ_EXPECT(server.DisconnectedCount() == (accept_error_seen() ? 0 : 1));

Yeah. I've already applied the patch in https://github.com/hebasto/bitcoin-core-nightly.

@nullfail

nullfail commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Yeah. I've already applied the patch in https://github.com/hebasto/bitcoin-core-nightly.

Yeah, I noticed it, but that patch is for Cap'n Proto. What I suggested is a diff for test code in this repo, as is done for the macOS job.

@hebasto

hebasto commented Nov 16, 2026

Copy link
Copy Markdown
Member Author

Rebased on #396 as requested by @ryanofsky here.

ryanofsky added a commit that referenced this pull request Nov 16, 2026
…tion macro

fb0e194 build, util: Add `HAVE_PTHREAD_SETNAME_NP_2ARG` configuration macro (Hennadii Stepanov)
7690c22 util: Document platforms in `SetOsThreadName()` branches (Hennadii Stepanov)

Pull request description:

  On platforms that provide only the 2-argument [`pthread_setname_np()`](https://illumos.org/man/3C/pthread_setname_np) function, such as illumos, none of the branches in `SetOsThreadName()` matches, so threads are left unnamed. As `pthread_getname_np()` is available there, the thread name tests [fail](#393).

  Introduce the `HAVE_PTHREAD_SETNAME_NP_2ARG` configuration macro, which represents the availability of that function, and use it in `SetOsThreadName()`.

  Platforms already handled by another branch are not affected.

  Additionally, the first commit documents the platforms for every branch in `SetOsThreadName()`, as [suggested](#324 (comment)) by ryanofsky in #324.

ACKs for top commit:
  ryanofsky:
    Code review ACK fb0e194. This fixes the "has OS thread name" tests on illumos, confirmed by the [OpenIndiana job](https://github.com/bitcoin-core/libmultiprocess/actions/runs/43943281672/job/133566143311) in #393, which is now based on this PR and passes all three tests (its remaining failure is the unrelated listen test).

Tree-SHA512: 1630db4de214d4f5180c81e27adaa1b6ef553d1f4d8a9956e137b8fc599452968763f8964a1d27ecea2d38c3677efb23d071eb6d7c60c2a00c0184d79973320f
This covers code paths for illumos-based systems.
@hebasto

hebasto commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Rebased to resolve a conflict with the merged #373.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants