Skip to content

Install Rust in FreeBSD CI so hypothesis can build from source - #207

Merged
SethMMorton merged 1 commit into
SethMMorton:mainfrom
MbappeWU:fix-freebsd-ci
Oct 16, 2026
Merged

SethMMorton merged 1 commit into
SethMMorton:mainfrom
MbappeWU:fix-freebsd-ci

Conversation

@MbappeWU

Copy link
Copy Markdown
Contributor

Problem

The "Test on FreeBSD" job in the Tests workflow has been failing on main (e.g. https://github.com/SethMMorton/natsort/actions/runs/35458022900/job/105936667289) while installing the test dependencies, before any test runs.

Root cause

Recent hypothesis releases do not publish a wheel for FreeBSD, so pip install hypothesis inside the FreeBSD VM falls back to building from the sdist. That build needs a Rust toolchain (it is built with maturin), and the VM is only prepared with pkg install -y python3, so the build fails.

Change

Install rust alongside python3 in the prepare step of the FreeBSD job:

-            pkg install -y python3
+            pkg install -y python3 rust

No other files are touched.

Verification

I ran the workflow on my fork with this change:

The Code Quality / "Static Analysis" job also fails on my fork run, but it fails identically on main (ruff errors tracked in #200) and is unrelated to this change.

Fixes #201


This change was prepared with the help of Cursor CLI (AI-assisted); I reviewed the diff and the CI logs myself before opening the PR.

Co-authored-by: Cursor <cursoragent@cursor.com>
@codecov

codecov Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.80%. Comparing base (607eeee) to head (380f5a7).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #207   +/-   ##
=======================================
  Coverage   97.80%   97.80%           
=======================================
  Files          10       10           
  Lines         637      637           
=======================================
  Hits          623      623           
  Misses         14       14           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SethMMorton
SethMMorton merged commit feff8cd into SethMMorton:main Oct 16, 2026
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failure in GitHub actions for FreeBSD testing

2 participants