Skip to content

ci: fix Julia 1.6 failure on macOS-latest (ARM64)#61

Open
amemya wants to merge 3 commits intoJuliaAudio:masterfrom
amemya:ci/fix-macos-1.6-workflow
Open

ci: fix Julia 1.6 failure on macOS-latest (ARM64)#61
amemya wants to merge 3 commits intoJuliaAudio:masterfrom
amemya:ci/fix-macos-1.6-workflow

Conversation

@amemya
Copy link
Contributor

@amemya amemya commented Feb 2, 2026

Fixes #60

Summary

Fixes the CI failure where the macos-latest runner (now ARM64) attempts to run Julia 1.6.

Since Julia 1.6 does not provide official binaries for macOS ARM64, this PR updates the workflow matrix to exclude the combination of Julia 1.6 and macOS-latest.

Changes

  • Update .github/workflows/tests.yml:
    • Exclude version: 1.6 on os: macOS-latest to avoid architecture mismatch.
    • Ensure arch is correctly passed to setup-julia.

Copilot AI review requested due to automatic review settings February 2, 2026 04:35
@codecov
Copy link

codecov bot commented Feb 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.83%. Comparing base (7796b2d) to head (ac92377).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #61      +/-   ##
==========================================
+ Coverage   91.58%   91.83%   +0.25%     
==========================================
  Files           6        6              
  Lines         202      196       -6     
==========================================
- Hits          185      180       -5     
+ Misses         17       16       -1     

☔ 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.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a CI failure where Julia 1.6 tests were failing on macOS-latest runners, which now use ARM64 architecture. Julia 1.6 does not provide official binaries for macOS ARM64, causing the test failures.

Changes:

  • Adds matrix exclusions to prevent Julia 1.6 from running on macOS-latest and to exclude x86 architecture on macOS-latest
  • Updates GitHub Actions to newer versions (checkout@v4, setup-julia@v2, codecov@v5)
  • Adds explicit arch parameter to setup-julia configuration and updates codecov parameter from file to files

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +32 to +33
- version: '1.6'
os: macOS-latest
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This exclusion completely removes Julia 1.6 testing from macOS. According to the issue description, Julia 1.6 supports x86_64 on macOS - it just doesn't support ARM64.

Consider using an Intel-based macOS runner (like macos-13) for Julia 1.6 instead of excluding it entirely. This would maintain test coverage for Julia 1.6 on macOS while avoiding the ARM64 compatibility issue. For example, you could add macos-13 to the os matrix and use an include to specifically pair Julia 1.6 with macos-13.

Copilot uses AI. Check for mistakes.
@amemya
Copy link
Contributor Author

amemya commented Feb 2, 2026

It seems the CI is failing only on 32-bit (x86).

This is caused by a type mismatch: on x86, the offset is passed as an Int32, but the sf_seek function in src/sourcesink.jl requires an Int64.
This results in a MethodError because no matching method is found for Int32.

I will fix this by explicitly casting the offset to Int64.

@amemya
Copy link
Contributor Author

amemya commented Feb 2, 2026

I looked into why the 32-bit tests suddenly started failing.
Checking the previous CI logs, it seems the "x86" job was actually running on x64 before (due to the missing arch input in the workflow), so this issue was hidden until now.

@amemya
Copy link
Contributor Author

amemya commented Feb 3, 2026

okay, all ci tests passed.
awaiting review by other maintainers.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


function _seek(source::SndFileSource, offset::Integer, whence::Integer)
new_offset = sf_seek(source.filePtr, offset, whence)
new_offset = sf_seek(source.filePtr, sf_count_t(offset), whence)
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change to add an explicit sf_count_t() type conversion in _seek is not mentioned in the PR description and appears unrelated to fixing the CI failure on macOS ARM64. The PR title and description focus exclusively on fixing the Julia 1.6 macOS CI issue.

If this is a separate bug fix or improvement (possibly related to type stability or compatibility), it should either be:

  1. Mentioned in the PR description and explained, or
  2. Moved to a separate PR

This helps maintain clear, focused changes and makes it easier to track what was changed and why.

Copilot uses AI. Check for mistakes.
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.

CI failure: Julia 1.6 tests failing on macOS-latest (ARM64 runner)

1 participant