Skip to content

Skip substitution when the symlink is correct. - #3193

Merged
3405691582 merged 1 commit into
google:mainfrom
3405691582:redundant_substitution
Sep 21, 2026
Merged

3405691582 merged 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.

@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
@3405691582 3405691582 added the kokoro:force-run Trigger a presubmit build unconditionally. label Sep 21, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:force-run Trigger a presubmit build unconditionally. label Sep 21, 2026
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 force-pushed the redundant_substitution branch from de1f8c7 to da7edcd Compare September 21, 2026 14:59
@3405691582 3405691582 added the kokoro:run Run e2e tests. label Sep 21, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Sep 21, 2026
@3405691582
3405691582 added this pull request to the merge queue Sep 21, 2026
Merged via the queue into google:main with commit e537d25 Sep 21, 2026
48 of 56 checks passed
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