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

ci/vm-kernel: change CACHE_TAG calculation #1106

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

bayandin
Copy link
Member

In PRs, it is incorrect to use the last commit sha as a cache tag for a docker kernel image.
By default, on pull_request, actions/checkout pulls a fake merge commit (PR into the default branch), and potentially an outdated kernel image from the cache might be used in a PR (if main has some changes in the kernel, and PR doesn't include it yet).

This PR changes the logic from using the last commit sha to using a hash from neonvm-kernel directory content and the workflow file itself.

@bayandin bayandin requested a review from sharnoff October 11, 2024 12:19
@bayandin bayandin force-pushed the bayandin/use-hashFiles-instead-of-git-sha branch from fc3203a to 71553c7 Compare October 11, 2024 12:20
@bayandin bayandin changed the title CI(vm-kernel): change CACHE_TAG calculation ci/vm-kernel: change CACHE_TAG calculation Oct 11, 2024
@bayandin bayandin requested a review from fedordikarev October 11, 2024 12:25
@bayandin bayandin force-pushed the bayandin/use-hashFiles-instead-of-git-sha branch from 71553c7 to f70c946 Compare October 11, 2024 13:07
Copy link
Member

@sharnoff sharnoff left a comment

Choose a reason for hiding this comment

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

nice, thanks!

@bayandin bayandin merged commit 1a7acbc into main Oct 11, 2024
22 checks passed
@bayandin bayandin deleted the bayandin/use-hashFiles-instead-of-git-sha branch October 11, 2024 14:22
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.

3 participants