Skip to content

Fix macOS-15-intel CI failures: h5py and opencv-python regressions#1783

Merged
CodyCBakerPhD merged 2 commits intomasterfrom
bf-tests2
Jan 30, 2026
Merged

Fix macOS-15-intel CI failures: h5py and opencv-python regressions#1783
CodyCBakerPhD merged 2 commits intomasterfrom
bf-tests2

Conversation

@yarikoptic
Copy link
Member

Summary

Fixes two separate CI regression issues affecting macOS-15-intel runners starting January 19, 2026:

  1. h5py constraint issue (from Revert "Demand prior releases of h5py for OSX on non-arm" #1780) - Removes incorrect h5py<3.15 constraint
  2. opencv-python regression - Pins opencv-python<4.13 for Intel macOS due to VideoWriter bug

h5py Issue

Reverts the constraint added in cd5fbb0 which restricted h5py to versions <3.15 on Intel macOS based on the assumption that "no whls [were] built any longer".

However, h5py 3.15.0 (released Oct 13, 2025) and 3.15.1 (released Oct 16, 2025) both include pre-built wheels for Intel macOS (x86_64) for all supported Python versions (3.10-3.14).

The overly restrictive constraint caused compatibility issues when the macos-15-intel GitHub Actions runner image was updated (version 20260120.0127.1). The same commit (ccdb659) passed on Jan 18 but failed on Jan 19, indicating an environmental incompatibility with old h5py versions on the new runner.

opencv-python Issue

opencv-python 4.13.0.90 was released on PyPI on January 18, 2026 and introduced a regression in cv2.VideoWriter functionality on Intel macOS.

The VideoWriter.write() method fails silently - files are not created, causing all video_organize tests to fail with FileNotFoundError:

  • test_video_organize[*] (8 variations)
  • test_video_organize_common[copy-0]

Evidence from tinuous logs:

  • Jan 18, 2026 (passing): opencv-python 4.12.0.88
  • Jan 19, 2026+ (failing): opencv-python 4.13.0.90
  • Same commit (ccdb659), same runner image (macos-15/20260112.0116)
  • Only affects macos-15-intel platform
  • All 9 test failures are in video organization tests
  • Error: test video files created by cv2.VideoWriter fixture don't exist

The constraint is platform-specific (Intel macOS only) to allow:

  • ARM macOS: use latest opencv-python
  • Linux/Windows: use latest opencv-python
  • Intel macOS: pin to 4.12.x until upstream fix

Upstream tracking: https://github.com/opencv/opencv-python/releases

Test Results

Expected to fix all macos-15-intel CI failures that started appearing on January 19, 2026.

Fixes failing CI build #21127100740 and subsequent runs.

yarikoptic and others added 2 commits January 30, 2026 08:47
This reverts commit cd5fbb0.

This reverts the constraint added in cd5fbb0 which restricted h5py to
versions <3.15 on Intel macOS based on the assumption that "no whls
[were] built any longer".

However, h5py 3.15.0 (released Oct 13, 2025) and 3.15.1 (released Oct
16, 2025) both include pre-built wheels for Intel macOS (x86_64) for all
supported Python versions (3.10-3.14).

The overly restrictive constraint caused CI test failures starting
Jan 19, 2026 when the macos-15-intel GitHub Actions runner image was
updated (version 20260120.0127.1). The same commit (ccdb659) passed on
Jan 18 but failed on Jan 19, indicating an environmental incompatibility
with the old h5py versions on the new runner.

Fixes failing CI build #21127100740 (macos-15-intel CI failures)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
opencv-python 4.13.0.90 was released on PyPI on January 18, 2026 and
introduced a regression in cv2.VideoWriter functionality on Intel macOS.

The VideoWriter.write() method fails silently - files are not created,
causing all video_organize tests to fail with FileNotFoundError:
- test_video_organize[*] (8 variations)
- test_video_organize_common[copy-0]

Evidence:
- Jan 18, 2026 (passing): opencv-python 4.12.0.88
- Jan 19, 2026+ (failing): opencv-python 4.13.0.90
- Same commit (ccdb659), same runner image (macos-15/20260112.0116)
- Only affects macos-15-intel platform
- All 9 test failures are in video organization tests
- Error: test video files created by cv2.VideoWriter fixture don't exist

The constraint is platform-specific (Intel macOS only) to allow:
- ARM macOS: use latest opencv-python
- Linux/Windows: use latest opencv-python
- Intel macOS: pin to 4.12.x until upstream fix

Upstream tracking: https://github.com/opencv/opencv-python/releases

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@yarikoptic yarikoptic added the patch Increment the patch version when merged label Jan 30, 2026
@codecov
Copy link

codecov bot commented Jan 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.11%. Comparing base (90e0054) to head (7871a98).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1783   +/-   ##
=======================================
  Coverage   75.10%   75.11%           
=======================================
  Files          84       84           
  Lines       11921    11921           
=======================================
+ Hits         8953     8954    +1     
+ Misses       2968     2967    -1     
Flag Coverage Δ
unittests 75.11% <ø> (+<0.01%) ⬆️

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

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

@CodyCBakerPhD
Copy link
Contributor

Any idea what actual underlying issue with OpenCV is?

@CodyCBakerPhD CodyCBakerPhD merged commit a3dd9f9 into master Jan 30, 2026
38 of 39 checks passed
@CodyCBakerPhD CodyCBakerPhD deleted the bf-tests2 branch January 30, 2026 14:21
@CodyCBakerPhD CodyCBakerPhD added the dependencies Update one or more dependencies version label Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Update one or more dependencies version patch Increment the patch version when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants