Skip to content

cvd: Begin simplifying creation analyzer#2606

Open
jemoreira wants to merge 11 commits into
google:mainfrom
jemoreira:analyzer
Open

cvd: Begin simplifying creation analyzer#2606
jemoreira wants to merge 11 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 added 11 commits May 22, 2026 19:32
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.
The StartSelectorParser already duplicates a lot of its logic and ends
up using it only to turn the base and number of instances into the
instance ids vector {base, base+1, ..., base + num - 1}.
@jemoreira jemoreira requested a review from Databean May 23, 2026 02:38
@jemoreira jemoreira enabled auto-merge May 23, 2026 02:39
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.

1 participant