ci: add native freeBSD ci job

bitcoin/bitcoin: PR #36147

2 suggestions

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

Optional improvements

Link

[suggestion] · VM cache retrieval runs even when saving is disabled

Successful pull-request runs and non-default-branch pushes copy four cache directories out of the VM even though the following cache action skips every save.

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

Details and suggested fix

Retrieve VM caches runs rsync for $CCACHE_DIR, $SOURCES_PATH, $BASE_CACHE, and $PREVIOUS_RELEASES_DIR. The only subsequent consumer is Save caches, whose actual saves in .github/actions/cache/save/action.yml all require github.event_name == 'push' && github.ref_name == github.event.repository.default_branch. Apply that same condition to retrieval. This preserves what gets saved while avoiding unnecessary directory traversal and changed-file transfers on other runs. The time saved depends on cache sizes and how much rsync transfers; it has not been measured.


Link

[suggestion] · The FreeBSD job omits the bind-port tests' address setup

The new FreeBSD coverage likely skips feature_bind_port_discover.py and feature_bind_port_externalip.py because their routable addresses are not configured; these skips are inferred from source, not observed in a VM run.

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

Details and suggested fix

DANGER_RUN_CI_ON_HOST=1 bypasses Docker's address setup, and the workflow neither forwards BIND_TEST_ROUTABLE_IPV4/BIND_TEST_ROUTABLE_IPV6 nor assigns interface aliases. Both selected tests default to 1.1.1.5, with discovery also requiring 1111:1111::5. If startup reports Unable to bind to, they raise SkipTest before reaching their address and port assertions. The runner reports these as skipped without failing the job. The VM's default interface addresses were not inspected. Before ./ci/test_run_all.sh, configure ifconfig <iface> 1.1.1.5/32 alias and ifconfig <iface> inet6 1111:1111::5/128 alias on an up, non-loopback interface selected at runtime, as documented in the test headers. Put this setup in the CI-script step rather than cached prepare. The removed cross job ran no functional tests, so this completes new coverage rather than restores lost coverage.


Coverage details

Earlier concerns

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