Skip to content

fix(ci): install pyarrow in the benchmarks workflow - #4006

Merged
quaquel merged 2 commits into
mesa:mainfrom
dietcoke-17:fix/benchmarks-install-pyarrow
Oct 28, 2026
Merged

quaquel merged 2 commits into
mesa:mainfrom
dietcoke-17:fix/benchmarks-install-pyarrow

Conversation

@dietcoke-17

Copy link
Copy Markdown
Contributor

Pre-PR Checklist

  • This PR is a bug fix, not a new feature or enhancement.

Summary

The "Performance benchmarks" workflow fails at import time on every PR, so no benchmark comparison is produced. This adds the missing pyarrow to the workflow's install step.

Bug / Issue

Since #3771 (DiskStore) merged, import mesa requires pyarrow (a core dependency, imported unconditionally via mesa/model.py -> mesa/experimental/scenarios/__init__.py -> disk_store.py). .github/workflows/benchmarks.yml installs its dependencies by hand and then runs pip install --no-deps ., so pyarrow is never installed and global_benchmark.py fails with:

ModuleNotFoundError: No module named 'pyarrow'

Implementation

Add pyarrow to the uv pip install --system ... line in .github/workflows/benchmarks.yml. Nothing else changes. Both the "main" and PR benchmark runs share that environment, so one change fixes both.

Testing

  • Reproduced on a clean checkout of main without pyarrow: same traceback as the CI log.
  • With pyarrow installed, from configurations import configurations in benchmarks/ imports all 6 models.
  • This PR's own benchmark run should confirm the fix end to end, since it uses the workflow file from this branch.

Additional Notes

Alternative: make the pyarrow import in disk_store.py lazy so import mesa doesn't need it. I kept this PR minimal because pyarrow is now a declared core dependency.

@github-actions github-actions Bot added the ci Release notes label label Oct 27, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-27T20:46:03.816041Z 40d94f6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@quaquel
quaquel merged commit 4db6142 into mesa:main Oct 28, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Release notes label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants