Skip to content

fix: include runner image version in macOS Octave cache key#337

Merged
blink1073 merged 1 commit into
Calysto:mainfrom
blink1073:fix-macos-install
May 30, 2026
Merged

fix: include runner image version in macOS Octave cache key#337
blink1073 merged 1 commit into
Calysto:mainfrom
blink1073:fix-macos-install

Conversation

@blink1073

Copy link
Copy Markdown
Contributor

References

Description

Fixes a recurring macOS CI failure where Octave crashes with exit code 134 due to a missing libevent dylib. The cached open-mpi was compiled against libevent_core-2.1.7.dylib from the runner image at cache-build time, but when the runner image updated libevent, that dylib was no longer present.

Changes

  • Include the runner image version ($ImageVersion) in the macOS Octave cache key (macos-brew-octave-<version>-image-<ImageVersion>), so the cache is automatically invalidated whenever the runner image changes and pre-installed brew dependency versions may have shifted.

Backwards-incompatible changes

None

Testing

The existing stale cache will be abandoned on the next run; a fresh brew install octave will build a new cache entry tied to the current image, and subsequent runs will restore a coherent set of libraries.

AI usage

  • Some or all of the content of this PR was generated by AI.
  • The human author has carefully reviewed this PR and run this code.
  • AI tools and models used: Claude (claude-sonnet-4-6)

The cache key was only keyed on the Octave version, but cached
dependencies like open-mpi link against pre-installed runner libs
(e.g. libevent). When the runner image updates those libs, the
cached packages break with dyld load errors (exit code 134).

Including ImageVersion in the cache key ensures the cache is
invalidated whenever the runner image changes.
@blink1073 blink1073 added the bug label May 30, 2026
@codecov

codecov Bot commented May 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.90%. Comparing base (7d7267a) to head (c25690f).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #337   +/-   ##
=======================================
  Coverage   92.90%   92.90%           
=======================================
  Files           6        6           
  Lines         437      437           
=======================================
  Hits          406      406           
  Misses         31       31           
Flag Coverage Δ
linux 92.67% <ø> (ø)
windows 92.90% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@blink1073 blink1073 merged commit 90180df into Calysto:main May 30, 2026
27 checks passed
@blink1073 blink1073 deleted the fix-macos-install branch May 30, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant