Skip to content

Skip substitution when the symlink is correct. - #3193

Open
3405691582 wants to merge 1 commit into
google:mainfrom
3405691582:redundant_substitution
Open

3405691582 wants to merge 1 commit into
google:mainfrom
3405691582:redundant_substitution

Conversation

@3405691582

Copy link
Copy Markdown
Collaborator

In #3192 we ensure that fetched files are modified during fetch, in order to front-load modifications of fetched resources. Substitution also requires modification of the fetched tree. cvd fetch and cvd start can both trigger substitution -- we require both since we need to operate on fetched and local builds.

However, we try to modify the tree during cvd start as well, even when the symlinks are already correct. If we have made the host artefacts read-only after fetching them, the subsequent substitution fails. There's no need to regenerate the symlink; do it once and only once.

In google#3192 we ensure that fetched files are modified during fetch, in
order to front-load modifications of fetched resources. Substitution
also requires modification of the fetched tree. cvd fetch and cvd start
can both trigger substitution -- we require both since we need to operate
on fetched and local builds.

However, we try to modify the tree during cvd start as well, even when
the symlinks are already correct. If we have made the host artefacts
read-only after fetching them, the subsequent substitution fails. There's
no need to regenerate the symlink; do it once and only once.
@3405691582
3405691582 requested a review from Databean September 17, 2026 18:23
@3405691582 3405691582 added the kokoro:run Run e2e tests. label Sep 18, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Sep 18, 2026
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