Skip to content

Fix CI: update Meson, macOS runner, and migrate to meson-python#161

Merged
awvwgk merged 6 commits intomainfrom
copilot/fix-ci-workflow-issues
Feb 6, 2026
Merged

Fix CI: update Meson, macOS runner, and migrate to meson-python#161
awvwgk merged 6 commits intomainfrom
copilot/fix-ci-workflow-issues

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 5, 2026

CI fails with RuntimeError: There is no current event loop in thread 'MainThread' because Meson 0.58.0 uses deprecated asyncio.get_event_loop() which throws in Python 3.14.

Changes

  • Update assets/ci/build-env.yaml to require meson >=1.2.3,!=1.8.0
    • 1.2.3+ contains the asyncio compatibility fix
    • Excludes 1.8.0 consistent with python-env.yaml
  • Update macOS workflow since macos-13 runner is retired:
    • Change runner from macos-13 to macos-14
    • Update GCC version from 10 to 12 (gcc@10 unavailable as bottle on macOS 14)
    • Update Homebrew paths from /usr/local/bin to /opt/homebrew/bin (Apple Silicon)
  • Replace deprecated setuptools-based build with meson-python for Python build:
    • Rename python/mesonpep517.toml to python/pyproject.toml
    • Remove python/setup.py and python/setup.cfg
    • Keep setuptools as a required dependency in dftd3/meson.build and pyproject.toml
    • Update wheel.yml to remove obsolete mesonpep517 rename step
    • Add meson-python and ninja to python-env.yaml
    • Update build.yml to use meson-python with --no-build-isolation
  • Update wheel.yml to use macos-14 instead of retired macos-13 for ARM64 wheel builds
Original prompt

This section details on the original issue you should resolve

<issue_title>GitHub actions for testing build is broken</issue_title>
<issue_description>Currently the build via the CI workflow is broken (https://github.com/dftd3/simple-dftd3/actions/runs/20005011041)</issue_description>

<agent_instructions>Update the CI workflow to fix any issues from missing dependencies or incomplete compiler setup</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: awvwgk <28669218+awvwgk@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix broken GitHub actions for CI build Fix CI: update Meson for Python 3.14 compatibility Feb 5, 2026
Copilot AI requested a review from awvwgk February 5, 2026 16:48
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.34%. Comparing base (86dcf33) to head (9da0fff).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #161   +/-   ##
=======================================
  Coverage   66.34%   66.34%           
=======================================
  Files          33       33           
  Lines        4627     4627           
  Branches     1608     1608           
=======================================
  Hits         3070     3070           
  Misses        637      637           
  Partials      920      920           

☔ View full report in Codecov by Sentry.
📢 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.

@awvwgk
Copy link
Copy Markdown
Member

awvwgk commented Feb 5, 2026

@copilot Update the macOS workflow since the macos-13 runner is retired

Co-authored-by: awvwgk <28669218+awvwgk@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Feb 5, 2026

@copilot Update the macOS workflow since the macos-13 runner is retired

Updated in d391ffa. Changes:

  • macos-13macos-14
  • GCC version 10 → 12 (gcc@10 unavailable as bottle on macOS 14)
  • Homebrew paths /usr/local/bin/opt/homebrew/bin (Apple Silicon)

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • formulae.brew.sh
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title Fix CI: update Meson for Python 3.14 compatibility Fix CI: update Meson and macOS runner for compatibility Feb 5, 2026
@awvwgk awvwgk marked this pull request as ready for review February 5, 2026 17:27
@awvwgk
Copy link
Copy Markdown
Member

awvwgk commented Feb 6, 2026

@copilot The Python build with setuptools is broken. Deprecate and remove the setuptools based build and replace it with meson-python (see python/mesonpep517.toml file as used in the wheel build workflow).

Co-authored-by: awvwgk <28669218+awvwgk@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Feb 6, 2026

@copilot The Python build with setuptools is broken. Deprecate and remove the setuptools based build and replace it with meson-python (see python/mesonpep517.toml file as used in the wheel build workf...

Replaced setuptools with meson-python in 3b19140:

  • Renamed mesonpep517.tomlpyproject.toml
  • Removed setup.py and setup.cfg
  • Updated dftd3/meson.build to remove setuptools dependency
  • Updated wheel.yml to remove obsolete mesonpep517 rename step
  • Added meson-python and ninja to python-env.yaml
  • Updated build.yml to use --no-build-isolation with meson-python

Copilot AI changed the title Fix CI: update Meson and macOS runner for compatibility Fix CI: update Meson, macOS runner, and migrate to meson-python Feb 6, 2026
Comment thread python/dftd3/meson.build
Co-authored-by: awvwgk <28669218+awvwgk@users.noreply.github.com>
Copilot AI requested a review from awvwgk February 6, 2026 08:45
@awvwgk
Copy link
Copy Markdown
Member

awvwgk commented Feb 6, 2026

@copilot Also update the wheel workflow to use a newer version of the macos runner

Co-authored-by: awvwgk <28669218+awvwgk@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Feb 6, 2026

@copilot Also update the wheel workflow to use a newer version of the macos runner

Updated in 9da0fff. Replaced retired macos-13 with macos-14 and simplified the macOS wheel build configuration for ARM64-only builds.

@awvwgk awvwgk merged commit 97fc056 into main Feb 6, 2026
48 checks passed
@awvwgk awvwgk deleted the copilot/fix-ci-workflow-issues branch February 6, 2026 13:45
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.

GitHub actions for testing build is broken

2 participants