ci: add native freeBSD ci job

bitcoin/bitcoin: PR #36147

2 suggestions

Earlier concerns neither republished nor resolved: 4 major findings · 1 minor finding · 5 suggestions. See the Run archive for their assessments.

Optional improvements

Link

[suggestion] · FreeBSD enablement bundles an unexplained shared CONFIG_SHELL change

The shared depends invocation now inherits CONFIG_SHELL instead of clearing it, but the FreeBSD commit does not explain that change; separating the shared prerequisites would make their effect on existing jobs easier to review.

Location: ci/test/03_test_script.sh:94 at d618664aa97f (commit) (commit).

Details and suggested fix

In d618664aa97f60560a4d7a3d20d6185923268922, ci/test/03_test_script.sh removes CONFIG_SHELL= from non-Alpine depends builds while also introducing ${MAKE:-make}, free --human and uname -sr. The make selection and portable commands support FreeBSD, but removing the assignment also changes environment handling for existing jobs, and the commit message gives no rationale. Move these shared-script changes into an explained preparatory commit before the native FreeBSD enablement, following the PULL_FILTER extraction in 0b2861cb9c8d4f86cf3233b58aa4d0c5a4e8e5d2. Keep the FreeBSD-specific sysctl hw.physmem branch, environment file and VM job in the enablement commit. This preserves the final tree while letting reviewers assess the shared behavior independently.


Link

[suggestion] · FreeBSD bind/discovery tests lack explicit interface setup

The FreeBSD job can stay green while bind/discovery tests skip if the guest lacks their required addresses; this is a coverage suggestion, not a regression, and no skip was observed.

Location: .github/workflows/ci.yml:640 (head).

Details and suggested fix

Host mode bypasses the Docker path that assigns BIND_TEST_ROUTABLE_IPV4 and BIND_TEST_ROUTABLE_IPV6, and the VM job neither forwards those settings nor creates test aliases. feature_bind_port_discover.py defaults to 1.1.1.5 and 1111:1111::5; feature_bind_port_externalip.py defaults to 1.1.1.5. If binding fails because the address is unavailable, setup raises SkipTest before the relevant assertions, without failing the job. Before ./ci/test_run_all.sh, choose an up, non-loopback guest interface and add the aliases using the documented FreeBSD commands: ifconfig <iface> 1.1.1.5/32 alias and ifconfig <iface> inet6 1111:1111::5/128 alias. This would explicitly enable platform-specific discovery and port-selection coverage. The guest interfaces were not inspected, and the removed cross-compilation job ran no functional tests.


Coverage details

Earlier concerns

Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.

Background

Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.

Documented decisions

The Warp/GitHub cache-provider split was introduced for performance and fork compatibility, rather than as a documented separation between trusted and untrusted cache producers.

PR #35430 explains that GitHub cache operations could take minutes, that Warp's same-region cache should be faster, and that explicit switching was needed to retain GitHub caching on forks. The new FreeBSD job follows that existing provider-selection pattern; this history does not establish trust in the new VM producer.

Source 1 · Source 2