-
Notifications
You must be signed in to change notification settings - Fork 95
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
[OSS-ONLY] Implementing hashcode and mode based caching #3414
Open
SiddharthBITS
wants to merge
23
commits into
babelfish-for-postgresql:BABEL_5_X_DEV
Choose a base branch
from
SiddharthBITS:5X-ccache
base: BABEL_5_X_DEV
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
673a665
Implementing caching to 5X
SiddharthBITS 6699732
Disabling tests and adding more save spots
SiddharthBITS bf2beb1
Fixing cd..
SiddharthBITS 8cc746c
Running tests again
SiddharthBITS bfceee4
Running tests again
SiddharthBITS adfddb3
Running tests again
SiddharthBITS f48e1b0
Running tests again
SiddharthBITS ad36896
Trusting bash more than github
SiddharthBITS 06d0f9f
Trusting bash more than github P2
SiddharthBITS 3d4d66f
Adding tapTest and coverage key saves
SiddharthBITS 15e6d14
Fixing saving caches in tapTests and adding ccache as prefix
SiddharthBITS f9fd06b
Upgrading actions/download-artifact to v4
SiddharthBITS 54c0428
Test run
SiddharthBITS 5396fc0
Final changes V1
SiddharthBITS 1d85556
Final Changes V2 Turning JDBC Tests ON
SiddharthBITS 9083d89
Disabling JDBC Tests and runnning again
SiddharthBITS 470249d
Debugging extra cache being created
SiddharthBITS 2a19dfe
Debugging extra cache being created V2
SiddharthBITS b062cdc
Debugging extra cache being created V3
SiddharthBITS bfffc5e
Debugging extra cache being created V4
SiddharthBITS 0c5ba4d
Debugging extra cache being created V5
SiddharthBITS 9bdae3c
Clearing CRESTORE_KEY after save
SiddharthBITS dc24d8f
Signed-off-by: SiddharthBITS <[email protected]>
SiddharthBITS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: 'Save ccache on push' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- name: Setup new cache key | ||
if: always() | ||
run: | | ||
echo "CCACHE_KEY=${{env.CRESTORE_KEY}}-$(git rev-parse --short HEAD)" >> $GITHUB_ENV | ||
echo "Event : ${{ github.event_name }}" | ||
echo "Save ccache : ${{ env.SAVE_CCACHE }}" | ||
if [[ ${{ github.event_name != 'pull_request' || env.SAVE_CCACHE == 1 }} == true ]]; then | ||
echo "Cache to be Saved" | ||
echo "SAVE_CACHE_HERE=1" >> $GITHUB_ENV | ||
else | ||
echo "Cache shouldn't be Saved" | ||
echo "SAVE_CACHE_HERE=0" >> $GITHUB_ENV | ||
fi | ||
shell: bash | ||
|
||
- name: Save ccache | ||
uses: actions/cache/save@v4 | ||
if: env.SAVE_CACHE_HERE == 1 | ||
with: | ||
path: | ||
~/.ccache | ||
key: | ||
ccache-${{ env.CCACHE_KEY }} | ||
|
||
- name: Clean ccache directory and unset env variables | ||
if: always() | ||
shell: bash | ||
run: | | ||
rm -rf ~/.ccache | ||
echo "CCACHE_KEY=" >> $GITHUB_ENV | ||
echo "SAVE_CCACHE=" >> $GITHUB_ENV | ||
echo "SAVE_CACHE_HERE=" >> $GITHUB_ENV | ||
echo "CRESTORE_KEY=" >> $GITHUB_ENV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: So this will only match by Engine SHA followed by whatever sha matches for extension, so if Extension has some new code changes will the action ensure the newest version of cache for that PR is used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if [[ ${{ github.event_name != 'pull_request' || env.SAVE_CCACHE == 1 }} == true ]]; then
echo "Cache to be Saved"
echo "SAVE_CACHE_HERE=1" >> $GITHUB_ENV
We are force saving cache for any request that isn't a PR, so a merge would trigger this.