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

workflows/triage: update regex for no ARM bottle #147591

Merged
merged 1 commit into from
Sep 30, 2023

Conversation

ZhongRuoyu
Copy link
Member

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

The current logic for no ARM bottle looks for Big Sur bottles, but Big Sur is no longer supported. This introduced false positives like #147570.

To fix this and make it more future-proof, let's instead apply the no ARM bottle label whenever we see x86_64 macOS bottles but fail to find any arm64 ones.

Regex reference: https://stackoverflow.com/a/37060970

@ZhongRuoyu ZhongRuoyu requested review from MikeMcQuaid and a team as code owners September 30, 2023 07:28
@github-actions github-actions bot added automerge-skip `brew pr-automerge` will skip this pull request workflows PR modifies GitHub Actions workflow files labels Sep 30, 2023
content: '\n sha256.* big_sur: +"[a-fA-F0-9]+"\n'
missing_content: '\n sha256.* arm64_big_sur: +"[a-fA-F0-9]+"\n'
content: '\n sha256.* (?!.*(?:arm64_|_linux)).+: +"[a-fA-F0-9]+"\n'
missing_content: '\n sha256.* arm64_(.+): +"[a-fA-F0-9]+"\n'
Copy link
Member Author

Choose a reason for hiding this comment

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

Didn't notice this initially but:

Suggested change
missing_content: '\n sha256.* arm64_(.+): +"[a-fA-F0-9]+"\n'
missing_content: '\n sha256.* arm64_.+: +"[a-fA-F0-9]+"\n'

The current logic for `no ARM bottle` looks for Big Sur bottles, but Big
Sur is no longer supported. This introduced false positives like

To fix this and make it more future-proof, let's instead apply the
`no ARM bottle` label whenever we see x86_64 macOS bottles but fail to
find any arm64 ones.

Regex reference: https://stackoverflow.com/a/37060970
@ZhongRuoyu ZhongRuoyu added this pull request to the merge queue Sep 30, 2023
Merged via the queue into Homebrew:master with commit 5890d91 Sep 30, 2023
15 checks passed
@ZhongRuoyu ZhongRuoyu deleted the triage-arm-bottles branch September 30, 2023 10:37
ZhongRuoyu added a commit to ZhongRuoyu/homebrew-core that referenced this pull request Oct 1, 2023
In Homebrew#147591 I didn't take `all` bottles into account; the updated regex
miscategorised e.g. Homebrew#148156. This fixes that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge-skip `brew pr-automerge` will skip this pull request workflows PR modifies GitHub Actions workflow files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants