-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Improve branch cache logic #17663
Labels
priority-2-high
Bugs impacting wide number of users or very important features
type:refactor
Refactoring or improving of existing code
Comments
This should also fix #17528 because during |
6 tasks
Should we also invalidate |
Yes, but that should be a rare edge case! |
This was referenced Sep 16, 2022
🎉 This issue has been resolved in version 32.219.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
priority-2-high
Bugs impacting wide number of users or very important features
type:refactor
Refactoring or improving of existing code
Describe the proposed change(s).
The branch cache should have this function, which is called at the start of branch processing each run:
syncBranchCache(branchName, branchSha, baseBranchName, baseBranchSha)
It's logic will be like this:
During branch processing we can call
setBranchModified(branchName, isModified)
,setBranchConflicted
,setBranchBehindBase
,setBranchFingerprint
. These don’t need SHAs because we assume they were sync’d earlier in the branch processing.Towards the end of branch processing, if we have pushed a commit (either branch creation or branch updating) then we call this function:
setBranchCommit(branchName, baseBranchName, branchSha, baseBranchSha, branchFingerprint)
. It should:false
Note:
parentSha
should not be reset duringsyncBranchCache()
- only duringsetBranchCommit()
.We should remove all git-level caching. It's OK for us to "lose" such existing cache values for one run while we populate the branch cache using the new logic.
The text was updated successfully, but these errors were encountered: