ci: add native freeBSD ci job

bitcoin/bitcoin: PR #36147

1 major finding · 1 minor finding · 3 suggestions

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

Findings

Link

[major] · ci-matrix is disabled, not just FreeBSD Cross

The temporary workflow change removes all 17 non-FreeBSD matrix configurations, including sanitizer, analysis, architecture and cross-build coverage that the native FreeBSD job does not replace.

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

Details and suggested fix

The whole ci-matrix definition and its steps are commented out. This prevents the sanitizer, fuzz, tidy/IWYU, architecture and other matrix configurations from running, including the NetBSD and OpenBSD cross builds that the description says will remain. The new bsd job only runs FreeBSD. Drop 48d6860e0a96242f8e7aece48cf7a05635681087 (NOMERGE: disable other jobs) before merging, leaving ci-matrix active with only its FreeBSD Cross entry removed. The commit's temporary purpose explains the change, but the coverage loss remains present at this head.


Link

[minor] · Temporary FreeBSD trials still multiply ordinary CI work

The temporary trial matrix schedules 20 identical FreeBSD jobs for each eligible push or PR, multiplying runner demand and diagnostic artifacts without adding configuration coverage.

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

Details and suggested fix

The single FreeBSD include entry augments every value in trial, and fail-fast: false keeps the other trials eligible after a failure. Each job has a 120-minute limit and retains VM debug mode, LogLevel DEBUG3, guest log collection and a seven-day artifact upload. These are useful robustness-investigation settings, but they remain enabled for ordinary CI. Drop the temporary trial commit a6f83bba28c48803ea620787b552b42ad6d8466d and diagnostics commit 86c54ce33cadd25033286d8e7807ee484bb712b8 before merging, restoring one FreeBSD job.


Optional improvements

Link

[suggestion] · envs omits the workflow's failfast diagnostic setting

Guest propagation of CI_FAILFAST_TEST_LEAVE_DANGLING is unverified; explicitly forwarding it would preserve the workflow's chosen failfast diagnostic behavior without relying on implicit forwarding.

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

Details and suggested fix

The workflow sets CI_FAILFAST_TEST_LEAVE_DANGLING: 1, but the VM's explicit envs list omits it. The host-mode wrapper inherits the guest environment and supplies no fallback value. If the setting is absent, a failed functional test with other tests still running reaches os.killpg(..., SIGKILL), killing the runner and its process group before buffered stdout is guaranteed to flush. Add CI_FAILFAST_TEST_LEAVE_DANGLING to envs alongside the other forwarded CI settings.


Link

[suggestion] · copyback does unnecessary work on PR runs

PR runs pay the reported VM copy-back overhead although cache saves require default-branch pushes; whether the reported transfer failures made jobs fail is unconfirmed.

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

Details and suggested fix

The copied-back workspace feeds Save caches, but every save in .github/actions/cache/save/action.yml requires a push to the default branch. The diagnostic artifacts already live on the host through tee and plain ssh, so they do not need this sync. Commit 86c54ce33cadd25033286d8e7807ee484bb712b8 reports three copy-back transfers closing unexpectedly after their tests passed. Set copyback: ${{ github.event_name == 'push' && github.ref_name == github.event.repository.default_branch }} to avoid this transfer on PRs while retaining default-branch cache population. The tracked libmultiprocess workflow already disables copyback with the same action; the external action's precise transfer timing and exit-status handling were not inspected.


Link

[suggestion] · cc83aa46 bundles a cross-job depends change with the FreeBSD switch

cc83aa46 also removes CONFIG_SHELL= for every non-Alpine depends build, making a cross-job behavior change harder to review independently of the VM introduction.

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

Details and suggested fix

cc83aa46b44447f62b119c9443902fc5123b660b introduces the native FreeBSD job, replaces its environment file and removes the SDK download. It also changes shared 03_test_script.sh behavior: it drops the empty CONFIG_SHELL= override, adds ${MAKE:-make} and adjusts the system-information commands. Move those shared edits into a preparatory commit before the job switch, with a message explaining why clearing CONFIG_SHELL is no longer needed. They can stand alone because the FreeBSD branch is guarded and MAKE defaults to make. This would separate validation of the shared behavior from the VM setup, following the preparatory role already served by d6cb9138b824a64785bfb13bd62db0e3c764fedd for the PULL_FILTER extraction, without changing the final tree.


Coverage details

Earlier concerns

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