1 minor finding · 5 suggestions
Findings
[minor] · Unset CI_OS_NAME crashes local host-mode CI
Local/manual host-mode runs with unset CI_OS_NAME now raise KeyError before installation; no checked-in workflow uses a Linux configuration in host mode.
Location: ci/test/02_run_container.py:186 (head).
Details and suggested fix
With DANGER_RUN_CI_ON_HOST=1, the new guard evaluates os.environ["CI_OS_NAME"] after rsync. Linux configurations such as 00_setup_env_arm.sh leave it unset, and 00_setup_env.sh supplies no default, so these runs stop instead of reaching 01_base_install.sh as before. Container runs short-circuit the lookup, while the macOS and BSD host configurations export the variable. Use os.environ.get("CI_OS_NAME", "").endswith("bsd") to retain the BSD bypass without requiring other host-mode callers to define it.
Optional improvements
[suggestion] · NetBSD's macro override drops dependency optimization
Passing CXXFLAGS on the depends command line removes NetBSD's standard host-package -O2, including for zeromq; no slowdown has been measured.
Location: ci/test/00_setup_env_netbsd_native.sh:18 (head).
Details and suggested fix
03_test_script.sh expands DEP_OPTS onto the gmake command line. For that variable origin, add_host_flags_func replaces the host C++ flags and clears the release flags rather than retaining netbsd_release_CXXFLAGS=-O2. zeromq also uses CMAKE_BUILD_TYPE=None, so it does not recover optimization from a CMake build type. Use CPPFLAGS=-DKJ_NO_EXCEPTIONS=0 build_CPPFLAGS=-DKJ_NO_EXCEPTIONS=0 instead. These flags reach the dependency compiler commands and the main build's compile definitions without replacing the C++ optimization defaults. Native build tools did not have a NetBSD -O2 default to lose.
[suggestion] · REST socket timeout bypasses --timeout-factor
The fixed REST timeout ignores the framework's slow-run and debugging timeout settings; no request exceeding 60 seconds has been demonstrated.
Location: test/functional/interface_rest.py:80 (head).
Details and suggested fix
The framework starts rpc_timeout at 60 seconds and scales it by --timeout-factor, which CI defaults to 40. It also maps a zero factor to 999 for debugging. The new literal timeout=60 bypasses both settings for every request through this helper. Use timeout=self.rpc_timeout to keep the finite socket bound while honoring the existing timeout configuration.
[suggestion] · BSD jobs leave routable-address bind coverage conditional
BSD VMs without the required routable-address aliases can pass with feature_bind_port_discover skipped; the workflow does not add those aliases, and the VM defaults were not verified.
Location: .github/workflows/ci.yml:681 (head).
Details and suggested fix
feature_bind_port_discover.py binds a node to 1.1.1.5 and skips when startup reports an inability to bind. The runner counts that result as successful. Host mode bypasses Docker's address assignment, and neither BSD preparation nor the CI-script step replaces it. Configure 1.1.1.5/32 and 1111:1111::5/128 on an up, non-loopback VM interface before ./ci/test_run_all.sh, following the test's ifconfig instructions. Put this runtime setup in the CI-script step rather than relying on aliases surviving in a cached prepared image. This adds coverage rather than restoring it: the replaced cross jobs ran no functional tests.
[suggestion] · README action allowlist omits the BSD VM actions
Repositories following the documented action allowlist would not permit the three VM actions required by the new BSD jobs.
Location: ci/README.md:99 (head).
Details and suggested fix
The workflow now uses vmactions/netbsd-vm@v1, vmactions/freebsd-vm@v1, and vmactions/openbsd-vm@v1, but the primary-repository setup instructions list none of them. Add all three to the actions-to-permit list so an administrator following these instructions can enable the BSD jobs without encountering an action-policy rejection.
[suggestion] · Retired BSD cross jobs leave unused SDK installation code
No checked-in configuration supplies the BSD SDK variables after the cross configurations are deleted, leaving their download and extraction branches unused in-tree.
Location: ci/test/00_setup_env_freebsd_cross.sh:13 (base).
Details and suggested fix
The deleted cross environment files were the only in-tree providers of the BSD version, SDK basename, and checksum variables. Their NetBSD, FreeBSD, and OpenBSD branches remain in 01_base_install.sh, while native BSD host jobs skip that script entirely. Remove these obsolete SDK download, verification, extraction, and symlink blocks along with the cross configurations. An out-of-tree FILE_ENV could still activate them, but no checked-in caller remains.