Skip to content

Cherry-Pick Fix file already exist error while running substitute in Docker into version-1.55-dev - #2940

Draft
k311093 wants to merge 1 commit into
google:version-1.55-devfrom
k311093:version-1.55-dev
Draft

Cherry-Pick Fix file already exist error while running substitute in Docker into version-1.55-dev#2940
k311093 wants to merge 1 commit into
google:version-1.55-devfrom
k311093:version-1.55-dev

Conversation

@k311093

@k311093 k311093 commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

In the OverlayFS, even if unlink() is succeeded, looks like there is a delay between unlink call and the file is actually disappears.

Change to use rename call which ensures atomic operation for substitution.

@k311093 k311093 added the kokoro:run Run e2e tests. label Jul 31, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Jul 31, 2026
@k311093
k311093 force-pushed the version-1.55-dev branch from ee3a6de to 685e294 Compare July 31, 2026 07:20
@k311093 k311093 added the kokoro:run Run e2e tests. label Jul 31, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Jul 31, 2026
@k311093 k311093 added the kokoro:force-run Trigger a presubmit build unconditionally. label Aug 3, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:force-run Trigger a presubmit build unconditionally. label Aug 3, 2026
In the OverlayFS, even if unlink() is succeeded, looks like there is
a delay between unlink call and the file is actually disappears.

Change to use rename call which ensures atomic operation for
substitution.
@k311093 k311093 added the kokoro:run Run e2e tests. label Aug 3, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Aug 3, 2026
@0405ysj
0405ysj self-requested a review August 3, 2026 05:20

@0405ysj 0405ysj left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Does it need to modify base/cvd/cuttlefish/host/commands/cvd/fetch/BUILD.bazel as https://github.com/google/android-cuttlefish/pull/2885/changes? Otherwise, LGTM.

@0405ysj

0405ysj commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Also could we import this patch under version-1.56-dev branch as well unless there's a reason not to add this change?

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