Skip to content

cvd: Begin simplifying creation analyzer#2606

Queued
jemoreira wants to merge 10 commits into
google:mainfrom
jemoreira:analyzer
Queued

cvd: Begin simplifying creation analyzer#2606
jemoreira wants to merge 10 commits into
google:mainfrom
jemoreira:analyzer

Conversation

@jemoreira
Copy link
Copy Markdown
Member

@jemoreira jemoreira commented May 23, 2026

Most of the simplification is done in StartSelectorParser.

The most significant change is that it no longer considers the $CUTTLEFISH_INSTANCE environment variable when trying to figure the number of instances and its ids. cvd_internal_start never expected the user to set that variable, expecting the user to use flags instead. That variable is unconditionally set by cvd_internal_start so run_cvd and its children know which instance they are running.

NOTE TO REVIEWER: reviewing each commit separately is going to be a lot easier than the entire PR at once.

@jemoreira jemoreira requested a review from Databean May 23, 2026 02:38
@jemoreira jemoreira enabled auto-merge May 23, 2026 02:39
Comment thread base/cvd/cuttlefish/host/commands/cvd/cli/selector/start_selector_parser.cpp Outdated
Comment thread base/cvd/cuttlefish/host/libs/config/instance_nums.cpp Outdated
jemoreira added 10 commits May 26, 2026 18:27
It only uses the number of instance names provided, so keep only that
and store the selectors in CreationAnalyzer where they are actually
used.
That environment variable is set by cvd_internal_start so each run_cvd
process knows what instance they are. cvd_internal_start never read it,
so `cvd create` shouldn't either.
@jemoreira jemoreira added this pull request to the merge queue May 27, 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.

2 participants