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

Support optional image downloading with CAS in fetch-cvd #813

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

frankfeng579
Copy link
Contributor

No description provided.

Copy link
Member

@jemoreira jemoreira left a comment

Choose a reason for hiding this comment

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

I'd like to see how HardlinkRecursively is going to be used before approving it. Please create a single PR with several commits: one for adding the function and as many as you need for the actual functionality you're trying to implement.

My concern with HardlinkRecursively is that it seems to be trying to implement "hardlink for directories", which most of the time can be done by just using a symbolic link.

@frankfeng579 frankfeng579 force-pushed the hardlink branch 13 times, most recently from 71c3f8d to 44209a5 Compare November 28, 2024 00:39
@frankfeng579 frankfeng579 changed the title Add function HardLinkRecursively to files Support optional image downloading with CAS in fetch-cvd Nov 28, 2024
@frankfeng579 frankfeng579 force-pushed the hardlink branch 5 times, most recently from 2f3dde2 to e40dfb3 Compare December 1, 2024 02:22
@frankfeng579
Copy link
Contributor Author

@jemoreira, as suggested, added 2 more commits to the PR and that should be all for CAS downloading support in cvd.

@jemoreira
Copy link
Member

Don't do "merge commits", rebase the hardlink branch on top of main instead.

base/cvd/cuttlefish/common/libs/utils/files.cpp Outdated Show resolved Hide resolved
base/cvd/cuttlefish/common/libs/utils/files.cpp Outdated Show resolved Hide resolved
base/cvd/cuttlefish/common/libs/utils/files.cpp Outdated Show resolved Hide resolved
base/cvd/cuttlefish/common/libs/utils/files.cpp Outdated Show resolved Hide resolved
@frankfeng579 frankfeng579 force-pushed the hardlink branch 2 times, most recently from 349cc22 to d4987be Compare December 2, 2024 23:42
@Databean Databean added the kokoro:run Run e2e tests. label Dec 4, 2024
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Dec 4, 2024
Also: fixed a memory leak in IsDirectoryEmpty.
Update android_build_api/caching_build_api to support downloading device images using CAS.
The support of CAS downloading is optional and can be enable with
command line arguments.
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.

5 participants