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/tests: fix tap_syntax style cache key #168678

Merged
merged 1 commit into from
Apr 12, 2024

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>?

Sometimes the tap_syntax job for brew's master branch incorrectly uses the cache from the stable job, because the cache restore key for the former is a prefix of the key for the latter. This can be seen in the following job, for example:
https://github.com/Homebrew/homebrew-core/actions/runs/8652032061/job/23724090864.

Fix that by adding -master to the master job's cache key, and updating the restore key accordingly.

Sometimes the `tap_syntax` job for `brew`'s `master` branch incorrectly
uses the cache from the `stable` job, because the cache restore key for
the former is a prefix of the key for the latter. This can be seen in
the following job, for example:
https://github.com/Homebrew/homebrew-core/actions/runs/8652032061/job/23724090864.

Fix that by adding `-master` to the `master` job's cache key, and
updating the restore key accordingly.
@ZhongRuoyu ZhongRuoyu requested review from MikeMcQuaid and a team as code owners April 11, 2024 20:08
@github-actions github-actions bot added workflows PR modifies GitHub Actions workflow files automerge-skip `brew pr-automerge` will skip this pull request labels Apr 11, 2024
Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Good catch, thanks again @ZhongRuoyu!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Apr 12, 2024
Merged via the queue into master with commit 47f48c8 Apr 12, 2024
19 checks passed
@MikeMcQuaid MikeMcQuaid deleted the tap_syntax-style-cache-key branch April 12, 2024 07:30
@github-actions github-actions bot added the outdated PR was locked due to age label May 15, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automerge-skip `brew pr-automerge` will skip this pull request outdated PR was locked due to age workflows PR modifies GitHub Actions workflow files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants