ci: add native freeBSD ci job #36147

pull willcl-ark wants to merge 5 commits into bitcoin:master from willcl-ark:bsd-ci changing 7 files +134 −62
  1. willcl-ark commented at 11:07 AM on September 2, 2026: member

    This replaces the FreeBSD cross-compilation job with a native build and test job inside a FreeBSD VM. NetBSD and OpenBSD retain their existing cross-compilation jobs.

    We currently cross-compile BSD binaries without testing them in this repository. Running tests before merge should help catch platform-specific regressions that would otherwise first appear in nightly builds. This starts with FreeBSD because it has been the most reliable BSD platform in the nightly jobs.

    As we don't have native FreeBSD runners, the job uses vmactions/freebsd-vm, which is also used by the nightly builds. It reuses the existing CI scripts, depends build, and cache actions where possible.

    The VM image is cached after its prepare step installs dependencies. The job also restores and saves the usual build caches. Initial testing on free GitHub Actions runners took approximately 60 minutes without caches and 20–30 minutes with caches populated. Performance on Warp runners remains untested.

    The VM uses the runner's available CPU count and 75% of its RAM, leaving the remaining memory for the host and VM overhead. There is some overhead after testing while rsync copies cache directories back out of the VM.

    The patchset also suppresses lsof warnings on FreeBSD that would otherwise interfere with functional tests.

    The job requires enabling one additional action:

    vmactions/freebsd-vm@v1
    
  2. DrahtBot added the label Tests on Sep 2, 2026
  3. DrahtBot commented at 11:07 AM on September 2, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--006a51241073e994b41acfe9ec718e94-->

    External sites

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process.

    Type Reviewers
    Concept ACK pinheadmz, vasild, winterrdog
    Approach ACK hebasto

    If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #36872 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36872.svg"></sub> (ci: Share qa-assets across GitHub Actions jobs by jaromil)
    • #36042 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36042.svg"></sub> (build: Bump g++ minimum supported version to 13 by maflcko)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  4. maflcko commented at 12:11 PM on September 2, 2026: member

    We currently cross compile various BSD binaries but do not test them. This leads to regressions on master which are noticed in nightly builds and fixed here, recent examples include #36078 and #36145.

    Build and test the binaries in this repo as part of our CI instead to avoid this regression/fix flip-flopping.

    I think this requires a stronger motivation, to explain that this will actually reduce overall workload.

    Those vm-in-a-vm tests are extremely brittle (https://github.com/hebasto/bitcoin-core-nightly/issues/230#issuecomment-4311704411, https://github.com/hebasto/bitcoin-core-nightly/issues/81, ... etc)

    So if those tasks are added here, we need to understand that this is the "hot path" (for all pull requests) and before this is merged, there needs to be several people who monitor those intermittent failures on those platforms and then categorize them into "intermittent", "unrelated", etc.

    If this isn't done, then devs will just ignore all CI results because the false-positive rate is too high and just re-run it until it is green. This may then degrade non-*BSD code at a slight benefit of avoid some trivial test-only BSD fixups.

    Maybe I am wrong, but I wanted to raise the point to not miss the large picture here.

  5. hebasto commented at 12:24 PM on September 2, 2026: member

    We currently cross compile various BSD binaries but do not test them. This leads to regressions on master which are noticed in nightly builds and fixed here, recent examples include #36078 and #36145. Build and test the binaries in this repo as part of our CI instead to avoid this regression/fix flip-flopping.

    I think this requires a stronger motivation, to explain that this will actually reduce overall workload.

    Those vm-in-a-vm tests are extremely brittle (hebasto/bitcoin-core-nightly#230 (comment), hebasto/bitcoin-core-nightly#81, ... etc)

    So if those tasks are added here, we need to understand that this is the "hot path" (for all pull requests) and before this is merged, there needs to be several people who monitor those intermittent failures on those platforms and then categorize them into "intermittent", "unrelated", etc.

    If this isn't done, then devs will just ignore all CI results because the false-positive rate is too high and just re-run it until it is green. This may then degrade non-*BSD code at a slight benefit of avoid some trivial test-only BSD fixups.

    Maybe I am wrong, but I wanted to raise the point to not miss the large picture here.

    We might begin with FreeBSD only, which has shown high stability over a long period.

  6. maflcko commented at 12:38 PM on September 2, 2026: member

    We might begin with FreeBSD only, which showed a high stability over a long period.

    Your link shows an unrelated failure for the 35th build (second page). Not sure if this is accurate, but if every 35th build fails and Bitcoin Core has 35 pushes per day, then every day there will be one additional unrelated CI failure.

    Maybe there can be a one-month trial period and then a summary is presented with all CI failures and each of them annotated with "intermittent" (y/n), "unrelated" (y/n)?

    Also, even if a failure is related, it can still be intermittent, so merging this pull request does not guarantee to prevent fixups such as #36145, because the failure happens intermittently.

  7. willcl-ark commented at 2:18 PM on September 2, 2026: member

    I did not understand these VMs to be flaky. I didn't observe any flakiness in testing, but probably only ran about 15 runs (x3 jobs), so perhaps I'm due a random flake-failure soon 😋

    The actions are used by a few other high-profile projects like tokio and sccache as well as:

    • tukaani-project/xz using OpenBSD (workflow)
    • hashcat/hashcat using OpenBSD
    • acmesh-official/acme.sh using OpenBSD
    • aws/aws-lc-rs using FreeBSD (workflow)
    • mozilla/sccache using FreeBSD
    • aristocratos/btop using OpenBSD
    • stalwartlabs/stalwart using FreeBSD
    • deskflow/deskflow using FreeBSD
    • FrameworkComputer/framework-system using FreeBSD

    But I'd imagine our functional tests put significantly more strain on the vm than any of those projects are doing.

    I asked codex to take a look at the last months-worth of runs on hebasto's nightly repo:

    <details> <summary>Details</summary>

    hebasto/bitcoin-core-nightly from 2026-08-02 through 2026-09-02. Pull-request runs were excluded. The nightly sample consists of runs with the workflow_run event. Manual workflow_dispatch failures are listed separately where they add useful context.

    Summary

    Workflow Nightly runs Successful Failed Cancelled
    FreeBSD 33 33 0 0
    NetBSD 33 28 4 1
    OpenBSD 33 10 19 4

    The logs for all 29 failed runs were downloaded and inspected.

    FreeBSD looks stable in this sample. NetBSD has a small number of nightly failures, mostly caused by platform resource limits or platform-sensitive tests. OpenBSD has a high failure rate, but most failures are repeatable test or platform problems rather than failures to boot the VM.

    NetBSD

    Nightly failures

    • Run 906, 2026-08-25: feature_block.py timed out waiting for the expected peer disconnect. Other jobs showed the NetBSD file-descriptor limit.
    • Run 899, 2026-08-20: feature_block.py timed out waiting for a peer disconnect after the node had rejected the block.
    • Run 892, 2026-08-14: wallet_listtransactions.py failed when generateblock returned bad-txns-inputs-missingorspent.
    • Run 888, 2026-08-10: wallet_listtransactions.py failed with the same TestBlockValidity error.

    The feature_block.py failures look like delayed networking or scheduling in the guest: the node log records the rejection and disconnect, while the test does not observe the disconnect before its timeout. The wallet failures are functional test failures and should not be counted as generic VM boot failures.

    Manual failures

    The following manual runs on 2026-08-25 failed during test setup because the guest did not have enough file descriptors:

    The common messages were:

    Not enough file descriptors available. 256 available, 290 required.
    Warning: Reducing -maxconnections ... because of system limitations.
    

    These are reproducible NetBSD configuration or test-environment failures, not random VM failures.

    There was one additional manual failure:

    • Run 895, 2026-08-16: the VM boot probe timed out and QEMU was restarted. The run also contained feature_anchors.py and interface_http.py timing failures.

    This is the clearest NetBSD example of actual VM or infrastructure flakiness.

    OpenBSD

    Repeated interface_gui.py failures

    interface_gui.py failed in runs 738, 739, 740, 743, 744, 745, 746, 747, 748, 749, and 751.

    The recurring error was:

    GLib-CRITICAL: g_main_context_pop_thread_default:
    assertion 'stack != NULL' failed
    

    This is highly repeatable across OpenBSD 7.8 and 7.9 GUI jobs. It looks like an OpenBSD/Qt shutdown or test-environment problem, not QEMU randomly failing.

    Repeated P2P test timeouts

    p2p_private_broadcast.py or p2p_private_broadcast_retry_v1.py failed in runs 738, 754, 757, 758, 761, 765, 766, 772, and 779.

    The test waited exactly 480 seconds for all addresses to advertise NODE_P2P_V2:

    Predicate ... not true after 480.0 seconds
    

    The node remained responsive and answered getnodeaddresses RPC requests, but the expected service flags never appeared. Because the same test fails in the same way across many consecutive OpenBSD runs, this looks like an OpenBSD/test interaction or severe guest-performance problem rather than a generic boot failure.

    Package and VM infrastructure failures

    • Run 754: OpenBSD package installation failed with Premature end of archive while installing nghttp2.
    • Run 761, 765, and 766: package downloads included 404s or connection timeouts.

    These failures are package-mirror or network infrastructure failures. They are separate from the repeated functional test failures.

    Conclusion

    For this one-month sample:

    • FreeBSD: no observed nightly failures.
    • NetBSD: some real guest or scheduling sensitivity, but most failures are resource-limit or functional-test issues. The one clear VM boot failure was on 2026-08-16.
    • OpenBSD: 19 failed nightly runs out of 33. The failure count is dominated by repeatable interface_gui.py and p2p_private_broadcast* failures, with a few package-mirror failures. It would be misleading to attribute all 19 to vmactions or QEMU flakiness.

    The next useful experiment would be to fix or disable the known OpenBSD GUI and P2P test incompatibilities, raise the NetBSD file-descriptor limit, and then repeat the same nightly comparison. That would leave a much cleaner measurement of VM-level reliability.

    </details>

    I have not observed the interface_gui.py failures that hebasto's repo sees on OpenBSD. I did see a failure on p2p_private_broadcast_retry_v1.py once or twice and did have that test disabled on *BSD in one iteration; if that test in particular is flaky it could be disabled on these jobs.

    Most of the other failures at first glance appear to be GHA/package archive 404 or other network infra failures and I wouldn't attribute them to the VMs being flaky, so I'm not 100% convinced that critique is warranted.

    That said I don't want to add known-flaky jobs and you are correct to call out they could be more work to maintain than porting over a few fixes, if they are unreliable. I suppose the only unclear bit is at what cost level do we prefer to merge buggy code and fix later, vs run more jobs on every PR and merge to prevent that happening in the first place...

    We might begin with FreeBSD only, which has shown high stability over a long period.

    Happy to start with FreeBSD only if that's preferable.

  8. maflcko commented at 2:47 PM on September 2, 2026: member

    We might begin with FreeBSD only, which has shown high stability over a long period.

    Happy to start with FreeBSD only if that's preferable.

    Sure, I am not against this pull request, but then the motivation is off, because the two motivating issues are about netbsd and openbsd, which for some reason have a lot more false positive intermittent failures?

    It still seems that the remaining fixups required for FreeBSD are less effort than maintaining the FreeBSD ci task here? (Recall that codex only looked at the last month with daily builds, but it missed the failure from 35 days ago and recall that Bitcoin Core has a higher CI volume than just one build per day, so any rare failure will amplify)

    Again, seems fine to merge this, but as long as the false positive rate is higher than the true positive rate, it doesn't seem worth it overall.

  9. DrahtBot added the label Needs rebase on Sep 3, 2026
  10. willcl-ark commented at 12:24 PM on September 3, 2026: member

    Scanning the last 90 days (where logs still exist) in hebasto's repo I really only see this one where the vm failed to boot: https://github.com/hebasto/bitcoin-core-nightly/actions/runs/29139756629/job/86510586228#step:2:188

    There are a handful of "random" functional test issues, which could be attributable to the vm-in-vm setup, but I'd recommend disabling those few tests. There are a number of legitimate functional test failures repeated over many days (e.g interface_gui.py) and few semi-legitimate-looking errors which could have been vm-flakiness.

    Including the ~legit test timeout-type failures, but excluding real test failures by my count I see 18 "flaky failures" out of 812 jobs over the 90 days, which or 2.2%.

    as long as the false positive rate is higher than the true positive rate, it doesn't seem worth it overall.

    Our CI jobs have between a 7 and 2% fail rate (assuming all current failures are true-positives), per our CI job statistics.

    So for references 2.2% as a potential false-positive rate is ~ in the same ballpark as the true-failures we see on jobs today (assuming all are true-failures). I agree a flakiness ~= to the bug-catching ability of non-flaky tests isn't great.

    If we are more happy to backport fixes from broken nightly/master builds than run CI jobs here as we are worried they'll be too flaky (which is more like a regular CI/CD process to be honest) then that works for me too.

    I'll leave this in draft for a few days in case anyone else wants to weigh in, before closing.

  11. hebasto commented at 12:41 PM on September 3, 2026: member

    Concept ACK on having at least one CI job that runs tests on a *BSD platform.

  12. maflcko commented at 9:53 AM on September 17, 2026: member

    Including the ~legit test timeout-type failures, but excluding real test failures by my count I see 18 "flaky failures" out of 812 jobs over the 90 days, which or 2.2%.

    Is this the average over all BSDs? Because I see 5 OpenBSD failures in the last 10 days alone, which is more than 10%.

    I guess we could add the FreeBSD one only, but I wonder what issues it would have caught this year. Mostly only #34331?

    I'd say we don't care about FreeBSD failures that happen on other platforms as well, so true positive rate is meant as the "marginal" (additional or exclusive) true positive rate.

    I guess it could be tried for a month or two, to see what happens in reality.

  13. maflcko commented at 4:46 PM on November 12, 2026: member

    There is still a flood of unexplained FreeBSD failures:

    I think those should be fixed first.

    Maybe this can be closed in the meantime?

  14. hebasto commented at 5:13 PM on November 12, 2026: member

    There is still a flood of unexplained FreeBSD failures:

    I think those should be fixed first.

    I hope to collect more logs when a failure happens next time.

  15. maflcko commented at 5:28 PM on November 12, 2026: member

    Sure, logging can't hurt, but I don't think it is possible to fix the OOM or OOS like System.IO.IOException: No space left on device : '/home/runner/actions-runner/cached/2.338.2/_diag/Worker_20261102-062353-utc.log'

  16. fanquake commented at 5:56 PM on November 12, 2026: member

    Isn't that kind of issue a problem with the nightly build infrastructure itself? My recollection is that a lot, if not most, of the issues from that repo have been of a similar nature (timeouts, OOM, out of space, flakiness/can't reproduce) and point to it being under-resourced/unstable, rather than some fundamental problem with these operating systems?

  17. maflcko commented at 6:00 PM on November 12, 2026: member

    Right, so if this pull is merged, we'll have to deal with a flood of meaningless false reports instead of any real issues that would happen on those systems.

  18. fanquake commented at 6:15 PM on November 12, 2026: member

    Why? We can pay for (reliable) CPU and enough disk space to be able to properly run tests; and I don't see why anything would be merged if the expectation was it'd just produce pointless noise.

    If anything, it would seem better to have the tests run properly here, than improperly in a different repo, and still have to deal with all the false reports?

  19. maflcko commented at 7:13 PM on November 12, 2026: member

    Ok, I am not sure if the better hardware will propagate into the double-nested VM (if the inner VM is set up with fixed hard-coded resources), but I guess it seems fine to try and then revert if it doesn't work.

  20. pinheadmz commented at 12:24 PM on November 13, 2026: member

    concept ACK, especially with the recent socket stuff the nightly BSD builds as well as individual reviewers are finding things. If we support BSDs I think it would be great to have CI, will review.

  21. maflcko removed the label Needs rebase on Nov 13, 2026
  22. maflcko commented at 12:39 PM on November 13, 2026: member

    Maybe there can be a temp commit on top to spawn a matrix with 100 or 200 tasks for freebsd (or whatever is added) to see if there are any nested vm crashes?

  23. vasild commented at 12:58 PM on November 13, 2026: contributor

    Concept ACK

  24. DrahtBot added the label Needs rebase on Nov 13, 2026
  25. willcl-ark force-pushed on Nov 13, 2026
  26. in .github/workflows/ci.yml:566 in 0cabdf6d70
     559 | @@ -566,6 +560,85 @@ jobs:
     560 |          with:
     561 |            provider: ${{ matrix.provider || (github.repository == 'bitcoin/bitcoin' && 'warp' || 'gha') }}
     562 |  
     563 | +  bsd:
     564 | +    name: ${{ matrix.name }}
     565 | +    runs-on: ${{ github.repository == 'bitcoin/bitcoin' && 'warp-ubuntu-latest-x64-8x' || 'ubuntu-latest' }}
     566 | +    if: ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }}
    


    maflcko commented at 4:58 PM on November 13, 2026:

    Maybe time to extract this as a named template?

    untested diff:

    diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
    index a1f79e0..8e31710 100644
    --- a/.github/workflows/ci.yml
    +++ b/.github/workflows/ci.yml
    @@ -116,3 +116,3 @@ jobs:
         # in Github repository settings.
    -    if: ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }}
    +    if: &PULL_FILTER ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }}
     
    @@ -197,3 +197,3 @@ jobs:
     
    -    if: ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }}
    +    if: *PULL_FILTER
     
    @@ -307,3 +307,3 @@ jobs:
         runs-on: ${{ github.repository == 'bitcoin/bitcoin' && 'warp-ubuntu-latest-x64-4x' || 'ubuntu-latest' }}
    -    if: ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }}
    +    if: *PULL_FILTER
     
    @@ -402,3 +402,3 @@ jobs:
         runs-on: ${{ github.repository == 'bitcoin/bitcoin' && matrix.warp-runner || matrix.fallback-runner }}
    -    if: ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }}
    +    if: *PULL_FILTER
         timeout-minutes: ${{ matrix.timeout-minutes }}
    @@ -571,3 +571,3 @@ jobs:
         runs-on: ${{ github.repository == 'bitcoin/bitcoin' && 'warp-ubuntu-latest-x64-2x' || 'ubuntu-latest' }}
    -    if: ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }}
    +    if: *PULL_FILTER
         timeout-minutes: 20
    

    willcl-ark commented at 5:08 PM on November 13, 2026:

    yeah nice, can do that on the next push :)


    willcl-ark commented at 8:46 AM on November 16, 2026:

    done

  27. DrahtBot removed the label Needs rebase on Nov 13, 2026
  28. willcl-ark force-pushed on Nov 16, 2026
  29. willcl-ark marked this as ready for review on Nov 16, 2026
  30. willcl-ark commented at 8:46 AM on November 16, 2026: member

    I mark this as ready for review now, but it will need the vmactions/freebsd-vm@v1 action approved to be able to run on our CI here.

  31. in test/functional/test_framework/netutil.py:115 in d60f8c7885 outdated
     111 | @@ -112,7 +112,7 @@ def get_bind_addrs(pid):
     112 |          import subprocess
     113 |          output = subprocess.check_output(["lsof",
     114 |              *(["-Di"] if sys.platform.startswith(("freebsd", "netbsd", "sunos5")) else []), # Ignore device cache to avoid stderr warnings.
     115 | -            *(["-w"] if sys.platform.startswith("netbsd") else []), # Ignore point release mismatch warnings.
     116 | +            *(["-w"] if sys.platform.startswith(("freebsd", "netbsd")) else []), # Ignore lsof warnings.
    


    maflcko commented at 8:53 AM on November 16, 2026:

    Can the commit message explain what warning this is and maybe also why https://github.com/hebasto/bitcoin-core-nightly/actions/runs/43818975249/workflow does'nt need it?


    willcl-ark commented at 1:25 PM on November 16, 2026:

    I'd prefer to keep this, so expanded the commit message.

    The test runner treats nonempty stderr as failure even when the test exits successfully. hebatos nightly works around this by running feature_bind_extra and rpc_bind separately with -j1. Here, -w suppresses the warning about lock information while keeping the socket-address assertions, which seems nicer to me?

    This let's us keep things more parallelised here.

  32. in ci/test/00_setup_env.sh:40 in 168994444f
      35 | @@ -36,7 +36,8 @@ source "${FILE_ENV}"
      36 |  
      37 |  echo "Fallback to default values in env (if not yet set)"
      38 |  # The number of parallel jobs to pass down to make and test_runner.py
      39 | -export MAKEJOBS=${MAKEJOBS:--j$(if command -v nproc > /dev/null 2>&1; then nproc; else sysctl -n hw.logicalcpu; fi)}
      40 | +export MAKEJOBS=${MAKEJOBS:--j$(if command -v nproc > /dev/null 2>&1; then nproc; else sysctl -n hw.ncpu; fi)}
      41 | +export PYTHON=${PYTHON:-python3}
    


    maflcko commented at 8:55 AM on November 16, 2026:

    Can the commit msg explain this? Why is this needed here, when https://github.com/hebasto/bitcoin-core-nightly/actions/runs/43818975249/workflow doesn't need it?


    willcl-ark commented at 1:18 PM on November 16, 2026:

    Yep, I don't think it's needed after all. Removed. Also reverted the CPU-detection fallback change, since FreeBSD provides nproc.

  33. in ci/test/03_test_script.sh:24 in 168994444f
      20 |  cd "${BASE_ROOT_DIR}"
      21 |  
      22 |  export PATH="/path_with space:${PATH}"
      23 |  
      24 | -echo "Number of available processing units: $(nproc)"
      25 | +echo "Number of available processing units: $MAKEJOBS"
    


    maflcko commented at 8:58 AM on November 16, 2026:

    this change seems wrong? Why not just install nproc?


    willcl-ark commented at 1:20 PM on November 16, 2026:

    Also reverted. From what I can see nproc is already installed on 15.1

  34. in ci/test/03_test_script.sh:30 in 168994444f
      26 |  if [ "$CI_OS_NAME" == "macos" ]; then
      27 |    top -l 1 -s 0 | awk ' /PhysMem/ {print}'
      28 | +elif [[ "$CI_OS_NAME" == *bsd ]]; then
      29 | +  echo "System info: $(uname -srm)"
      30 | +  sysctl hw.ncpu || true
      31 | +  sysctl hw.physmem || true
    


    maflcko commented at 9:01 AM on November 16, 2026:

    i don't really like adding more special-case CI code. Just use the existing code and install lscpu from ports? Also, could just use uname -sr then?


    willcl-ark commented at 1:21 PM on November 16, 2026:

    Added sysutils/lscpu and shared the lscpu and uname -sr calls with Linux. Kept a small FreeBSD branch for memory reporting: sysctl hw.physmem though since the existing free -m -h is Linux-specific.

    LMK if you know a way around that one.

  35. in ci/test/03_test_script.sh:98 in 168994444f
      93 | @@ -86,13 +94,15 @@ fi
      94 |  if [ -z "$NO_DEPENDS" ]; then
      95 |    if [[ $CI_IMAGE_NAME_TAG == *alpine* ]]; then
      96 |      SHELL_OPTS="CONFIG_SHELL=/usr/bin/dash"
      97 | +  elif [[ "$CI_OS_NAME" == *bsd ]]; then
      98 | +    SHELL_OPTS="CONFIG_SHELL=/bin/sh"
    


    maflcko commented at 9:05 AM on November 16, 2026:

    Add a rationale?


    willcl-ark commented at 1:22 PM on November 16, 2026:

    I don't recall why I added this, so going to remove for now.

  36. in ci/README.md:55 in 168994444f
      50 | +`PACKAGES` and `PIP_PACKAGES` listed in their environment file. For example,
      51 | +on FreeBSD:
      52 | +
      53 | +```
      54 | +env -i HOME="$HOME" PATH="$PATH" USER="$USER" \
      55 | +  DANGER_RUN_CI_ON_HOST=1 \
    


    maflcko commented at 9:09 AM on November 16, 2026:

    do we want to document "dangerous" stuff?

    Also, the docs are wrong to suggest that a manual install is needed?


    willcl-ark commented at 1:23 PM on November 16, 2026:

    Well I was thinking that the manual-install instruction was useful because the scripts skip package installation on BSD; the GitHub workflow installs packages separately during VM preparation.

    But I think removing it is fine.

  37. maflcko commented at 9:09 AM on November 16, 2026: member

    left some more questions. Also, would be good to push the commit to test this a bunch of times here, before merging into master?

  38. in ci/test/00_setup_env_freebsd_native.sh:14 in 168994444f outdated
       9 | +export CI_OS_NAME=freebsd
      10 | +export BSD_RELEASE=15.1
      11 | +export PACKAGES="shells/bash devel/bison devel/ccache4 devel/cmake devel/gmake devel/ninja curl devel/pkgconf devel/py-pip databases/py-sqlite3 lang/python3 net/py-pyzmq net/rsync sysutils/lsof x11-fonts/fontconfig"
      12 | +export PIP_PACKAGES="pycapnp"
      13 | +export MAKE=gmake
      14 | +export TEST_RUNNER_EXTRA="--exclude feature_reindex_init --exclude p2p_private_broadcast_retry_v1"
    


    maflcko commented at 9:12 AM on November 16, 2026:

    I see the pull description mentions this, but it would be better to remove it there and mention it here, and be a bit more specific. Is this #36099?

  39. fanquake commented at 10:34 AM on November 16, 2026: member

    See also #36587, where we are trying to test NetBSD via the macOS CI.

  40. willcl-ark force-pushed on Nov 16, 2026
  41. willcl-ark renamed this:
    ci: add [free|open|net]BSD ci test jobs
    ci: add free BSD ci test job
    on Nov 16, 2026
  42. willcl-ark renamed this:
    ci: add free BSD ci test job
    ci: add native freeBSD ci job
    on Nov 16, 2026
  43. willcl-ark force-pushed on Nov 16, 2026
  44. DrahtBot added the label CI failed on Nov 16, 2026
  45. in ci/test/02_run_container.py:69 in 0a9767b06f
      65 | @@ -66,6 +66,7 @@ def main():
      66 |          print("Create missing folders")
      67 |          for create_dir in [
      68 |                  os.environ["CCACHE_DIR"],
      69 | +                os.environ["CCACHE_TEMPDIR"],
    


    maflcko commented at 1:51 PM on November 16, 2026:

    why is this needed?

  46. willcl-ark commented at 1:52 PM on November 16, 2026: member

    @maflcko I opted to run 20 jobs here as a trial. If they're all successful then I can bump and re-run.

    What level of robustness do you think we should aim for here? I calculate that running 200 jobs with 95% confidence would put our failure rate below ~1.5%. (and 299 runs would put it at 99% reliable).

  47. in ci/test/02_run_container.py:200 in 0a9767b06f
     195 | @@ -195,7 +196,8 @@ def ci_exec(cmd_inner, **kwargs):
     196 |          f"{os.environ['BASE_READ_ONLY_DIR']}/",
     197 |          f"{os.environ['BASE_ROOT_DIR']}",
     198 |      ])
     199 | -    ci_exec([f"{os.environ['BASE_ROOT_DIR']}/ci/test/01_base_install.sh"])
     200 | +    if not (os.getenv("DANGER_RUN_CI_ON_HOST") and os.environ.get("CI_OS_NAME", "").endswith("bsd")):
     201 | +        ci_exec([f"{os.environ['BASE_ROOT_DIR']}/ci/test/01_base_install.sh"])
    


    maflcko commented at 1:54 PM on November 16, 2026:

    Why is this logic change needed? Maybe just write "done" to "${BASE_ROOT_DIR}/ci.base-install-done"?

  48. in ci/test/03_test_script.sh:19 in 0a9767b06f
      12 | @@ -13,6 +13,10 @@ if [ "${DANGER_RUN_CI_ON_HOST}" != "1" ]; then
      13 |    exit 1
      14 |  fi
      15 |  
      16 | +if [ -n "${CI_LIMIT_NOFILE}" ]; then
      17 | +  ulimit -n "${CI_LIMIT_NOFILE}"
      18 | +fi
      19 | +
    


    maflcko commented at 1:54 PM on November 16, 2026:

    why is this needed?

  49. in ci/test/03_test_script.sh:31 in 0a9767b06f
      24 | @@ -21,8 +25,12 @@ echo "Number of available processing units: $(nproc)"
      25 |  if [ "$CI_OS_NAME" == "macos" ]; then
      26 |    top -l 1 -s 0 | awk ' /PhysMem/ {print}'
      27 |  else
      28 | -  free -m -h
      29 | -  echo "System info: $(uname --kernel-name --kernel-release)"
      30 | +  if [ "$CI_OS_NAME" == "freebsd" ]; then
      31 | +    sysctl hw.physmem
      32 | +  else
      33 | +    free -m -h
    


    maflcko commented at 1:57 PM on November 16, 2026:

    I guess this was always wrong. Could drop the -m and use free --human while touching this?

  50. willcl-ark force-pushed on Nov 16, 2026
  51. winterrdog commented at 3:01 PM on November 16, 2026: contributor

    concept ACK

  52. in ci/test/03_test_script.sh:95 in cfdd06cc9a
      89 | @@ -86,10 +90,13 @@ fi
      90 |  if [ -z "$NO_DEPENDS" ]; then
      91 |    if [[ $CI_IMAGE_NAME_TAG == *alpine* ]]; then
      92 |      SHELL_OPTS="CONFIG_SHELL=/usr/bin/dash"
      93 | +  elif [ "$CI_OS_NAME" == "freebsd" ]; then
      94 | +    # Fontconfig preserves an empty CONFIG_SHELL as an empty Makefile SHELL.
      95 | +    SHELL_OPTS="CONFIG_SHELL=/bin/sh"
    


    maflcko commented at 3:30 PM on November 16, 2026:

    That seems a bit hacky? And given that it triggers a "bug" in fontconfig, I always wondered if an empty string as the shell should be supported even?

    Why not SHELL_OPTS="" for non-Alpine?


    hebasto commented at 5:07 PM on November 16, 2026:
  53. maflcko commented at 3:30 PM on November 16, 2026: member

    lgtm. I haven't reviewed this, but it appears fine

  54. hebasto commented at 5:14 PM on November 16, 2026: member

    See also #36587, where we are trying to test NetBSD via the macOS CI.

    In my experience, NetBSD’s infrastructure is the least reliable of the three, compared with FreeBSD’s and OpenBSD’s. A significant share of NetBSD nightly jobs fail because of package installation failures.

  55. willcl-ark force-pushed on Nov 16, 2026
  56. in .github/workflows/ci.yml:627 in 75b9e07284 outdated
     642 | +          release: ${{ env.BSD_RELEASE }}
     643 | +          cpu: ${{ env.BSD_CPU }}
     644 | +          mem: ${{ env.BSD_MEM }}
     645 | +          custom-shell-name: bsd
     646 | +          envs: DANGER_RUN_CI_ON_HOST FILE_ENV BASE_ROOT_DIR BASE_BUILD_DIR BASE_SCRATCH_DIR CCACHE_DIR DEPENDS_DIR PREVIOUS_RELEASES_DIR
     647 | +          cache-after-prepare: true
    


    hebasto commented at 5:56 PM on November 16, 2026:

    I wonder how much time this caching saves us.

  57. in ci/test/03_test_script.sh:96 in 75b9e07284 outdated
      90 | @@ -87,9 +91,9 @@ if [ -z "$NO_DEPENDS" ]; then
      91 |    if [[ $CI_IMAGE_NAME_TAG == *alpine* ]]; then
      92 |      SHELL_OPTS="CONFIG_SHELL=/usr/bin/dash"
      93 |    else
      94 | -    SHELL_OPTS="CONFIG_SHELL="
      95 | +    SHELL_OPTS=""
      96 |    fi
      97 | -  bash -c "$SHELL_OPTS make $MAKEJOBS -C depends HOST=$HOST $DEP_OPTS LOG=1"
      98 | +  bash -c "$SHELL_OPTS ${MAKE:-make} $MAKEJOBS -C depends HOST=$HOST $DEP_OPTS LOG=1"
    


    hebasto commented at 6:00 PM on November 16, 2026:

    Is there any CI job where gmake doesn't work?

  58. in .github/workflows/ci.yml:622 in 75b9e07284 outdated
     637 | -
     638 | -      - name: Set mmap_rnd_bits
     639 | -        if: ${{ env.CONTAINER_NAME == 'ci_native_tsan' || env.CONTAINER_NAME == 'ci_native_msan' || env.CONTAINER_NAME == 'ci_native_fuzz_with_msan' }}
     640 | -        # Prevents crashes due to high ASLR entropy
     641 | -        run: sudo sysctl -w vm.mmap_rnd_bits=28
     642 | +          release: ${{ env.BSD_RELEASE }}
    


    hebasto commented at 6:08 PM on November 16, 2026:

    Specifically for FreeBSD, we might want to be explicit about the filesystem being used (UFS vs ZFS), because the availability of posix_fallocate() depends on it.

    Related: #33128.


    willcl-ark commented at 9:01 AM on November 17, 2026:

    I think sticking with UFS is the better choice here, would you agree?

    This means BSD_RELEASE just stays as 15.1; would you like a code comment next to it?


    hebasto commented at 9:23 AM on November 17, 2026:

    I think sticking with UFS is the better choice here, would you agree?

    This means BSD_RELEASE just stays as 15.1; would you like a code comment next to it?

    If we are going to add a single new job, I’d prefer that it increase our test coverage. A job using 15.1-zfs would be the only one that covers code paths where the HAVE_POSIX_FALLOCATE macro is undefined. Of course, this means that the feature_reindex_init.py functional test would have to be temporarily disabled until #33128 is fixed.


    fanquake commented at 9:56 AM on November 17, 2026:

    I’d prefer that it increase our test coverage

    Why is increasing test coverage here, dependant on filesystem? We are increasing test coverage in any case?


    hebasto commented at 10:20 AM on November 17, 2026:

    Why is increasing test coverage here, dependant on filesystem?

    posix_fallocate() is disabled for ZFS on FreeBSD, so this job exercises a code path that none of the other CI jobs currently tests: https://github.com/bitcoin/bitcoin/blob/e211dd0186e9646167d063a16f0da88e5f72e05f/src/util/fs_helpers.cpp#L229-L241


    fanquake commented at 10:22 AM on November 17, 2026:

    Sure, but this is also increasing test coverage, by just running any FreeBSD tests.


    hebasto commented at 10:23 AM on November 17, 2026:

    I mean additional coverage.

  59. DrahtBot removed the label CI failed on Nov 16, 2026
  60. willcl-ark force-pushed on Nov 17, 2026
  61. DrahtBot added the label CI failed on Nov 17, 2026
  62. hebasto commented at 10:27 AM on November 17, 2026: member

    Apparently, rsync is very flaky.

    That was one of the reasons I dropped Ccache caching from the nightly builds.

  63. willcl-ark force-pushed on Nov 17, 2026
  64. DrahtBot removed the label CI failed on Nov 17, 2026
  65. willcl-ark force-pushed on Nov 17, 2026
  66. willcl-ark force-pushed on Nov 18, 2026
  67. willcl-ark commented at 8:48 AM on November 18, 2026: member

    OK getting rid of the flaky "rsync the entire guest back to host" step has made this a lot more robust:

    https://github.com/bitcoin/bitcoin/actions/runs/44088352617 https://github.com/bitcoin/bitcoin/actions/runs/44135481013

    Those two runs also checked cache save/restore.

    Will run some more tests.

  68. maflcko commented at 9:00 AM on November 18, 2026: member

    Pull description is outdated wrt excluded functional tests? Also the test fails in https://github.com/bitcoin/bitcoin/actions/runs/44270200782/job/134684598246?pr=36147#step:9:4241:

    <details><summary>test failure</summary>

     test  2026-11-18T08:55:53.293689Z TestFramework.node0 (DEBUG): Node stopped 
     test  2026-11-18T08:55:53.293799Z TestFramework (INFO): ...measured 0.2s. 
     test  2026-11-18T08:55:53.293842Z TestFramework (INFO): Verifying inability to connect to bitcoind's RPC interface due to wrong port results in one exception containing at least one OSError. 
     test  2026-11-18T08:55:55.028030Z TestFramework (ERROR): Unexpected exception: 
                                       Traceback (most recent call last):
                                         File "/home/runner/work/bitcoin/bitcoin/test/functional/test_framework/test_framework.py", line 146, in main
                                           self.run_test()
                                         File "/home/runner/work/bitcoin/build_ ₿🧪_/test/functional/feature_framework_startup_failures.py", line 94, in run_test
                                           self._verify_startup_failure(
                                         File "/home/runner/work/bitcoin/build_ ₿🧪_/test/functional/feature_framework_startup_failures.py", line 66, in _verify_startup_failure
                                           assert not errors, (f"Child test did NOT contain (only) expected errors:\n{linesep.join(errors)}\n" +
                                                  ^^^^^^^^^^
                                       AssertionError: Child test did NOT contain (only) expected errors:
                                       Found 0/1 occurrences of the specific exception: AssertionError: \[node 0\] Unable to connect to bitcoind after \d+s \(ignored errors: {[^}]*'OSError \w+'?: \d+[^}]*}, latest: '[\w ]+'/\w+\([^)]+\)\)
                                       <TestWrongRpcPortStartupFailure OUTPUT BEGIN>
     test  2026-11-18T08:55:53.416786Z TestFramework (INFO): PRNG seed is: 4883552441926974308 
     test  2026-11-18T08:55:53.467432Z TestFramework (INFO): Initializing test directory /home/runner/work/bitcoin/scratch_ ₿🧪_/test_runner/test_runner_₿_🏃_20261118_085159/feature_framework_startup_failures_6/86d994c9 
     test  2026-11-18T08:55:54.949908Z TestFramework (ERROR): Unexpected exception: 
                                       Traceback (most recent call last):
                                         File "/home/runner/work/bitcoin/bitcoin/test/functional/test_framework/test_framework.py", line 142, in main
                                           self.setup()
                                         File "/home/runner/work/bitcoin/bitcoin/test/functional/test_framework/test_framework.py", line 277, in setup
                                           self.setup_network()
                                         File "/home/runner/work/bitcoin/bitcoin/test/functional/test_framework/test_framework.py", line 364, in setup_network
                                           self.setup_nodes()
                                         File "/home/runner/work/bitcoin/bitcoin/test/functional/test_framework/test_framework.py", line 386, in setup_nodes
                                           self.start_nodes()
                                         File "/home/runner/work/bitcoin/bitcoin/test/functional/test_framework/test_framework.py", line 518, in start_nodes
                                           node.wait_for_rpc_connection(wait_for_full_init=wait_for_full_init)
                                         File "/home/runner/work/bitcoin/bitcoin/test/functional/test_framework/test_node.py", line 379, in wait_for_rpc_connection
                                           rpc.getblockcount()
                                         File "/home/runner/work/bitcoin/bitcoin/test/functional/test_framework/coverage.py", line 50, in __call__
                                           return_val = self.auth_service_proxy_instance.__call__(*args, **kwargs)
                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                         File "/home/runner/work/bitcoin/bitcoin/test/functional/test_framework/authproxy.py", line 128, in __call__
                                           response, status = self._request('POST', self.__url.path, postdata.encode('utf-8'))
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                         File "/home/runner/work/bitcoin/bitcoin/test/functional/test_framework/authproxy.py", line 102, in _request
                                           return self._get_response()
                                                  ^^^^^^^^^^^^^^^^^^^^
                                         File "/home/runner/work/bitcoin/bitcoin/test/functional/test_framework/authproxy.py", line 165, in _get_response
                                           http_response = self.__conn.getresponse()
                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^
                                         File "/usr/local/lib/python3.12/http/client.py", line 1478, in getresponse
                                           response.begin()
                                         File "/usr/local/lib/python3.12/http/client.py", line 343, in begin
                                           version, status, reason = self._read_status()
                                                                     ^^^^^^^^^^^^^^^^^^^
                                         File "/usr/local/lib/python3.12/http/client.py", line 325, in _read_status
                                           raise BadStatusLine(line)
                                       http.client.BadStatusLine: POST / HTTP/1.1
     test  2026-11-18T08:55:55.006139Z TestFramework (INFO): Not stopping nodes as test failed. The dangling processes will be cleaned up later. 
     test  2026-11-18T08:55:55.006281Z TestFramework (WARNING): Not cleaning up dir /home/runner/work/bitcoin/scratch_ ₿🧪_/test_runner/test_runner_₿_🏃_20261118_085159/feature_framework_startup_failures_6/86d994c9 
     test  2026-11-18T08:55:55.006337Z TestFramework (ERROR): Test failed. Test logging available at /home/runner/work/bitcoin/scratch_ ₿🧪_/test_runner/test_runner_₿_🏃_20261118_085159/feature_framework_startup_failures_6/86d994c9/test_framework.log 
     test  2026-11-18T08:55:55.006451Z TestFramework (ERROR): 
     test  2026-11-18T08:55:55.006539Z TestFramework (ERROR): Hint: Call /home/runner/work/bitcoin/bitcoin/test/functional/combine_logs.py '/home/runner/work/bitcoin/scratch_ ₿🧪_/test_runner/test_runner_₿_🏃_20261118_085159/feature_framework_startup_failures_6/86d994c9' to consolidate all logs 
     test  2026-11-18T08:55:55.006572Z TestFramework (ERROR): 
     test  2026-11-18T08:55:55.006600Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log. 
     test  2026-11-18T08:55:55.006658Z TestFramework (ERROR): https://github.com/bitcoin/bitcoin/issues 
     test  2026-11-18T08:55:55.006692Z TestFramework (ERROR):  
                                       [node 0] Cleaning up leftover process
                                       <TestWrongRpcPortStartupFailure OUTPUT END>
     test  2026-11-18T08:55:55.029093Z TestFramework (DEBUG): Closing down network thread 
     test  2026-11-18T08:55:55.079919Z TestFramework (INFO): Not stopping nodes as test failed. The dangling processes will be cleaned up later. 
     test  2026-11-18T08:55:55.080071Z TestFramework (WARNING): Not cleaning up dir /home/runner/work/bitcoin/scratch_ ₿🧪_/test_runner/test_runner_₿_🏃_20261118_085159/feature_framework_startup_failures_6 
     test  2026-11-18T08:55:55.080157Z TestFramework (ERROR): Test failed. Test logging available at /home/runner/work/bitcoin/scratch_ ₿🧪_/test_runner/test_runner_₿_🏃_20261118_085159/feature_framework_startup_failures_6/test_framework.log 
     test  2026-11-18T08:55:55.080280Z TestFramework (ERROR): 
     test  2026-11-18T08:55:55.080392Z TestFramework (ERROR): Hint: Call /home/runner/work/bitcoin/bitcoin/test/functional/combine_logs.py '/home/runner/work/bitcoin/scratch_ ₿🧪_/test_runner/test_runner_₿_🏃_20261118_085159/feature_framework_startup_failures_6' to consolidate all logs 
     test  2026-11-18T08:55:55.080432Z TestFramework (ERROR): 
     test  2026-11-18T08:55:55.080460Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log. 
     test  2026-11-18T08:55:55.080516Z TestFramework (ERROR): https://github.com/bitcoin/bitcoin/issues 
     test  2026-11-18T08:55:55.080541Z TestFramework (ERROR): 
    
    
    

    </details>

  69. DrahtBot added the label CI failed on Nov 18, 2026
  70. willcl-ark force-pushed on Nov 18, 2026
  71. willcl-ark commented at 12:51 PM on November 18, 2026: member

    Pull description is outdated wrt excluded functional tests? Also the test fails in bitcoin/bitcoin/actions/runs/44270200782/job/134684598246?pr=36147#step:9:4241: test failure

    Right, I think this is because BSD has a different ephemeral port range by default vs linux and one clashed. Will try a small fix.

  72. DrahtBot removed the label CI failed on Nov 18, 2026
  73. hebasto commented at 1:12 PM on November 18, 2026: member

    Pull description is outdated wrt excluded functional tests? Also the test fails in bitcoin/bitcoin/actions/runs/44270200782/job/134684598246?pr=36147#step:9:4241: test failure

    Right, I think this is because BSD has a different ephemeral port range by default vs linux and one clashed. Will try a small fix.

    Doesn't set_ephemeral_port_range() do its work?

  74. willcl-ark commented at 2:20 PM on November 18, 2026: member

    Pull description is outdated wrt excluded functional tests? Also the test fails in bitcoin/bitcoin/actions/runs/44270200782/job/134684598246?pr=36147#step:9:4241: test failure

    Right, I think this is because BSD has a different ephemeral port range by default vs linux and one clashed. Will try a small fix.

    Doesn't set_ephemeral_port_range() do its work?

    I don't know, but this looked like it was connecting to something else to me: https://github.com/bitcoin/bitcoin/actions/runs/44270200782/job/134684598246?pr=36147#step:9:4243

  75. hebasto commented at 12:36 PM on November 19, 2026: member

    I'm concerned about the sizes of the caches created by vmactions/freebsd-vm.

    The first cache, which "caches apt packages on the host and VM images/artifacts", is about 1.0 GB.

    The second one, cache-after-prepare, takes 1.6 GB.

    In my year of experience with this action, I really can't see the need for either of them. Starting a FreeBSD VM with a non-trivial prepare input usually takes under 2 minutes.

  76. hebasto commented at 12:41 PM on November 19, 2026: member

    Approach ACK 606f39f3b8039972ebd1d2dc01e86395b32bca40.

  77. hebasto commented at 3:29 PM on November 19, 2026: member

    Checked Ccache in my personal repo. The second run on the same commit looks nice:

    Cache directory:       /home/runner/work/bitcoin/bitcoin/ci/scratch/ccache
    Config file:           /home/runner/work/bitcoin/bitcoin/ci/scratch/ccache/ccache.conf
    Directory config file:
    System config file:    /usr/local/etc/ccache.conf
    Stats updated:         Thu Nov 19 13:25:30 2026
    Cacheable calls:        912 / 912 (100.0%)
      Hits:                 912 / 912 (100.0%)
        Direct:             656 / 912 (71.93%)
        Preprocessed:       256 / 912 (28.07%)
      Misses:                 0 / 912 ( 0.00%)
    Successful lookups:
      Direct:               656 / 912 (71.93%)
      Preprocessed:         256 / 256 (100.0%)
    Local storage:
      Cache size (GB):      0.5 / 2.0 (23.75%)
      Files:               1613
      Hits:                 912 / 912 (100.0%)
      Misses:                 0 / 912 ( 0.00%)
      Reads:               1824
      Writes:                 0
    
  78. willcl-ark commented at 3:44 PM on November 19, 2026: member

    I will drop the vm caches here.

    I think I will also (optimistically) rebase this on top of #36916 which I think addresses the port collisions correctly (and certainly a lot more cleanly than the previous hack in this PR).

  79. willcl-ark force-pushed on Nov 19, 2026
  80. hebasto commented at 3:57 PM on November 19, 2026: member

    In my year of experience with this action, I really can't see the need for either of them. Starting a FreeBSD VM with a non-trivial prepare input usually takes under 2 minutes.

    I will drop the vm caches here.

    For this job it takes 7..8 minutes. It seems acceptable for me.

  81. willcl-ark commented at 4:45 PM on November 19, 2026: member

    going to leave this in draft to focus on #36916 first

  82. willcl-ark marked this as a draft on Nov 19, 2026
  83. hebasto referenced this in commit 0629982ada on Nov 27, 2026
  84. test: silence lsof warnings on FreeBSD
    FreeBSD lsof can emit the following warning during parallel tests:
    
        lsof: WARNING -- reading lockf list failed: Cannot allocate memory
    
    The functional test runner treats nonempty stderr as failure even when a
    test exits successfully.
    
    The lock information is separate from the TCP listener addresses queried
    by get_bind_addrs, so suppress lsof warnings for this query while
    retaining the tests' socket-address assertions.
    d3e6d84ee6
  85. ci: extract PULL_FILTER named template 2cdb9fe75f
  86. willcl-ark force-pushed on Nov 27, 2026
  87. DrahtBot added the label CI failed on Nov 27, 2026
  88. hebasto commented at 4:50 PM on November 27, 2026: member

    going to leave this in draft to focus on #36916 first

    Maybe undraft?

  89. DrahtBot removed the label CI failed on Nov 27, 2026
  90. willcl-ark marked this as ready for review on Dec 2, 2026
  91. willcl-ark commented at 10:23 AM on December 2, 2026: member

    Undrafted.

    The one failing run previously seems to have just timed out (or errored) on pkg install. Could be a server error or something else. I considered adding a retry here, but according to the manpage pkg install already retries 3 times.

    I did make a small tweak to the python packages though, selecting them by python version. This might be error-prone (and we might therefore want to revert), but it does avoid downloading these packages for multiple python versions; apparently these packages cover 6 or 7 python versions each?

  92. vasild commented at 2:16 PM on December 2, 2026: contributor

    it does avoid downloading these packages for multiple python versions

    When would that happen? Do I understand correctly that sometimes it would download py312-sqlite3 and in another occasion e.g. py314-sqlite3?

  93. ci: run native full tests on FreeBSD
    Keep NetBSD and OpenBSD on their existing cross-compiled jobs.
    
    Run the full test suite natively on FreeBSD.
    e6b63bf17f
  94. fixup! ci: run native full tests on FreeBSD
    Because the FreeBSD job sets DANGER_RUN_CI_ON_HOST=1, 02_run_container.py
    does not assign BIND_TEST_ROUTABLE_IPV4 or BIND_TEST_ROUTABLE_IPV6, so
    feature_bind_port_discover.py skips by default. Add its documented
    routable aliases to the VM's default interface during preparation so the
    test runs and exercises FreeBSD's getifaddrs discovery path.
    f204e94541
  95. NOMERGE: run 25 BSD trials and skip other jobs
    Repeat the native FreeBSD job to assess selective cache retrieval without
    spending runner time on unrelated jobs. Keep all temporary trial controls
    in this commit so dropping it restores the normal CI configuration.
    a6f5aa9d44
  96. willcl-ark force-pushed on Dec 2, 2026
  97. willcl-ark commented at 3:19 PM on December 2, 2026: member

    it does avoid downloading these packages for multiple python versions

    When would that happen? Do I understand correctly that sometimes it would download py312-sqlite3 and in another occasion e.g. py314-sqlite3?

    Ah not quite (but also not quite how I originally understood it, too):

    See for example https://github.com/freebsd/freebsd-ports/blob/3c9affb17b35421840c24a176ebe2c8883a67ffe/databases/py-sqlite3/Makefile#L20 which specifies USE_PYTHON= allflavors autoplist pep517 (feeding into this).

    So databases/py-sqlite3 requests all available flavours of Python’s sqlite3 module, which downloads multiple python interpreters AFAICT, e.g. in the failed run: 3.11, 3.12, 3.13, 3.13t, 3.14, 3.14t, and 3.15. link

    The other python packages do not set this in their builds/do this. I moved all python packages to this type only for consistency.

  98. DrahtBot added the label CI failed on Dec 2, 2026
  99. DrahtBot commented at 4:00 PM on December 2, 2026: contributor

    <!--85328a0da195eb286784d51f73fa0af9-->

    🚧 At least one of the CI tasks failed. <sub>Task FreeBSD 24: https://github.com/bitcoin/bitcoin/actions/runs/46913037948/job/143573391103</sub> <sub>LLM reason (✨ experimental): functional_test_fail: feature_torcontrol.py failed because its mock Tor service could not bind the control port: Address already in use.</sub>

    <details><summary>Hints</summary>

    Try to run the tests locally, according to the documentation. However, a CI failure may still happen due to a number of reasons, for example:

    • Possibly due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch.

    • A sanitizer issue, which can only be found by compiling with the sanitizer and running the affected test.

    • Intermittent network issues can occur; re-run CI for now, and report the issue if they keep happening.

    • A functional or integration test failure may be intermittent or unrelated to this pull request. If no dedicated issue thread exists, create a new one to track it.

    Leave a comment here, if you need help tracking down a confusing failure.

    </details>

  100. vasild commented at 4:03 PM on December 2, 2026: contributor

    Right, databases/py-sqlite3 pulls in all flavors which even if benign looks excessive. Can use databases/py-sqlite3@py314 instead and define py314 in a separate variable and suffix all python packages with it, so that when it has to be changed, it's only in one place.

    Maybe omit lang/python3 because its proper version will be pulled by the other py packages, e.g. by databases/py-sqlite3@py314 or py314-sqlite3.


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-12-04 01:52 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me