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

Fixed MacOS CI with no-debug flag only #469

Closed
wants to merge 2 commits into from

Conversation

okBrian
Copy link
Contributor

@okBrian okBrian commented Jun 12, 2024

Description

Fixed the MacOS CI specifically with the no-debug flag
Unsure whats wrong with the debug one

Fixes #444

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Scope

  • This PR comprises a set of related changes with a common goal

If you cannot check the above box, please split your PR into multiple PRs that each have a common goal.

How Has This Been Tested?

  • check if MacOS --no-debug would build w/o my lines
  • check if MacOS --no-debug would build with my lines

Test Configuration:

GitHub Runners

Checklist

  • I ran ./mfc.sh format before committing my code
  • This PR does not introduce any repeated code (it follows the DRY principle)
  • I cannot think of a way to condense this code and reduce any introduced additional line count

@sbryngelson
Copy link
Member

hmm. do you want to prepend the existing paths instead of replacing them?

	export CPATH=/opt/homebrew/include
	export LIBRARY_PATH=/opt/homebrew/lib

to
export CPATH="/opt/homebrew/include":$CPATH

This might fix the debug issue.

(I may be messing up the exact syntax).

@sbryngelson
Copy link
Member

@okBrian okBrian marked this pull request as draft June 12, 2024 19:03
@okBrian
Copy link
Contributor Author

okBrian commented Jun 12, 2024

I did some more experimentation here's what I figured out.

  • mpich is not the issue
  • gcc 13.3 doesn't build with my changes at all
  • gcc 14 builds correctly with my changes but requires the pre-release: 20240611.1 MacOS image
    • There is no current support in changing or choosing a pre-release image
  • gcc 14 doesn't build w/o my changes
  • brew auto links libraries with brew link and unlink so its unlikely that's the cause

Heres the branch I tested everything on https://github.com/okBrian/MFC/tree/mac

So I think the best course of action here is to merge these changes and wait for the next release of MacOS images (20240611.1) to release and the MacOS CI should be fixed.

@sbryngelson
Copy link
Member

sbryngelson commented Jun 12, 2024

I did some more experimentation here's what I figured out.

  • mpich is not the issue

  • gcc 13.3 doesn't build with my changes at all

  • gcc 14 builds correctly with my changes but requires the pre-release: 20240611.1 MacOS image

    • There is no current support in changing or choosing a pre-release image
  • gcc 14 doesn't build w/o my changes

  • brew auto links libraries with brew link and unlink so its unlikely that's the cause
    Heres the branch I tested everything on okBrian/MFC@mac

This is all very believable to me. I guess this is a draft PR to be merged when the MacOS runner is updated? Do we have an approximate known date for that? What about --debug? Are we able to manually specify a pre-release MacOS image?

@okBrian
Copy link
Contributor Author

okBrian commented Jun 12, 2024

--debug and no-debug have no affect on the results since --no-debug worked on my actions and debug worked on this repo. I also tested this in my mac branch. The only difference between the test that failed and passed I could find was the MacOS Image.

@sbryngelson
Copy link
Member

Understood. Do we have timeline for new MacOS image or how to specify it?

@okBrian
Copy link
Contributor Author

okBrian commented Jun 12, 2024

From what I searched you can't switch to a pre-release image specifically. For the release data/timeline I'll make a post here https://github.com/actions/runner-images/discussions since I can't find it anywhere.

Copy link

codecov bot commented Jun 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.91%. Comparing base (596ef8b) to head (7916e18).

Current head 7916e18 differs from pull request most recent head da313e0

Please upload reports for the commit da313e0 to get more accurate results.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #469   +/-   ##
=======================================
  Coverage   57.91%   57.91%           
=======================================
  Files          55       55           
  Lines       14230    14230           
  Branches     1854     1854           
=======================================
  Hits         8242     8242           
  Misses       5452     5452           
  Partials      536      536           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@okBrian
Copy link
Contributor Author

okBrian commented Jun 12, 2024

Before I asked in discussion I just read a bit more in their README.
"Usually, image deployment takes 2-3 days, and documentation in the main branch is only updated when deployment is finished."
The 20240611.1 has the tag "Deploying" in their README so I think in 2-3 days it should be up and running over the previous image.

@okBrian
Copy link
Contributor Author

okBrian commented Jun 13, 2024

Hey, the MacOS Image is fully deployed so assuming the test pass this should be it.
Seen here - https://github.com/actions/runner-images/blob/main/README.md

@okBrian okBrian closed this Jun 13, 2024
@okBrian okBrian deleted the MacOSFInal branch June 17, 2024 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

FFTW Broken on MacOS runner CI
2 participants