Skip to content

chore(framework): update macOS build matching_pattern#238

Merged
CharlVS merged 1 commit intodevfrom
chore/macos-universal-matching-pattern
Oct 10, 2025
Merged

chore(framework): update macOS build matching_pattern#238
CharlVS merged 1 commit intodevfrom
chore/macos-universal-matching-pattern

Conversation

@CharlVS
Copy link
Copy Markdown
Collaborator

@CharlVS CharlVS commented Oct 10, 2025

Update macOS build_config.json matching_pattern to support universal zips:

  • kdf-macos-universal2-[a-f0-9]{7,40}
  • kdf_[a-f0-9]{7,40}-mac-universal

Targets branch: dev


Note

Updates macOS build matching to only accept universal artifacts and drops legacy arm64/mm2 patterns.

  • Build Config (packages/komodo_defi_framework/app_build/build_config.json):
    • macOS: Update matching_pattern to only match kdf-macos-universal2-[a-f0-9]{7,40} and kdf_[a-f0-9]{7,40}-mac-universal; remove previous kdf_* -mac-arm64 and mm2-* patterns.

Written by Cursor Bugbot for commit d92a171. This will update automatically on new commits. Configure here.

Copilot AI review requested due to automatic review settings October 10, 2025 11:43
Copy link
Copy Markdown
Contributor

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 updates the macOS build configuration to standardize on universal zip patterns by removing older pattern variants and focusing on two universal zip naming conventions.

  • Removes deprecated mac-arm64 and Darwin-Release patterns from the matching pattern
  • Retains kdf-macos-universal2-[a-f0-9]{7,40} pattern for universal builds
  • Adds kdf_[a-f0-9]{7,40}-mac-universal pattern as an alternative universal naming convention

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread packages/komodo_defi_framework/app_build/build_config.json
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Oct 10, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/macos-universal-matching-pattern

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

},
"macos": {
"matching_pattern": "^(?:kdf_[a-f0-9]{7,40}-mac-arm64|kdf-macos-universal2-[a-f0-9]{7,40}|mm2-[a-f0-9]{7,40}-Darwin-Release)\\.zip$",
"matching_pattern": "^(?:kdf-macos-universal2-[a-f0-9]{7,40}|kdf_[a-f0-9]{7,40}-mac-universal)\\.zip$",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bug: Inconsistent Build Preferences and Patterns

The macos matching_preference array still lists "mac-arm64", but the updated matching_pattern regex no longer matches "mac-arm64" builds. This makes the "mac-arm64" preference unreachable, creating an inconsistency that could lead to build selection issues.

Fix in Cursor Fix in Web

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment on lines 29 to 33
"macos": {
"matching_pattern": "^(?:kdf_[a-f0-9]{7,40}-mac-arm64|kdf-macos-universal2-[a-f0-9]{7,40}|mm2-[a-f0-9]{7,40}-Darwin-Release)\\.zip$",
"matching_pattern": "^(?:kdf-macos-universal2-[a-f0-9]{7,40}|kdf_[a-f0-9]{7,40}-mac-universal)\\.zip$",
"matching_preference": [
"universal2",
"mac-arm64"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve macOS arm64 and mm2 patterns when adding universal zips

The new macOS matching_pattern now only matches kdf-macos-universal2-… and kdf_<hash>-mac-universal, removing the previous kdf_<hash>-mac-arm64 and mm2-…-Darwin-Release alternatives while matching_preference still lists mac-arm64. This means builds that are only published for arm64 or the mm2 binary can no longer be fetched, breaking existing build automation whenever universal packages are not available. Consider extending the regex to include the new universal variant in addition to the existing arm64 and mm2 patterns rather than replacing them.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Leaving these lines in as "documentation" that the matching preference feature is available. A more consistent long-term solution would be to replace the matching pattern with an array of matching patterns, matching the first one found with a valid checksum.

@CharlVS CharlVS merged commit 448eecc into dev Oct 10, 2025
7 of 8 checks passed
@CharlVS CharlVS deleted the chore/macos-universal-matching-pattern branch October 10, 2025 11:48
@github-actions
Copy link
Copy Markdown
Contributor

Visit the preview URL for this PR (updated for commit d92a171):

https://komodo-playground--pr238-chore-macos-universa-qw3a7o2h.web.app

(expires Fri, 17 Oct 2025 11:49:11 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 2bfedd77fdea45b25ba7c784416e81f177aa5c47

@github-actions
Copy link
Copy Markdown
Contributor

Visit the preview URL for this PR (updated for commit d92a171):

https://kdf-sdk--pr238-chore-macos-universa-yo4cjmy4.web.app

(expires Fri, 17 Oct 2025 11:49:13 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 9c1b6e6c010cf0b965c455ba7a69c4aedafa8a1d

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.

2 participants