-
Notifications
You must be signed in to change notification settings - Fork 161
Add comprehensive macOS testing to PR workflow #4857
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
Open
F-WRunTime
wants to merge
10
commits into
develop
Choose a base branch
from
feature/pr-macos-testing
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- During release do not be dependent on MacOS Release
- Change from installing specific bottle filename to using wildcard pattern - Add debugging output to see available files - Use pattern matching like the original brew-install-bottle script - This should resolve the 'No formulae or casks found' error The issue was that brew install was trying to interpret the .tar.gz filename as a formula name instead of installing the local bottle file.
- Add test-macos-build job to catch macOS build issues during PR testing - Mirror release workflow's macOS package building and testing logic - Update all LLVM version references from 15 to 17 for consistency - Prevent macOS build failures from only being discovered during release This addresses the macOS build failure in the release workflow by adding proactive testing in the PR workflow, ensuring issues are caught earlier in the development cycle.
- Add test-macos-build job to catch macOS build issues during PR testing - Mirror release workflow's macOS package building and testing logic - Prevent macOS build failures from only being discovered during release This addresses the macOS build failure in the release workflow by adding proactive testing in the PR workflow, ensuring issues are caught earlier in the development cycle.
…lation - Replace bottle installation test with formula validation and source build - Use brew audit to validate formula syntax - Install from source instead of non-existent bottle files - Create test tarball from current code if release tarball unavailable - Update artifact upload to include formula file for debugging This resolves the 'No formulae or casks found' error in PR testing by testing the actual formula validation and source installation process rather than trying to install non-existent bottle files.
- Remove brew tap step that was causing path mismatch error - Use direct formula validation with brew audit - Install directly from formula file instead of tapping repository - Simplify approach to avoid git repository path conflicts This resolves the 'Tap runtimeverification/k remote mismatch' error by eliminating the problematic brew tap command entirely.
- Use 'brew tap --force-local' to add local formula as tap - Use 'brew audit --strict kframework' with formula name instead of file path - This resolves the 'Calling brew audit [path ...] is disabled' error The correct approach is to tap the local directory and then audit by formula name.
Focus this PR on making macOS testing non-blocking in releases only. macOS PR testing will be implemented in a separate feature branch.
This branch will focus on implementing comprehensive macOS testing for pull requests, including CloudRepo publishing for PR artifacts.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds comprehensive macOS testing to the pull request workflow to catch macOS-specific issues early in the development cycle.
Changes
Key Features
Future Work
This PR establishes the foundation for macOS PR testing. Future enhancements will include:
Testing
The macOS testing job will run on all PRs targeting the branch and will not block PR merges if it fails.
Related