Skip to content

Fix CI: Coveralls on macOS, hypothesis on PyPy 3.10, SocketCAN setup on Ubuntu 26.04 - #2114

Open
TheTrueAI wants to merge 2 commits into
hardbyte:mainfrom
TheTrueAI:ci/fix-macos-coveralls-pypy310
Open

TheTrueAI wants to merge 2 commits into
hardbyte:mainfrom
TheTrueAI:ci/fix-macos-coveralls-pypy310

Conversation

@TheTrueAI

Copy link
Copy Markdown
Contributor

Summary of Changes

The Tests workflow currently fails on every PR for three reasons unrelated to the PR's code. This fixes all three. CI and test dependencies only, no library changes.

  • macOS, Coveralls step: bump coverallsapp/github-action from 2.3.7 to 2.3.8, still pinned by commit SHA. 2.3.7 runs brew tap and then brew install coveralls, which Homebrew 6 refuses:
    ##[error]Refusing to load formula coverallsapp/coveralls/coveralls from untrusted tap coverallsapp/coveralls.
    
    2.3.8 installs the fully qualified formula instead (Fix macOS install for Homebrew 6.0.0 tap trust requirement coverallsapp/github-action#265).
  • pypy310, dependency install: cap hypothesis<6.156 for PyPy < 3.11 only. Starting with 6.156.1, hypothesis ships a Rust extension built with PyO3 0.29 and has no PyPy 3.10 wheels, so uv builds the sdist, which fails:
    × Failed to build `hypothesis==6.167.1`
    error: the configured PyPy interpreter version (3.10) is lower than PyO3's minimum supported version (3.11)
    
    6.155.7 is the last pure-Python release. Every other interpreter still gets hypothesis==6.*.
  • Ubuntu, Setup SocketCAN: ubuntu-latest now runs Ubuntu 26.04, which has no linux-modules-extra package for the running kernel. vcan is part of linux-modules there:
    E: Unable to locate package linux-modules-extra-7.0.0-1017-azure
    
    The step now runs apt-get update and installs linux-modules-extra only when modinfo vcan fails, so it keeps working on 24.04.

Related Issues / Pull Requests

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactoring
  • Other (please describe): CI and test dependency fix

Checklist

Additional Notes

  • Locally, tox -e pypy310 installs the dependencies again (hypothesis 6.155.7).
  • The alternative to the hypothesis cap is to drop pypy310 from the matrix. I left that decision to you.

- coverallsapp/github-action 2.3.8 installs the coveralls formula by its
  fully-qualified name, which Homebrew 6 requires for untrusted taps.
  2.3.7 fails on macOS with "Refusing to load formula
  coverallsapp/coveralls/coveralls from untrusted tap".
- hypothesis>=6.156 ships a Rust extension built with pyo3 0.29, which
  does not support PyPy < 3.11, and there are no pp310 wheels. Keep
  PyPy 3.10 on the last pure-Python release.
ubuntu-latest now runs Ubuntu 26.04, where the vcan module is part of
linux-modules and there is no linux-modules-extra package:

  E: Unable to locate package linux-modules-extra-7.0.0-1017-azure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant