ci: add native freeBSD ci job

bitcoin/bitcoin: PR #36147

1 major finding · 3 suggestions

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

Findings

Link

[major] · The remaining NOMERGE commit disables existing CI and schedules 25 FreeBSD trials

At the submitted head, the explicitly temporary NOMERGE commit disables every pre-existing job in ci.yml and expands the FreeBSD job into 25 identical trials.

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

Details and suggested fix

The unconditional if: false guards skip lint, ancestor testing, macOS, Windows and the entire ci-matrix, including the retained NetBSD and OpenBSD cross-build entries. The enabled bsd job has a 25-value trial axis used only in its display name, so each eligible workflow run schedules 25 equivalent VM jobs with individual 120-minute timeouts. Drop 0717a4b02c5b13d7bd45bed84cae2dae0114c144 before merge. Its patch contains all these temporary controls; removing it restores the original job conditions and a single FreeBSD matrix entry.


Optional improvements

Link

[suggestion] · The prepared-image epoch comment names inputs the hash omits

The comment promises prepared-image refreshes for shared CI or depends changes, but the explicit epoch hashes only the native BSD environment files.

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

Details and suggested fix

hashFiles('ci/test/00_setup_env_*bsd_native.sh') does not change when 00_setup_env.sh, 01_base_install.sh or depends/ changes. The separate DEPENDS_HASH keys the build caches and does not appear in the VM preparation input. Describe this epoch as derived from the native BSD environment files, which contain the package lists. Keep the echo: if the action keys on preparation text, it makes environment-file contents affect that key. The action's complete key and refresh rules were not inspected, so this establishes a misleading comment, not stale package versions.


Link

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

Every successful pull-request run performs cache-retrieval rsync work even though the save action never stores those results.

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

Details and suggested fix

Retrieve VM caches processes $CCACHE_DIR, $SOURCES_PATH, $BASE_CACHE and $PREVIOUS_RELEASES_DIR after every successful test run. All four saves require github.event_name == 'push' && github.ref_name == github.event.repository.default_branch, and the last three also skip exact cache hits. Apply the same event condition to retrieval and omit those three directories when their exported cache-hit flags are true. No later step otherwise consumes the retrieved contents, so this avoids unnecessary traversal and any changed-file transfers without changing what gets saved.


Link

[suggestion] · Shared 03_test_script.sh changes are bundled with the FreeBSD job replacement

The FreeBSD job commit also changes existing non-Alpine depends environments, making those shared changes harder to review and validate independently.

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

Details and suggested fix

ff29b11fead838c27f09977ced889d1f39b5a88a replaces the FreeBSD job but also drops the explicit empty CONFIG_SHELL assignment, introduces ${MAKE:-make}, and changes the shared free/uname calls. Compared with its direct parent d6cb9138b824a64785bfb13bd62db0e3c764fedd, these affect the shared script rather than only the new runner. Extract the 03_test_script.sh portability changes into an explained preparatory commit between that parent and the job replacement, including why CONFIG_SHELL= is removed. This separates validation of existing jobs from VM setup without changing the final tree: ${MAKE:-make} retains the existing fallback, and the FreeBSD-specific branch remains inactive until the new job is introduced.


Coverage details

Earlier concerns

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