Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with GitHub Actions macos-latest (macos-14) runner #33

Closed
sm00thix opened this issue Jun 28, 2024 · 2 comments
Closed

Issues with GitHub Actions macos-latest (macos-14) runner #33

sm00thix opened this issue Jun 28, 2024 · 2 comments

Comments

@sm00thix
Copy link
Owner

Hi @parmentelat,

I noticed some strange issue and I would like to get your input as to how to address it.

In relation to my #24 (comment) I decided to also upgrade the macos runners from macos-12 to macos-latest for testing GitHub actions.

Annoyingly, testing with macos-latest (macos-14) using GitHub actions causes the test test_sanity_check_pls_regression_constant_column_Y to fail as evident by this run. The errors are not present on the previous version of the macos runner - i.e., macos-12 (macos-13 runners do not exist unless you are enterprise) as evident by this run. The errors are also not present on any of ubuntu-latest and windows-latest. I have a Mac of my own, running macos 14, where I am unable to reproduce the error, and the test passes as it should.

I only have two plausible explanations for this and I am unable to verify either:

  1. The macos-14 runners are running on arm64 processors whereas the macos-12 runners are running on x64 processors. My own Mac is also running on an x64 processor. Is this some freaky edge case where the different processors cause different behavior?
  2. The macos-14 runners may simply be faulty. I have had issues with them previously when they were newer (they are still only a few months old).

Should I write something about this somewhere or just assume that it's an error with the runner? What is best practice here?

sm00thix added a commit that referenced this issue Jul 7, 2024
@sm00thix
Copy link
Owner Author

sm00thix commented Jul 7, 2024

The issue seems to be related to the comparison between 0 and the standard deviation of X and/or Y. If 0, the standard deviation should be changed to 1. This was done using a check like std==0 using exact comparison. In general, this is not recommended for floats due to finite precision. Indeed, the finite precision was the cause of the issue mentioned in #33 (comment). Instead we are now checking if abs(std) <= epsilon comparing std to the machine epsilon for the input dtype. f1a60ea contains the updated code with the fixes and changes the GitHub Actions tests to run on macos-latest again instead of macos-12.

Thanks to @calex22 for helping resolve this!

@sm00thix
Copy link
Owner Author

sm00thix commented Jul 7, 2024

The fixes are merged to main as of 0ddea86. Closing this issue.

@sm00thix sm00thix closed this as completed Jul 7, 2024
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

No branches or pull requests

1 participant