Skip to content

Conversation

@colinaaa
Copy link
Collaborator

@colinaaa colinaaa commented Apr 15, 2025

Summary

Now lynx-infra/cache would restore the last modified cache. This would make it easier for hitting turbo cache.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@changeset-bot
Copy link

changeset-bot bot commented Apr 15, 2025

⚠️ No Changeset found

Latest commit: 9b27448

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codspeed-hq
Copy link

codspeed-hq bot commented Apr 15, 2025

CodSpeed Performance Report

Merging #549 will not alter performance

Comparing colinaaa:colin/0415/cache (9b27448) with main (94b1cb4)

Summary

✅ 1 untouched benchmarks

@colinaaa colinaaa requested a review from PupilTong April 15, 2025 12:28
@colinaaa colinaaa marked this pull request as ready for review April 15, 2025 12:30
@colinaaa colinaaa requested a review from Yradex April 15, 2025 12:35
@colinaaa colinaaa added this pull request to the merge queue Apr 15, 2025
Merged via the queue into lynx-family:main with commit ac4a4d2 Apr 15, 2025
24 checks passed
@colinaaa colinaaa deleted the colin/0415/cache branch April 15, 2025 12:52
github-merge-queue bot pushed a commit that referenced this pull request Apr 16, 2025
<!--
  Thank you for submitting a pull request!

We appreciate the time and effort you have invested in making these
changes. Please ensure that you provide enough information to allow
others to review your pull request.

Upon submission, your pull request will be automatically assigned with
reviewers.

If you want to learn more about contributing to this project, please
visit:
https://github.com/lynx-family/lynx-stack/blob/main/CONTRIBUTING.md.
-->

## Summary

<!-- Can you explain the reasoning behind implementing this change? What
problem or issue does this pull request resolve? -->

Following up #549. We use the PR id and merge-base to select the sha to
restore cache.

This would ensure getting the best cache even if lynx-infra/cache does
not return the last modified cache.

See:
https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#pull_request

Also see:
https://docs.github.com/en/webhooks/webhook-events-and-payloads#pull_request

<!-- It would be helpful if you could provide any relevant context, such
as GitHub issues or related discussions. -->

## Checklist

<!--- Check and mark with an "x" -->

- [ ] Tests updated (or not required).
- [ ] Documentation updated (or not required).

---------

Signed-off-by: Qingyu Wang <[email protected]>
Co-authored-by: Copilot <[email protected]>
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