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

MultiCI: Abstract Github Action cache access behind type #21

Open
wants to merge 3 commits into
base: kevin/abstract-gha/abstract-exec
Choose a base branch
from

Conversation

Nava2
Copy link
Owner

@Nava2 Nava2 commented Jan 9, 2025

There is no functional changes present, access is moved behind small wrapper class to provide a simple abstraction to be replaced.

Currently, we implement this in terms of Github Actions -- for obvious reasons. In the future, this enables implementation in other, non-Github CI environments.

Part of gradle#502.

Copy link
Owner Author

Nava2 commented Jan 9, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Nava2 Nava2 changed the title MultiCI: Abstract cache access behind type MultiCI: Abstract CI cache access behind type Jan 9, 2025
@Nava2 Nava2 marked this pull request as ready for review January 9, 2025 17:54
@Nava2 Nava2 force-pushed the kevin/abstract-gha/abstract-exec branch from 7dea2ba to ae9ebde Compare January 9, 2025 17:58
@Nava2 Nava2 force-pushed the kevin/abstract-gha/abstract-cache-2 branch from 790b0bc to d5de794 Compare January 9, 2025 17:58
}

async restoreCache(paths: string[], primaryKey: string, restoreKeys?: string[], options?: RemoteCacheDownloadOptions): Promise<GradleEnvCacheEntry | undefined> {
for (const key in [primaryKey, ...(restoreKeys ?? [])]) {
Copy link
Owner Author

Choose a reason for hiding this comment

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

Admittedly, this is a pretty reasonable code implementation if we swapped out the direct file read/write for use in a non-gh-action world.

@Nava2 Nava2 force-pushed the kevin/abstract-gha/abstract-exec branch from ae9ebde to 8b6a14f Compare January 9, 2025 18:19
@Nava2 Nava2 force-pushed the kevin/abstract-gha/abstract-cache-2 branch from d5de794 to 05652f8 Compare January 9, 2025 18:19
@Nava2 Nava2 changed the title MultiCI: Abstract CI cache access behind type MultiCI: Abstract Github Action cache access behind type Jan 9, 2025
@Nava2 Nava2 force-pushed the kevin/abstract-gha/abstract-exec branch from 8b6a14f to e51a1a8 Compare January 9, 2025 18:59
@Nava2 Nava2 force-pushed the kevin/abstract-gha/abstract-cache-2 branch from 751d4d0 to d303a37 Compare January 9, 2025 18:59
@Nava2 Nava2 force-pushed the kevin/abstract-gha/abstract-exec branch from e51a1a8 to 02206f4 Compare January 9, 2025 19:04
@Nava2 Nava2 force-pushed the kevin/abstract-gha/abstract-cache-2 branch from d303a37 to 7049568 Compare January 9, 2025 19:04
Nava2 added 3 commits January 10, 2025 08:18
There is no functional changes present, access is moved behind class instead.
@Nava2 Nava2 force-pushed the kevin/abstract-gha/abstract-exec branch from 02206f4 to 3c45f8f Compare January 10, 2025 13:20
@Nava2 Nava2 force-pushed the kevin/abstract-gha/abstract-cache-2 branch from 7049568 to b5b36e4 Compare January 10, 2025 13:20
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.

1 participant