From 1c375d6eb4c97d076a4ba733ac787cf1c682010e Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 2 Oct 2025 10:10:48 +0930 Subject: [PATCH] CI: Remove non-working FreeBSD test. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It takes over an hour to run, because there's no FreeBSD wheel for the cryptography Python package, and it builds it, in Rust, from scratch. Then it fails due to some obscure cffi error. This is the kind of death which happens when an OS just isn't popular enough to get broad support: even those who want to be supportive find that the infrastructure cost is too great. ``` Wed, 01 Oct 2025 06:08:27 GMT # Just run a "quick" test without memory checking Wed, 01 Oct 2025 06:08:27 GMT uv run gmake Wed, 01 Oct 2025 06:08:28 GMT /usr/bin/bash /home/runner/work/_actions/vmactions/freebsd-vm/v1/run.sh execSSHSH Wed, 01 Oct 2025 06:08:28 GMT Config file: freebsd-14.3.conf Wed, 01 Oct 2025 06:08:28 GMT Using CPython 3.11.13 interpreter at: /usr/local/bin/python3 Wed, 01 Oct 2025 06:08:28 GMT Creating virtual environment at: .venv Wed, 01 Oct 2025 06:08:28 GMT Resolved 79 packages in 7ms Wed, 01 Oct 2025 06:08:28 GMT Building pyln-client @ file:///home/runner/work/lightning/lightning/contrib/pyln-client Wed, 01 Oct 2025 06:08:28 GMT Building pyln-grpc-proto @ file:///home/runner/work/lightning/lightning/contrib/pyln-grpc-proto Wed, 01 Oct 2025 06:08:28 GMT Building pyln-proto @ file:///home/runner/work/lightning/lightning/contrib/pyln-proto Wed, 01 Oct 2025 06:08:28 GMT Building pyln-bolt7 @ file:///home/runner/work/lightning/lightning/contrib/pyln-spec/bolt7 Wed, 01 Oct 2025 06:08:28 GMT Building pyln-testing @ file:///home/runner/work/lightning/lightning/contrib/pyln-testing Wed, 01 Oct 2025 06:08:28 GMT Downloading pygments (1.2MiB) Wed, 01 Oct 2025 06:08:28 GMT Downloading setuptools (1.1MiB) Wed, 01 Oct 2025 06:08:29 GMT Building bitarray==3.7.1 Wed, 01 Oct 2025 06:08:29 GMT Building markupsafe==3.0.3 Wed, 01 Oct 2025 06:08:29 GMT Building crc32c==2.7.1 Wed, 01 Oct 2025 06:08:29 GMT Building rpds-py==0.27.1 Wed, 01 Oct 2025 06:08:29 GMT Building coincurve==21.0.0 Wed, 01 Oct 2025 06:08:29 GMT Downloading pygments Wed, 01 Oct 2025 06:08:29 GMT Building psutil==7.1.0 Wed, 01 Oct 2025 06:08:29 GMT Building psycopg2-binary==2.9.10 Wed, 01 Oct 2025 06:08:29 GMT Building cffi==2.0.0 Wed, 01 Oct 2025 06:08:29 GMT Downloading setuptools Wed, 01 Oct 2025 06:08:29 GMT Building cryptography==46.0.1 Wed, 01 Oct 2025 06:08:30 GMT Built pyln-client @ file:///home/runner/work/lightning/lightning/contrib/pyln-client Wed, 01 Oct 2025 06:08:30 GMT Built pyln-testing @ file:///home/runner/work/lightning/lightning/contrib/pyln-testing Wed, 01 Oct 2025 06:08:30 GMT Built pyln-grpc-proto @ file:///home/runner/work/lightning/lightning/contrib/pyln-grpc-proto Wed, 01 Oct 2025 06:08:30 GMT Built pyln-bolt7 @ file:///home/runner/work/lightning/lightning/contrib/pyln-spec/bolt7 Wed, 01 Oct 2025 06:08:30 GMT Built pyln-proto @ file:///home/runner/work/lightning/lightning/contrib/pyln-proto Wed, 01 Oct 2025 06:08:32 GMT Building grpcio-tools==1.75.1 Wed, 01 Oct 2025 06:08:32 GMT Building grpcio==1.75.1 Wed, 01 Oct 2025 06:08:35 GMT Built markupsafe==3.0.3 Wed, 01 Oct 2025 06:08:35 GMT Built crc32c==2.7.1 Wed, 01 Oct 2025 06:08:40 GMT Built bitarray==3.7.1 Wed, 01 Oct 2025 06:08:46 GMT Built cffi==2.0.0 Wed, 01 Oct 2025 06:08:50 GMT Built psutil==7.1.0 Wed, 01 Oct 2025 06:08:54 GMT Built psycopg2-binary==2.9.10 Wed, 01 Oct 2025 06:19:41 GMT Built rpds-py==0.27.1 Wed, 01 Oct 2025 06:20:41 GMT Built cryptography==46.0.1 Wed, 01 Oct 2025 06:28:08 GMT Built grpcio-tools==1.75.1 Wed, 01 Oct 2025 06:41:17 GMT Built grpcio==1.75.1 Wed, 01 Oct 2025 07:24:36 GMT × Failed to build `coincurve==21.0.0` Wed, 01 Oct 2025 07:24:36 GMT ├─▶ The build backend returned an error Wed, 01 Oct 2025 07:24:36 GMT ╰─▶ Call to `hatchling.build.build_wheel` failed (exit status: 1) Wed, 01 Oct 2025 07:24:36 GMT Wed, 01 Oct 2025 07:24:36 GMT [stderr] Wed, 01 Oct 2025 07:24:36 GMT Traceback (most recent call last): Wed, 01 Oct 2025 07:24:36 GMT File "", line 11, in Wed, 01 Oct 2025 07:24:36 GMT File Wed, 01 Oct 2025 07:24:36 GMT "/root/.cache/uv/builds-v0/.tmpisps1h/lib/python3.11/site-packages/hatchling/build.py", Wed, 01 Oct 2025 07:24:36 GMT line 58, in build_wheel Wed, 01 Oct 2025 07:24:36 GMT return os.path.basename(next(builder.build(directory=wheel_directory, Wed, 01 Oct 2025 07:24:36 GMT versions=['standard']))) Wed, 01 Oct 2025 07:24:36 GMT Wed, 01 Oct 2025 07:24:36 GMT ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Wed, 01 Oct 2025 07:24:36 GMT File Wed, 01 Oct 2025 07:24:36 GMT "/root/.cache/uv/builds-v0/.tmpisps1h/lib/python3.11/site-packages/hatchling/builders/plugin/interface.py", Wed, 01 Oct 2025 07:24:36 GMT line 147, in build Wed, 01 Oct 2025 07:24:36 GMT build_hook.initialize(version, build_data) Wed, 01 Oct 2025 07:24:36 GMT File Wed, 01 Oct 2025 07:24:36 GMT "/root/.cache/uv/sdists-v9/pypi/coincurve/21.0.0/DQ1iYVIp54KEKTujF5Poy/src/hatch_build.py", Wed, 01 Oct 2025 07:24:36 GMT line 34, in initialize Wed, 01 Oct 2025 07:24:36 GMT raise RuntimeError(message) Wed, 01 Oct 2025 07:24:36 GMT RuntimeError: Expected exactly one LICENSE file in cffi distribution, Wed, 01 Oct 2025 07:24:36 GMT got 0 Wed, 01 Oct 2025 07:24:36 GMT Wed, 01 Oct 2025 07:24:36 GMT hint: This usually indicates a problem with the package or the build Wed, 01 Oct 2025 07:24:36 GMT environment. Wed, 01 Oct 2025 07:24:36 GMT help: `coincurve` (v21.0.0) was included because `cln-meta-project` (v0.1.0) Wed, 01 Oct 2025 07:24:36 GMT depends on `pyln-proto` (v25.9) which depends on `coincurve` ``` Signed-off-by: Rusty Russell --- .github/workflows/bsd.yml | 78 --------------------------------------- 1 file changed, 78 deletions(-) delete mode 100644 .github/workflows/bsd.yml diff --git a/.github/workflows/bsd.yml b/.github/workflows/bsd.yml deleted file mode 100644 index eee34d9379a6..000000000000 --- a/.github/workflows/bsd.yml +++ /dev/null @@ -1,78 +0,0 @@ -name: FreeBSD Test - -on: - push: - branches: - - "master" - pull_request: - workflow_dispatch: - -jobs: - testfreebsd: - runs-on: ubuntu-22.04 - name: Build and test on FreeBSD - timeout-minutes: 120 - strategy: - fail-fast: true - matrix: - bitcoind-version: ["27.1"] - steps: - - uses: actions/checkout@v4 - - name: Test in FreeBSD - id: test - uses: vmactions/freebsd-vm@v1 - with: - usesh: true - sync: rsync - copyback: false - prepare: | - pkg install -y \ - bash \ - wget \ - python310 \ - gmake \ - git \ - python \ - postgresql16-server \ - autoconf \ - automake \ - libtool \ - bash \ - gettext \ - sqlite3 \ - lowdown \ - pkgconf \ - jq \ - protobuf \ - curl \ - uv \ - libffi - - python3.10 -m ensurepip - python3.10 -m pip install --upgrade pip - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable - - - run: | - PATH=/root/.local/bin:$PATH:/root/.cargo/bin; export PATH - uv sync --all-extras --all-groups - - git clone https://github.com/lightning/bolts.git ../bolts - # fatal: unsafe repository ('/Users/runner/work/lightning/lightning' is owned by someone else) - git config --global --add safe.directory `pwd` - for d in libsodium libwally-core gheap jsmn libbacktrace lowdown; do git config --global --add safe.directory `pwd`/external/$d; done - git submodule update --init --recursive - - ./configure CC="$CC" --disable-valgrind - - cat config.vars - - cat << EOF > pytest.ini - addopts=-p no:logging --color=yes --timeout=1800 --timeout-method=thread --test-group-random-seed=42 --junitxml=report.xml --json-report --json-report-file=report.json --json-report-indent=2 - markers = - slow_test: marks tests as slow (deselect with '-m "not slow_test"') - EOF - - # Just run a "quick" test without memory checking - uv run gmake -